org.refcodes.io.MaxConnectionsAccessor, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<HttpServerContext.HttpServerContextBuilder>, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsMutator, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsProperty, org.refcodes.mixin.PortAccessor, org.refcodes.mixin.PortAccessor.PortBuilder<HttpServerContext.HttpServerContextBuilder>, org.refcodes.mixin.PortAccessor.PortMutator, org.refcodes.mixin.PortAccessor.PortProperty, HttpServerContext.HttpServerContextBuilder, SchemeAccessor, SchemeAccessor.SchemeBuilder<HttpServerContext.HttpServerContextBuilder>, SchemeAccessor.SchemeMutator, SchemeAccessor.SchemeProperty, org.refcodes.security.KeyStoreDescriptorAccessor, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<HttpServerContext.HttpServerContextBuilder>, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorMutator, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorPropertypublic class HttpServerContextBuilderImpl extends Object implements HttpServerContext.HttpServerContextBuilder
HttpServerContextBuilderImpl implements the
HttpServerContext.HttpServerContextBuilder interface and can be used as
HttpServerContext for opening an HTTP-Server such as the
`HttpRestServer` from the `org.refcodes:refcodes-rest` artifact.org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<B extends org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<B>>, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorMutator, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorPropertyorg.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<B extends org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<B>>, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsMutator, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsPropertyorg.refcodes.mixin.PortAccessor.PortBuilder<B extends org.refcodes.mixin.PortAccessor.PortBuilder<B>>, org.refcodes.mixin.PortAccessor.PortMutator, org.refcodes.mixin.PortAccessor.PortPropertySchemeAccessor.SchemeBuilder<B extends SchemeAccessor.SchemeBuilder<B>>, SchemeAccessor.SchemeMutator, SchemeAccessor.SchemeProperty| Constructor | Description |
|---|---|
HttpServerContextBuilderImpl(String aProtocol,
int aPort,
org.refcodes.security.KeyStoreDescriptor aStoreDescriptor,
int aMaxConnections) |
Constructs a
HttpClientContext with the given data. |
HttpServerContextBuilderImpl(org.refcodes.data.Scheme aScheme,
int aPort,
org.refcodes.security.KeyStoreDescriptor aStoreDescriptor,
int aMaxConnections) |
Constructs a
HttpClientContext with the given data. |
| Modifier and Type | Method | Description |
|---|---|---|
org.refcodes.security.KeyStoreDescriptor |
getKeyStoreDescriptor() |
|
int |
getMaxConnections() |
|
int |
getPort() |
|
org.refcodes.data.Scheme |
getScheme() |
Retrieves the UrlScheme from the URL scheme.
|
void |
setKeyStoreDescriptor(org.refcodes.security.KeyStoreDescriptor aStoreDescriptor) |
|
void |
setMaxConnections(int aMaxConnections) |
|
void |
setPort(int aPort) |
|
void |
setProtocol(String aProtocol) |
Sets the protocol
String representation for the scheme
property. |
void |
setScheme(org.refcodes.data.Scheme aScheme) |
Sets the UrlScheme for the URL scheme.
|
String |
toProtocol() |
Retrieves the protocol representation from the
Scheme. |
withKeyStoreDescriptor, withMaxConnections, withPort, withProtocol, withSchemepublic HttpServerContextBuilderImpl(org.refcodes.data.Scheme aScheme,
int aPort,
org.refcodes.security.KeyStoreDescriptor aStoreDescriptor,
int aMaxConnections)
HttpClientContext with the given data.aScheme - The Scheme (HTTP or HTTPS) to be used.aPort - The TCP port to be used.aStoreDescriptor - The descriptor describing the keystore to be
used.aMaxConnections - The maximum allowed open connections.public HttpServerContextBuilderImpl(String aProtocol, int aPort, org.refcodes.security.KeyStoreDescriptor aStoreDescriptor, int aMaxConnections)
HttpClientContext with the given data.aProtocol - The protocol such as the TransportLayerProtocol
elements.aPort - The TCP port to be used.aStoreDescriptor - The descriptor describing the keystore to be
used.aMaxConnections - The maximum allowed open connections.public org.refcodes.security.KeyStoreDescriptor getKeyStoreDescriptor()
getKeyStoreDescriptor in interface org.refcodes.security.KeyStoreDescriptorAccessorpublic int getMaxConnections()
getMaxConnections in interface org.refcodes.io.MaxConnectionsAccessorpublic int getPort()
getPort in interface org.refcodes.mixin.PortAccessorpublic org.refcodes.data.Scheme getScheme()
getScheme in interface SchemeAccessorpublic void setKeyStoreDescriptor(org.refcodes.security.KeyStoreDescriptor aStoreDescriptor)
setKeyStoreDescriptor in interface org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorMutatorpublic void setMaxConnections(int aMaxConnections)
setMaxConnections in interface org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsMutatorpublic void setPort(int aPort)
setPort in interface org.refcodes.mixin.PortAccessor.PortMutatorpublic void setScheme(org.refcodes.data.Scheme aScheme)
setScheme in interface SchemeAccessor.SchemeMutatoraScheme - The UrlScheme to be stored by the URL scheme.public String toProtocol()
Scheme. In case of
a scheme unknown by the Scheme enumeration, then
SchemeAccessor.getScheme() might return null whilst SchemeAccessor.toProtocol() still
retrieves the unknown scheme's protocol representation (as of
SchemeAccessor.SchemeMutator.setProtocol(String)).toProtocol in interface SchemeAccessorpublic void setProtocol(String aProtocol)
String representation for the scheme
property. You must provide the scheme's specific part as well. In
case of HTTP, provide "http://". In case your provided protocol is
unknown by the Scheme enumeration, then the scheme property
will not be set, though the SchemeAccessor.toProtocol() still
returns your protocol.setProtocol in interface SchemeAccessor.SchemeMutatoraProtocol - The UrlScheme's String representation to be
stored by the URL scheme.Copyright © 2018. All rights reserved.