Class AbstractRestfulHttpServerDecorator<B extends RestfulHttpServer>

java.lang.Object
org.refcodes.rest.AbstractRestfulHttpServerDecorator<B>
Type Parameters:
B - the generic type
All Implemented Interfaces:
org.refcodes.component.Closable, org.refcodes.component.Closable.CloseBuilder<org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.web.HttpServerContext,RestfulHttpServer>>, org.refcodes.component.ConnectionComponent<org.refcodes.web.HttpServerContext>, org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.web.HttpServerContext,RestfulHttpServer>, 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,RestfulHttpServer>>, 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<RestfulHttpServer>, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsMutator, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsProperty, org.refcodes.mixin.PortAccessor, org.refcodes.mixin.PortAccessor.PortBuilder<RestfulHttpServer>, org.refcodes.mixin.PortAccessor.PortMutator, org.refcodes.mixin.PortAccessor.PortProperty, org.refcodes.observer.Observable<RestEndpoint>, org.refcodes.observer.Observers<RestEndpoint,RestfulServer>, HttpExceptionHandlerAccessor, HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<RestfulHttpServer>, HttpExceptionHandlerAccessor.HttpExceptionHandlerMutator, HttpExceptionHandlerAccessor.HttpExceptionHandlerProperty, HttpExceptionHandlingAccessor, HttpExceptionHandlingAccessor.HttpExceptionHandlingBuilder<RestfulHttpServer>, HttpExceptionHandlingAccessor.HttpExceptionHandlingMutator, HttpExceptionHandlingAccessor.HttpExceptionHandlingProperty, RestfulHttpServer, RestfulServer, org.refcodes.security.KeyStoreDescriptorAccessor, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<RestfulHttpServer>, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorMutator, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorProperty, org.refcodes.web.BaseLocatorAccessor, org.refcodes.web.BaseLocatorAccessor.BaseLocatorBuilder<RestfulServer>, org.refcodes.web.BaseLocatorAccessor.BaseLocatorMutator, org.refcodes.web.BaseLocatorAccessor.BaseLocatorProperty, org.refcodes.web.BasicAuthObservable<RestfulHttpServer>, org.refcodes.web.HttpsConnectionRequestObservable<RestfulHttpServer>, org.refcodes.web.HttpServerInterceptable, org.refcodes.web.MediaTypeFactoryLookup, org.refcodes.web.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup, org.refcodes.web.PostHttpInterceptable<org.refcodes.web.PostHttpServerInterceptor>, org.refcodes.web.PostHttpServerInterceptable, org.refcodes.web.PreHttpInterceptable<org.refcodes.web.PreHttpServerInterceptor>, org.refcodes.web.PreHttpServerInterceptable, org.refcodes.web.RealmAccessor, org.refcodes.web.RealmAccessor.RealmBuilder<RestfulServer>, org.refcodes.web.RealmAccessor.RealmMutator, org.refcodes.web.RealmAccessor.RealmProperty, org.refcodes.web.SchemeAccessor, org.refcodes.web.SchemeAccessor.SchemeBuilder<RestfulHttpServer>, org.refcodes.web.SchemeAccessor.SchemeMutator, org.refcodes.web.SchemeAccessor.SchemeProperty
Direct Known Subclasses:
AbstractRestfulHttpRegistryServerDecorator

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

  • Constructor Details

  • 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
    • 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
    • hasObserver

      public boolean hasObserver(RestEndpoint aObserver)
      Specified by:
      hasObserver in interface org.refcodes.observer.Observable<B extends RestfulHttpServer>
    • onBasicAuthRequest

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

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

      public RestEndpointBuilder onDelete(String aLocatorPathPattern, RestRequestConsumer aRequestConsumer)
      Even more convenient: Everything done here can also be done using RestfulServer.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 RestfulServer
      Parameters:
      aLocatorPathPattern - The local Locator-Pattern to which this RestEndpoint is bound.
      aRequestConsumer - The listener processing a request targeted at this RestEndpoint.
      Returns:
      The preconfigured 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 RestfulServer.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 RestfulServer
      Parameters:
      aLocatorPathPattern - The local Locator-Pattern to which this RestEndpoint is bound.
      aRequestConsumer - The listener processing a request targeted at this RestEndpoint.
      Returns:
      The preconfigured 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 RestfulServer.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 RestfulServer
      Parameters:
      aLocatorPathPattern - The local Locator-Pattern to which this RestEndpoint is bound.
      aRequestConsumer - The listener processing a request targeted at this RestEndpoint.
      Returns:
      The preconfigured 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 RestfulServer.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 RestfulServer
      Parameters:
      aLocatorPathPattern - The local Locator-Pattern to which this RestEndpoint is bound.
      aRequestConsumer - The listener processing a request targeted at this RestEndpoint.
      Returns:
      The preconfigured 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 preconfigured 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 RestfulServer
      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 preconfigured RestEndpoint which acts as handle to unsubscribe the RestEndpoint via Observable.unsubscribeObserver(Object).
    • onRequest

      public RestEndpointBuilder onRequest(String aLocatorPathPattern, RestRequestConsumer aRequestConsumer)
      Registers a preconfigured 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 RestfulServer
      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 preconfigured 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 RestfulServer.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 RestfulServer
      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 preconfigured 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 RestfulServer.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 RestfulServer
      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 preconfigured 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 RestfulServer.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 RestfulServer
      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 preconfigured 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 RestfulServer.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 RestfulServer
      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 preconfigured 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 preconfigured 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 RestfulServer
      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 preconfigured RestEndpoint which acts as handle to unsubscribe the RestEndpoint via Observable.unsubscribeObserver(Object).
    • onRequest

      public RestEndpointBuilder onRequest(Pattern aLocatorRegExp, RestRequestConsumer aRequestConsumer)
      Registers a preconfigured 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 RestfulServer
      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 preconfigured 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 RestfulServer
      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 RestfulHttpServer
      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 RestfulHttpServer
      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 RestfulHttpServer.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 RestfulHttpServer
      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 RestfulHttpServer
      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 RestfulHttpServer>
    • 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
    • subscribeObserver

      public boolean subscribeObserver(RestEndpoint aObserver)
      Specified by:
      subscribeObserver in interface org.refcodes.observer.Observable<B extends RestfulHttpServer>
    • 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 RestfulHttpServer>
    • observers

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

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

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

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

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

      public B withCloseUnchecked()
      Specified by:
      withCloseUnchecked in interface org.refcodes.component.Closable.CloseBuilder<B extends RestfulHttpServer>
    • 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,RestfulHttpServer>>
      Specified by:
      withOpen in interface RestfulHttpServer
      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,RestfulHttpServer>>
    • withRealm

      public B withRealm(String aRealm)
      Specified by:
      withRealm in interface org.refcodes.web.RealmAccessor.RealmBuilder<B extends RestfulHttpServer>
      Specified by:
      withRealm in interface RestfulHttpServer
      Specified by:
      withRealm in interface RestfulServer
    • 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
    • hasPreHttpInterceptor

      public boolean hasPreHttpInterceptor(org.refcodes.web.PreHttpServerInterceptor aPreInterceptor)
      Specified by:
      hasPreHttpInterceptor in interface org.refcodes.web.PreHttpInterceptable<B extends RestfulHttpServer>
    • addPreHttpInterceptor

      public boolean addPreHttpInterceptor(org.refcodes.web.PreHttpServerInterceptor aPreInterceptor)
      Specified by:
      addPreHttpInterceptor in interface org.refcodes.web.PreHttpInterceptable<B extends RestfulHttpServer>
    • removePreHttpInterceptor

      public boolean removePreHttpInterceptor(org.refcodes.web.PreHttpServerInterceptor aPreInterceptor)
      Specified by:
      removePreHttpInterceptor in interface org.refcodes.web.PreHttpInterceptable<B extends RestfulHttpServer>
    • hasPostHttpInterceptor

      public boolean hasPostHttpInterceptor(org.refcodes.web.PostHttpServerInterceptor aPostInterceptor)
      Specified by:
      hasPostHttpInterceptor in interface org.refcodes.web.PostHttpInterceptable<B extends RestfulHttpServer>
    • addPostHttpInterceptor

      public boolean addPostHttpInterceptor(org.refcodes.web.PostHttpServerInterceptor aPostInterceptor)
      Specified by:
      addPostHttpInterceptor in interface org.refcodes.web.PostHttpInterceptable<B extends RestfulHttpServer>
    • removePostHttpInterceptor

      public boolean removePostHttpInterceptor(org.refcodes.web.PostHttpServerInterceptor aPostInterceptor)
      Specified by:
      removePostHttpInterceptor in interface org.refcodes.web.PostHttpInterceptable<B extends RestfulHttpServer>