Package org.apache.pekko.http.impl.util
Class ExampleHttpContexts
java.lang.Object
org.apache.pekko.http.impl.util.ExampleHttpContexts
These are HTTPS example configurations that take key material from the resources/key folder.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic HttpsConnectionContextstatic HttpsConnectionContextstatic HttpsConnectionContextstatic CertificateloadX509Certificate(String resourceName) static ClientTransportproxyTransport(InetSocketAddress realAddress) A client transport that will rewrite the target address to a fixed address.static InputStreamresourceStream(String resourceName) 
- 
Constructor Details- 
ExampleHttpContextspublic ExampleHttpContexts()
 
- 
- 
Method Details- 
getExampleServerContext
- 
exampleServerContext
- 
exampleClientContext
- 
resourceStream
- 
loadX509Certificate
- 
proxyTransportA client transport that will rewrite the target address to a fixed address. This can be used to pretend to connect to pekko.example.org which is required to connect to the example server certificate.- Parameters:
- realAddress- (undocumented)
- Returns:
- (undocumented)
 
 
-