Class AbstractHttpRestServerDecorator<B extends HttpRestServer>

java.lang.Object
org.refcodes.rest.AbstractHttpRestServerDecorator<B>
All Implemented Interfaces:
org.refcodes.component.Closable, org.refcodes.component.Closable.CloseBuilder<org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.web.HttpServerContext,HttpRestServer>>, org.refcodes.component.ConnectionComponent<org.refcodes.web.HttpServerContext>, org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.web.HttpServerContext,HttpRestServer>, org.refcodes.component.ConnectionOpenable<org.refcodes.web.HttpServerContext>, org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<org.refcodes.web.HttpServerContext,org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.web.HttpServerContext,HttpRestServer>>, org.refcodes.component.ConnectionStatusAccessor, org.refcodes.component.LinkComponent, org.refcodes.component.Openable, org.refcodes.component.OpenedAccessor, org.refcodes.io.MaxConnectionsAccessor, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<HttpRestServer>, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsMutator, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsProperty, org.refcodes.mixin.PortAccessor, org.refcodes.mixin.PortAccessor.PortBuilder<HttpRestServer>, org.refcodes.mixin.PortAccessor.PortMutator, org.refcodes.mixin.PortAccessor.PortProperty, org.refcodes.observer.Observable<RestEndpoint>, org.refcodes.observer.Observers<RestEndpoint,RestServer>, HttpExceptionHandlerAccessor, HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<RestServer>, HttpExceptionHandlerAccessor.HttpExceptionHandlerMutator, HttpExceptionHandlerAccessor.HttpExceptionHandlerProperty, HttpExceptionHandlingAccessor, HttpExceptionHandlingAccessor.HttpExceptionHandlingBuilder<RestServer>, HttpExceptionHandlingAccessor.HttpExceptionHandlingMutator, HttpExceptionHandlingAccessor.HttpExceptionHandlingProperty, HttpRestServer, RestServer, org.refcodes.runtime.RequestCorrelation<RestServer>, org.refcodes.runtime.SessionCorrelation<RestServer>, org.refcodes.security.KeyStoreDescriptorAccessor, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<HttpRestServer>, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorMutator, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorProperty, org.refcodes.web.BaseLocatorAccessor, org.refcodes.web.BaseLocatorAccessor.BaseLocatorBuilder<RestServer>, org.refcodes.web.BaseLocatorAccessor.BaseLocatorMutator, org.refcodes.web.BaseLocatorAccessor.BaseLocatorProperty, org.refcodes.web.BasicAuthObservable<HttpRestServer>, org.refcodes.web.HttpsConnectionRequestObservable<HttpRestServer>, org.refcodes.web.MediaTypeFactoryLookup, org.refcodes.web.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup, org.refcodes.web.RealmAccessor, org.refcodes.web.RealmAccessor.RealmBuilder<RestServer>, org.refcodes.web.RealmAccessor.RealmMutator, org.refcodes.web.RealmAccessor.RealmProperty, org.refcodes.web.SchemeAccessor, org.refcodes.web.SchemeAccessor.SchemeBuilder<HttpRestServer>, org.refcodes.web.SchemeAccessor.SchemeMutator, org.refcodes.web.SchemeAccessor.SchemeProperty
Direct Known Subclasses:
AbstractHttpRegistryRestServerDecorator

public abstract class AbstractHttpRestServerDecorator<B extends HttpRestServer> extends Object implements HttpRestServer
Abstract class for easily decorating a HttpRestServer.
  • Field Details

  • Constructor Details

    • AbstractHttpRestServerDecorator

      public AbstractHttpRestServerDecorator(HttpRestServer aServer)
      Decorates the given HttpRestServer with additional functionality.
      Parameters:
      aServer - The HttpRestServer to be decorated.
  • Method Details

    • getPort

      public int getPort()
      Specified by:
      getPort in interface org.refcodes.mixin.PortAccessor
    • setPort

      public void setPort(int aPort)
      Specified by:
      setPort in interface org.refcodes.mixin.PortAccessor.PortMutator
    • getScheme

      public org.refcodes.data.Scheme getScheme()
      Specified by:
      getScheme in interface org.refcodes.web.SchemeAccessor
    • setScheme

      public void setScheme(org.refcodes.data.Scheme aScheme)
      Specified by:
      setScheme in interface org.refcodes.web.SchemeAccessor.SchemeMutator
    • addMediaTypeFactory

      public boolean addMediaTypeFactory(org.refcodes.web.MediaTypeFactory aMediaTypeFactory)
      Specified by:
      addMediaTypeFactory in interface org.refcodes.web.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup
    • close

      public void close() throws IOException
      Specified by:
      close in interface org.refcodes.component.Closable
      Throws:
      IOException
    • closeIn

      public void closeIn(int aCloseMillis)
      Specified by:
      closeIn in interface org.refcodes.component.Closable
    • closeQuietly

      public void closeQuietly()
      Specified by:
      closeQuietly in interface org.refcodes.component.Closable
    • closeUnchecked

      public void closeUnchecked()
      Specified by:
      closeUnchecked in interface org.refcodes.component.Closable
    • disableRequestCorrelation

      public void disableRequestCorrelation()
      Specified by:
      disableRequestCorrelation in interface org.refcodes.runtime.RequestCorrelation<B extends HttpRestServer>
    • disableSessionCorrelation

      public void disableSessionCorrelation()
      Specified by:
      disableSessionCorrelation in interface org.refcodes.runtime.SessionCorrelation<B extends HttpRestServer>
    • enableRequestCorrelation

      public void enableRequestCorrelation()
      Specified by:
      enableRequestCorrelation in interface org.refcodes.runtime.RequestCorrelation<B extends HttpRestServer>
    • enableSessionCorrelation

      public void enableSessionCorrelation()
      Specified by:
      enableSessionCorrelation in interface org.refcodes.runtime.SessionCorrelation<B extends HttpRestServer>
    • getBaseLocator

      public String getBaseLocator()
      Specified by:
      getBaseLocator in interface org.refcodes.web.BaseLocatorAccessor
    • getFactoryMediaTypes

      public org.refcodes.web.MediaType[] getFactoryMediaTypes()
      Specified by:
      getFactoryMediaTypes in interface org.refcodes.web.MediaTypeFactoryLookup
    • getRealm

      public String getRealm()
      Specified by:
      getRealm in interface org.refcodes.web.RealmAccessor
    • hasMediaTypeFactory

      public boolean hasMediaTypeFactory(org.refcodes.web.MediaType aMediaType)
      Specified by:
      hasMediaTypeFactory in interface org.refcodes.web.MediaTypeFactoryLookup
    • hasObserverSubscription

      public boolean hasObserverSubscription(RestEndpoint aObserver)
      Specified by:
      hasObserverSubscription in interface org.refcodes.observer.Observable<B extends HttpRestServer>
    • hasRequestCorrelation

      public boolean hasRequestCorrelation()
      Specified by:
      hasRequestCorrelation in interface org.refcodes.runtime.RequestCorrelation<B extends HttpRestServer>
    • hasSessionCorrelation

      public boolean hasSessionCorrelation()
      Specified by:
      hasSessionCorrelation in interface org.refcodes.runtime.SessionCorrelation<B extends HttpRestServer>
    • onBasicAuthRequest

      public B onBasicAuthRequest(org.refcodes.web.BasicAuthObserver aObserver)
      Specified by:
      onBasicAuthRequest in interface org.refcodes.web.BasicAuthObservable<B extends HttpRestServer>
    • onConnectionRequest

      public B onConnectionRequest(org.refcodes.web.HttpsConnectionRequestObserver aObserver)
      Specified by:
      onConnectionRequest in interface org.refcodes.web.HttpsConnectionRequestObservable<B extends HttpRestServer>
    • onDelete

      public RestEndpointBuilder onDelete(String aLocatorPathPattern, RestRequestConsumer aRequestConsumer)
      Even more convenient: Everything done here can also be done using RestServer.onRequest(HttpMethod, String, RestRequestConsumer): Registers a RestRequestConsumer with the given Locator-Pattern to incoming DELETE methods. Attention: Invoke RestEndpointBuilder.open() to activate this endpoint!
      Specified by:
      onDelete in interface RestServer
      Parameters:
      aLocatorPathPattern - The local Locator-Pattern to which this RestEndpoint is bound.
      aRequestConsumer - The listener processing a request targeted at this RestEndpoint.
      Returns:
      The pre-configured RestEndpoint which acts as handle to unsubscribe the RestEndpoint via Observable.unsubscribeObserver(Object).
    • onGet

      public RestEndpointBuilder onGet(String aLocatorPathPattern, RestRequestConsumer aRequestConsumer)
      Even more convenient: Everything done here can also be done using RestServer.onRequest(HttpMethod, String, RestRequestConsumer): Registers a RestRequestConsumer with the given Locator-Pattern to incoming GET methods. Attention: Invoke RestEndpointBuilder.open() to activate this endpoint!
      Specified by:
      onGet in interface RestServer
      Parameters:
      aLocatorPathPattern - The local Locator-Pattern to which this RestEndpoint is bound.
      aRequestConsumer - The listener processing a request targeted at this RestEndpoint.
      Returns:
      The pre-configured RestEndpoint which acts as handle to unsubscribe the RestEndpoint via Observable.unsubscribeObserver(Object).
    • onPost

      public RestEndpointBuilder onPost(String aLocatorPathPattern, RestRequestConsumer aRequestConsumer)
      Even more convenient: Everything done here can also be done using RestServer.onRequest(HttpMethod, String, RestRequestConsumer): Registers a RestRequestConsumer with the given Locator-Pattern to incoming POST methods. Attention: Invoke RestEndpointBuilder.open() to activate this endpoint!
      Specified by:
      onPost in interface RestServer
      Parameters:
      aLocatorPathPattern - The local Locator-Pattern to which this RestEndpoint is bound.
      aRequestConsumer - The listener processing a request targeted at this RestEndpoint.
      Returns:
      The pre-configured RestEndpoint which acts as handle to unsubscribe the RestEndpoint via Observable.unsubscribeObserver(Object).
    • onPut

      public RestEndpointBuilder onPut(String aLocatorPathPattern, RestRequestConsumer aRequestConsumer)
      Even more convenient: Everything done here can also be done using RestServer.onRequest(HttpMethod, String, RestRequestConsumer): Registers a RestRequestConsumer with the given Locator-Pattern to incoming PUT methods. Attention: Invoke RestEndpointBuilder.open() to activate this endpoint!
      Specified by:
      onPut in interface RestServer
      Parameters:
      aLocatorPathPattern - The local Locator-Pattern to which this RestEndpoint is bound.
      aRequestConsumer - The listener processing a request targeted at this RestEndpoint.
      Returns:
      The pre-configured RestEndpoint which acts as handle to unsubscribe the RestEndpoint via Observable.unsubscribeObserver(Object).
    • onRequest

      public RestEndpointBuilder onRequest(org.refcodes.web.HttpMethod aHttpMethod, String aLocatorPathPattern, RestRequestConsumer aRequestConsumer)
      Registers a pre-configured RestEndpoint with the least required attributes and returns its instance. To unsubscribe via Observable.unsubscribeObserver(Object), use the returned instance. Attention: Invoke RestEndpointBuilder.open() to activate this endpoint!
      Specified by:
      onRequest in interface RestServer
      Parameters:
      aHttpMethod - The HTTP-Method to which this RestEndpoint is bound. A value of null means that any HTTP-Method may trigger this RestEndpoint.
      aLocatorPathPattern - The local Locator-Pattern to which this RestEndpoint is bound. A value of null means that any locator may trigger this RestEndpoint.
      aRequestConsumer - The listener processing a request targeted at this RestEndpoint.
      Returns:
      The pre-configured RestEndpoint which acts as handle to unsubscribe the RestEndpoint via Observable.unsubscribeObserver(Object).
    • onRequest

      public RestEndpointBuilder onRequest(String aLocatorPathPattern, RestRequestConsumer aRequestConsumer)
      Registers a pre-configured RestEndpoint, triggerd by any HTTP method, and returns its instance. To unsubscribe via Observable.unsubscribeObserver(Object), use the returned instance. Attention: Invoke RestEndpointBuilder.open() to activate this endpoint!
      Specified by:
      onRequest in interface RestServer
      Parameters:
      aLocatorPathPattern - The local locator (regular expression) pattern to which this RestEndpoint is bound.
      aRequestConsumer - The listener processing a request targeted at this RestEndpoint.
      Returns:
      The pre-configured RestEndpoint which acts as handle to unsubscribe the RestEndpoint via Observable.unsubscribeObserver(Object).
    • onDelete

      public RestEndpointBuilder onDelete(Pattern aLocatorRegExp, RestRequestConsumer aRequestConsumer)
      Even more convenient: Everything done here can also be done using RestServer.onRequest(HttpMethod, String, RestRequestConsumer): Registers a RestRequestConsumer with the given Locator-Pattern to incoming DELETE methods. Attention: Invoke RestEndpointBuilder.open() to activate this endpoint!
      Specified by:
      onDelete in interface RestServer
      Parameters:
      aLocatorRegExp - The local locator (regular expression) pattern to which this RestEndpoint is bound.
      aRequestConsumer - The listener processing a request targeted at this RestEndpoint.
      Returns:
      The pre-configured RestEndpoint which acts as handle to unsubscribe the RestEndpoint via Observable.unsubscribeObserver(Object).
    • onGet

      public RestEndpointBuilder onGet(Pattern aLocatorRegExp, RestRequestConsumer aRequestConsumer)
      Even more convenient: Everything done here can also be done using RestServer.onRequest(HttpMethod, String, RestRequestConsumer): Registers a RestRequestConsumer with the given Locator-Pattern to incoming GET methods. Attention: Invoke RestEndpointBuilder.open() to activate this endpoint!
      Specified by:
      onGet in interface RestServer
      Parameters:
      aLocatorRegExp - The local locator (regular expression) pattern to which this RestEndpoint is bound.
      aRequestConsumer - The listener processing a request targeted at this RestEndpoint.
      Returns:
      The pre-configured RestEndpoint which acts as handle to unsubscribe the RestEndpoint via Observable.unsubscribeObserver(Object).
    • onPost

      public RestEndpointBuilder onPost(Pattern aLocatorRegExp, RestRequestConsumer aRequestConsumer)
      Even more convenient: Everything done here can also be done using RestServer.onRequest(HttpMethod, String, RestRequestConsumer): Registers a RestRequestConsumer with the given Locator-Pattern to incoming POST methods. Attention: Invoke RestEndpointBuilder.open() to activate this endpoint!
      Specified by:
      onPost in interface RestServer
      Parameters:
      aLocatorRegExp - The local locator (regular expression) pattern to which this RestEndpoint is bound.
      aRequestConsumer - The listener processing a request targeted at this RestEndpoint.
      Returns:
      The pre-configured RestEndpoint which acts as handle to unsubscribe the RestEndpoint via Observable.unsubscribeObserver(Object).
    • onPut

      public RestEndpointBuilder onPut(Pattern aLocatorRegExp, RestRequestConsumer aRequestConsumer)
      Even more convenient: Everything done here can also be done using RestServer.onRequest(HttpMethod, String, RestRequestConsumer): Registers a RestRequestConsumer with the given Locator-Pattern to incoming PUT methods. Attention: Invoke RestEndpointBuilder.open() to activate this endpoint!
      Specified by:
      onPut in interface RestServer
      Parameters:
      aLocatorRegExp - The local locator (regular expression) pattern to which this RestEndpoint is bound.
      aRequestConsumer - The listener processing a request targeted at this RestEndpoint.
      Returns:
      The pre-configured RestEndpoint which acts as handle to unsubscribe the RestEndpoint via Observable.unsubscribeObserver(Object).
    • onRequest

      public RestEndpointBuilder onRequest(org.refcodes.web.HttpMethod aHttpMethod, Pattern aLocatorRegExp, RestRequestConsumer aRequestConsumer)
      Registers a pre-configured RestEndpoint with the least required attributes and returns its instance. To unsubscribe via Observable.unsubscribeObserver(Object), use the returned instance. Attention: Invoke RestEndpointBuilder.open() to activate this endpoint!
      Specified by:
      onRequest in interface RestServer
      Parameters:
      aHttpMethod - The HTTP-Method to which this RestEndpoint is bound. A value of null means that any HTTP-Method may trigger this RestEndpoint.
      aLocatorRegExp - The local locator (regular expression) pattern to which this RestEndpoint is bound. A value of null means that any locator may trigger this RestEndpoint.
      aRequestConsumer - The listener processing a request targeted at this RestEndpoint.
      Returns:
      The pre-configured RestEndpoint which acts as handle to unsubscribe the RestEndpoint via Observable.unsubscribeObserver(Object).
    • onRequest

      public RestEndpointBuilder onRequest(Pattern aLocatorRegExp, RestRequestConsumer aRequestConsumer)
      Registers a pre-configured RestEndpoint, triggerd by any HTTP method, and returns its instance. To unsubscribe via Observable.unsubscribeObserver(Object), use the returned instance. Attention: Invoke RestEndpointBuilder.open() to activate this endpoint!
      Specified by:
      onRequest in interface RestServer
      Parameters:
      aLocatorRegExp - The local locator (regular expression) pattern to which this RestEndpoint is bound.
      aRequestConsumer - The listener processing a request targeted at this RestEndpoint.
      Returns:
      The pre-configured RestEndpoint which acts as handle to unsubscribe the RestEndpoint via Observable.unsubscribeObserver(Object).
    • onRequest

      public boolean onRequest(RestEndpoint aRestEndpoint)
      For the sake of unified naming, this method just delegates to Observable.subscribeObserver(Object).
      Specified by:
      onRequest in interface RestServer
      Parameters:
      aRestEndpoint - the rest endpoint
      Returns:
      true, if successful
    • open

      public void open(int aPort) throws IOException
      Opens the HTTP sever connection (socket) at the given port
      Specified by:
      open in interface HttpRestServer
      Parameters:
      aPort - The port on which to listen for requests.
      Throws:
      IOException - thrown in case something went wrong such as the port being already in use.
    • open

      public void open(int aPort, int aMaxConnections) throws IOException
      Opens the HTTP sever connection (socket) at the given port allowing the given number of maximum connections at the same time.
      Specified by:
      open in interface HttpRestServer
      Parameters:
      aPort - The port on which to listen for requests.
      aMaxConnections - The number of maximum connections at the same time.
      Throws:
      IOException - thrown in case something went wrong such as the port being already in use.
    • open

      public void open(String aProtocol, org.refcodes.security.KeyStoreDescriptor aStoreDescriptor, int aPort) throws IOException
      Same as HttpRestServer.open(String, KeyStoreDescriptor, int, int) but:
      • The number of maximum connections at the same time is decided upon by the implementations's default value.
      Specified by:
      open in interface HttpRestServer
      Parameters:
      aProtocol - The protocol to use, e.g. "TLS".
      aStoreDescriptor - The store descriptor describing your KeyStore required for HTTPS.
      aPort - The port on which to listen for requests.
      Throws:
      IOException - thrown in case something went wrong such as the port being already in use.
    • open

      public void open(String aProtocol, org.refcodes.security.KeyStoreDescriptor aStoreDescriptor, int aPort, int aMaxConnections) throws IOException
      Opens the HTTPS sever connection (socket) at the given port allowing the given number of maximum connections at the same time using the provided HTTPS configuration parameters.
      Specified by:
      open in interface HttpRestServer
      Parameters:
      aProtocol - The protocol to use, e.g. "TLS".
      aStoreDescriptor - The store descriptor describing your KeyStore required for HTTPS.
      aPort - The port on which to listen for requests.
      aMaxConnections - The number of maximum connections at the same time.
      Throws:
      IOException - thrown in case something went wrong such as the port being already in use.
    • openUnchecked

      public void openUnchecked(org.refcodes.web.HttpServerContext aConnection)
      Specified by:
      openUnchecked in interface org.refcodes.component.ConnectionOpenable<B extends HttpRestServer>
    • setBaseLocator

      public void setBaseLocator(String aBaseLocator)
      Specified by:
      setBaseLocator in interface org.refcodes.web.BaseLocatorAccessor.BaseLocatorMutator
    • setRealm

      public void setRealm(String aRealm)
      Specified by:
      setRealm in interface org.refcodes.web.RealmAccessor.RealmMutator
    • setRequestCorrelation

      public void setRequestCorrelation(boolean hasRequestCorrelation)
      Specified by:
      setRequestCorrelation in interface org.refcodes.runtime.RequestCorrelation<B extends HttpRestServer>
    • setSessionCorrelation

      public void setSessionCorrelation(boolean hasSessionCorrelation)
      Specified by:
      setSessionCorrelation in interface org.refcodes.runtime.SessionCorrelation<B extends HttpRestServer>
    • subscribeObserver

      public boolean subscribeObserver(RestEndpoint aObserver)
      Specified by:
      subscribeObserver in interface org.refcodes.observer.Observable<B extends HttpRestServer>
    • toMediaTypeFactory

      public org.refcodes.web.MediaTypeFactory toMediaTypeFactory(org.refcodes.web.MediaType aMediaType)
      Specified by:
      toMediaTypeFactory in interface org.refcodes.web.MediaTypeFactoryLookup
    • unsubscribeObserver

      public boolean unsubscribeObserver(RestEndpoint aObserver)
      Specified by:
      unsubscribeObserver in interface org.refcodes.observer.Observable<B extends HttpRestServer>
    • observers

      public Iterator<RestEndpoint> observers()
      Specified by:
      observers in interface org.refcodes.observer.Observers<RestEndpoint,RestServer>
    • withBaseLocator

      public B withBaseLocator(String aBaseLocator)
      Specified by:
      withBaseLocator in interface org.refcodes.web.BaseLocatorAccessor.BaseLocatorBuilder<B extends HttpRestServer>
      Specified by:
      withBaseLocator in interface HttpRestServer
      Specified by:
      withBaseLocator in interface RestServer
    • withClose

      public B withClose() throws IOException
      Specified by:
      withClose in interface org.refcodes.component.Closable.CloseBuilder<B extends HttpRestServer>
      Specified by:
      withClose in interface HttpRestServer
      Throws:
      IOException
    • withCloseIn

      public B withCloseIn(int aCloseMillis)
      Specified by:
      withCloseIn in interface org.refcodes.component.Closable.CloseBuilder<B extends HttpRestServer>
      Specified by:
      withCloseIn in interface HttpRestServer
    • withCloseQuietly

      public B withCloseQuietly()
      Specified by:
      withCloseQuietly in interface org.refcodes.component.Closable.CloseBuilder<B extends HttpRestServer>
      Specified by:
      withCloseQuietly in interface HttpRestServer
    • withCloseUnchecked

      public B withCloseUnchecked()
      Specified by:
      withCloseUnchecked in interface org.refcodes.component.Closable.CloseBuilder<B extends HttpRestServer>
    • withDisableRequestCorrelation

      public B withDisableRequestCorrelation()
      Specified by:
      withDisableRequestCorrelation in interface HttpRestServer
      Specified by:
      withDisableRequestCorrelation in interface org.refcodes.runtime.RequestCorrelation<B extends HttpRestServer>
      Specified by:
      withDisableRequestCorrelation in interface RestServer
    • withDisableSessionCorrelation

      public B withDisableSessionCorrelation()
      Specified by:
      withDisableSessionCorrelation in interface HttpRestServer
      Specified by:
      withDisableSessionCorrelation in interface RestServer
      Specified by:
      withDisableSessionCorrelation in interface org.refcodes.runtime.SessionCorrelation<B extends HttpRestServer>
    • withEnableRequestCorrelation

      public B withEnableRequestCorrelation()
      Specified by:
      withEnableRequestCorrelation in interface HttpRestServer
      Specified by:
      withEnableRequestCorrelation in interface org.refcodes.runtime.RequestCorrelation<B extends HttpRestServer>
      Specified by:
      withEnableRequestCorrelation in interface RestServer
    • withEnableSessionCorrelation

      public B withEnableSessionCorrelation()
      Specified by:
      withEnableSessionCorrelation in interface HttpRestServer
      Specified by:
      withEnableSessionCorrelation in interface RestServer
      Specified by:
      withEnableSessionCorrelation in interface org.refcodes.runtime.SessionCorrelation<B extends HttpRestServer>
    • withOpen

      public B withOpen(org.refcodes.web.HttpServerContext aConnection) throws IOException
      Specified by:
      withOpen in interface org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<org.refcodes.web.HttpServerContext,org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.web.HttpServerContext,HttpRestServer>>
      Specified by:
      withOpen in interface HttpRestServer
      Throws:
      IOException
    • withOpenUnchecked

      public B withOpenUnchecked(org.refcodes.web.HttpServerContext aConnection)
      Specified by:
      withOpenUnchecked in interface org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<org.refcodes.web.HttpServerContext,org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.web.HttpServerContext,HttpRestServer>>
    • withRealm

      public B withRealm(String aRealm)
      Specified by:
      withRealm in interface HttpRestServer
      Specified by:
      withRealm in interface org.refcodes.web.RealmAccessor.RealmBuilder<B extends HttpRestServer>
      Specified by:
      withRealm in interface RestServer
    • withRequestCorrelation

      public B withRequestCorrelation(boolean hasRequestCorrelation)
      Specified by:
      withRequestCorrelation in interface HttpRestServer
      Specified by:
      withRequestCorrelation in interface org.refcodes.runtime.RequestCorrelation<B extends HttpRestServer>
      Specified by:
      withRequestCorrelation in interface RestServer
    • withSessionCorrelation

      public B withSessionCorrelation(boolean hasSessionCorrelation)
      Specified by:
      withSessionCorrelation in interface HttpRestServer
      Specified by:
      withSessionCorrelation in interface RestServer
      Specified by:
      withSessionCorrelation in interface org.refcodes.runtime.SessionCorrelation<B extends HttpRestServer>
    • getMaxConnections

      public int getMaxConnections()
      Specified by:
      getMaxConnections in interface org.refcodes.io.MaxConnectionsAccessor
    • getKeyStoreDescriptor

      public org.refcodes.security.KeyStoreDescriptor getKeyStoreDescriptor()
      Specified by:
      getKeyStoreDescriptor in interface org.refcodes.security.KeyStoreDescriptorAccessor
    • setKeyStoreDescriptor

      public void setKeyStoreDescriptor(org.refcodes.security.KeyStoreDescriptor aKeyStoreDescriptor)
      Specified by:
      setKeyStoreDescriptor in interface org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorMutator
    • setMaxConnections

      public void setMaxConnections(int aMaxConnections)
      Specified by:
      setMaxConnections in interface org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsMutator
    • setProtocol

      public void setProtocol(String aProtocol)
      Specified by:
      setProtocol in interface org.refcodes.web.SchemeAccessor.SchemeMutator
    • toProtocol

      public String toProtocol()
      Specified by:
      toProtocol in interface org.refcodes.web.SchemeAccessor