Class HttpServerContextBuilder

java.lang.Object
org.refcodes.web.HttpServerContextBuilder
All Implemented Interfaces:
org.refcodes.io.MaxConnectionsAccessor, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<HttpServerContextBuilder>, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsMutator, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsProperty, org.refcodes.mixin.PortAccessor, org.refcodes.mixin.PortAccessor.PortBuilder<HttpServerContextBuilder>, org.refcodes.mixin.PortAccessor.PortMutator, org.refcodes.mixin.PortAccessor.PortProperty, KeyStoreDescriptorAccessor, KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<HttpServerContextBuilder>, KeyStoreDescriptorAccessor.KeyStoreDescriptorMutator, KeyStoreDescriptorAccessor.KeyStoreDescriptorProperty, HttpServerContext, SchemeAccessor, SchemeAccessor.SchemeBuilder<HttpServerContextBuilder>, SchemeAccessor.SchemeMutator, SchemeAccessor.SchemeProperty

public class HttpServerContextBuilder extends Object implements HttpServerContext, SchemeAccessor.SchemeProperty, SchemeAccessor.SchemeBuilder<HttpServerContextBuilder>, KeyStoreDescriptorAccessor.KeyStoreDescriptorProperty, KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<HttpServerContextBuilder>, org.refcodes.mixin.PortAccessor.PortProperty, org.refcodes.mixin.PortAccessor.PortBuilder<HttpServerContextBuilder>, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsProperty, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<HttpServerContextBuilder>
The HttpServerContextBuilder implements the HttpServerContext interface extending it with builder functionality..
  • Field Details

    • DEFAULT_SCHEME

      public static final org.refcodes.data.Scheme DEFAULT_SCHEME
    • DEFAULT_PORT

      public static final int DEFAULT_PORT
      See Also:
  • Constructor Details

    • HttpServerContextBuilder

      public HttpServerContextBuilder()
      Constructs a HttpClientContext with a default scheme Scheme.HTTP for port 8080.
    • HttpServerContextBuilder

      public HttpServerContextBuilder(int aPort)
      Constructs a HttpClientContext with a default scheme.
      Parameters:
      aPort - The TCP port to be used.
    • HttpServerContextBuilder

      public HttpServerContextBuilder(org.refcodes.data.Scheme aScheme, int aPort)
      Constructs a HttpClientContext with a default scheme.
      Parameters:
      aScheme - The Scheme (HTTP or HTTPS) to be used.
      aPort - The TCP port to be used.
    • HttpServerContextBuilder

      public HttpServerContextBuilder(String aProtocol, int aPort)
      Constructs a HttpClientContext with a default scheme.
      Parameters:
      aProtocol - The protocol such as the TransportLayerProtocol.
      aPort - The TCP port to be used.
    • HttpServerContextBuilder

      public HttpServerContextBuilder(org.refcodes.data.Scheme aScheme, int aPort, KeyStoreDescriptor aKeyStoreDescriptor, int aMaxConnections)
      Constructs a HttpClientContext with the given data.
      Parameters:
      aScheme - The Scheme (HTTP or HTTPS) to be used.
      aPort - The TCP port to be used.
      aKeyStoreDescriptor - The descriptor describing the keystore to be used.
      aMaxConnections - The maximum allowed open connections.
    • HttpServerContextBuilder

      public HttpServerContextBuilder(String aProtocol, int aPort, KeyStoreDescriptor aKeyStoreDescriptor, int aMaxConnections)
      Constructs a HttpClientContext with the given data.
      Parameters:
      aProtocol - The protocol such as the TransportLayerProtocol elements.
      aPort - The TCP port to be used.
      aKeyStoreDescriptor - The descriptor describing the keystore to be used.
      aMaxConnections - The maximum allowed open connections.
  • Method Details