org.refcodes.component.Closable
, org.refcodes.component.Closable.CloseBuilder<org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.net.HttpServerContext,HttpRestServer>>
, org.refcodes.component.ConnectionComponent<org.refcodes.net.HttpServerContext>
, org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.net.HttpServerContext,HttpRestServer>
, org.refcodes.component.ConnectionOpenable<org.refcodes.net.HttpServerContext>
, org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<org.refcodes.net.HttpServerContext,org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.net.HttpServerContext,HttpRestServer>>
, org.refcodes.component.ConnectionStatusAccessor
, org.refcodes.component.LinkComponent
, org.refcodes.component.Openable
, 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.net.BaseLocatorAccessor
, org.refcodes.net.BaseLocatorAccessor.BaseLocatorBuilder<RestServer>
, org.refcodes.net.BaseLocatorAccessor.BaseLocatorMutator
, org.refcodes.net.BaseLocatorAccessor.BaseLocatorProperty
, org.refcodes.net.BasicAuthObservable<HttpRestServer>
, org.refcodes.net.HttpsConnectionRequestObservable<HttpRestServer>
, org.refcodes.net.MediaTypeFactoryLookup
, org.refcodes.net.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup
, org.refcodes.net.RealmAccessor
, org.refcodes.net.RealmAccessor.RealmBuilder<RestServer>
, org.refcodes.net.RealmAccessor.RealmMutator
, org.refcodes.net.RealmAccessor.RealmProperty
, org.refcodes.net.SchemeAccessor
, org.refcodes.net.SchemeAccessor.SchemeBuilder<HttpRestServer>
, org.refcodes.net.SchemeAccessor.SchemeMutator
, org.refcodes.net.SchemeAccessor.SchemeProperty
, 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
AbstractHttpRegistryRestServerDecorator
public abstract class AbstractHttpRestServerDecorator<B extends HttpRestServer> extends Object implements HttpRestServer
HttpRestServer
.org.refcodes.net.BaseLocatorAccessor.BaseLocatorBuilder<B extends org.refcodes.net.BaseLocatorAccessor.BaseLocatorBuilder<B>>, org.refcodes.net.BaseLocatorAccessor.BaseLocatorMutator, org.refcodes.net.BaseLocatorAccessor.BaseLocatorProperty
org.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>
org.refcodes.component.ConnectionComponent.ConnectionAutomaton<CON extends Object>, org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON extends Object,B extends org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON,B>>
org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<CON extends Object>, org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON extends Object,B extends org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON,B>>
org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusMutator, org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusProperty
HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<B extends HttpExceptionHandlerAccessor.HttpExceptionHandlerBuilder<B>>, HttpExceptionHandlerAccessor.HttpExceptionHandlerMutator, HttpExceptionHandlerAccessor.HttpExceptionHandlerProperty
HttpExceptionHandlingAccessor.HttpExceptionHandlingBuilder<B extends HttpExceptionHandlingAccessor.HttpExceptionHandlingBuilder<B>>, HttpExceptionHandlingAccessor.HttpExceptionHandlingMutator, HttpExceptionHandlingAccessor.HttpExceptionHandlingProperty
org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<B extends org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorBuilder<B>>, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorMutator, org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorProperty
org.refcodes.component.LinkComponent.LinkAutomaton, org.refcodes.component.LinkComponent.LinkComponentBuilder<B extends org.refcodes.component.LinkComponent.LinkComponentBuilder<B>>
org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<B extends org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsBuilder<B>>, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsMutator, org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsProperty
org.refcodes.net.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup
org.refcodes.component.Openable.OpenAutomaton, org.refcodes.component.Openable.OpenBuilder<B extends org.refcodes.component.Openable.OpenBuilder<B>>
org.refcodes.mixin.PortAccessor.PortBuilder<B extends org.refcodes.mixin.PortAccessor.PortBuilder<B>>, org.refcodes.mixin.PortAccessor.PortMutator, org.refcodes.mixin.PortAccessor.PortProperty
Modifier and Type | Field | Description |
---|---|---|
protected HttpRestServer |
_server |
Constructor | Description |
---|---|
AbstractHttpRestServerDecorator(HttpRestServer aServer) |
Decorates the given
HttpRestServer with additional functionality. |
Modifier and Type | Method | Description |
---|---|---|
boolean |
addMediaTypeFactory(org.refcodes.net.MediaTypeFactory aMediaTypeFactory) |
|
void |
close() |
|
void |
closeIn(int aCloseInMillis) |
|
void |
closeQuietly() |
|
void |
closeUnchecked() |
|
void |
disableRequestCorrelation() |
|
void |
disableSessionCorrelation() |
|
void |
enableRequestCorrelation() |
|
void |
enableSessionCorrelation() |
|
String |
getBaseLocator() |
|
org.refcodes.net.MediaType[] |
getFactoryMediaTypes() |
|
org.refcodes.security.KeyStoreDescriptor |
getKeyStoreDescriptor() |
|
int |
getMaxConnections() |
|
int |
getPort() |
|
String |
getRealm() |
|
org.refcodes.data.Scheme |
getScheme() |
|
boolean |
hasMediaTypeFactory(org.refcodes.net.MediaType aMediaType) |
|
boolean |
hasObserverSubscription(RestEndpoint aObserver) |
|
boolean |
hasRequestCorrelation() |
|
boolean |
hasSessionCorrelation() |
|
Iterator<RestEndpoint> |
observers() |
|
B |
onBasicAuthRequest(org.refcodes.net.BasicAuthObserver aObserver) |
|
B |
onConnectionRequest(org.refcodes.net.HttpsConnectionRequestObserver aObserver) |
|
RestEndpointBuilder |
onDelete(String aLocatorPattern,
RestRequestObserver aRequestObserver) |
Even more convenient: Everything done here can also be done using
RestServer.onRequest(HttpMethod, String, RestRequestObserver) :
Registers a RestRequestObserver with the given Locator-Pattern to
incoming DELETE methods. |
RestEndpointBuilder |
onGet(String aLocatorPattern,
RestRequestObserver aRequestObserver) |
Even more convenient: Everything done here can also be done using
RestServer.onRequest(HttpMethod, String, RestRequestObserver) :
Registers a RestRequestObserver with the given Locator-Pattern to
incoming GET methods. |
RestEndpointBuilder |
onPost(String aLocatorPattern,
RestRequestObserver aRequestObserver) |
Even more convenient: Everything done here can also be done using
RestServer.onRequest(HttpMethod, String, RestRequestObserver) :
Registers a RestRequestObserver with the given Locator-Pattern to
incoming POST methods. |
RestEndpointBuilder |
onPut(String aLocatorPattern,
RestRequestObserver aRequestObserver) |
Even more convenient: Everything done here can also be done using
RestServer.onRequest(HttpMethod, String, RestRequestObserver) :
Registers a RestRequestObserver with the given Locator-Pattern to
incoming PUT methods. |
RestEndpointBuilder |
onRequest(String aLocatorPattern,
RestRequestObserver aRequestObserver) |
Registers a pre-configured
RestEndpoint , triggerd by any HTTP
method, and returns its instance. |
RestEndpointBuilder |
onRequest(org.refcodes.net.HttpMethod aHttpMethod,
String aLocatorPattern,
RestRequestObserver aRequestObserver) |
Registers a pre-configured
RestEndpoint with the least required
attributes and returns its instance. |
boolean |
onRequest(RestEndpoint aRestEndpoint) |
For the sake of unified naming, this method just delegates to
Observable.subscribeObserver(Object) . |
void |
open(int aPort) |
Opens the HTTP sever connection (socket) at the given port
|
void |
open(int aPort,
int aMaxConnections) |
Opens the HTTP sever connection (socket) at the given port allowing the
given number of maximum connections at the same time.
|
void |
open(String aProtocol,
org.refcodes.security.KeyStoreDescriptor aStoreDescriptor,
int aPort) |
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. |
void |
open(String aProtocol,
org.refcodes.security.KeyStoreDescriptor aStoreDescriptor,
int aPort,
int aMaxConnections) |
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.
|
void |
openUnchecked(org.refcodes.net.HttpServerContext aConnection) |
|
void |
setBaseLocator(String aBaseLocator) |
|
void |
setKeyStoreDescriptor(org.refcodes.security.KeyStoreDescriptor aStoreDescriptor) |
|
void |
setMaxConnections(int aMaxConnections) |
|
void |
setPort(int aPort) |
|
void |
setProtocol(String aProtocol) |
|
void |
setRealm(String aRealm) |
|
void |
setRequestCorrelation(boolean hasRequestCorrelation) |
|
void |
setScheme(org.refcodes.data.Scheme aScheme) |
|
void |
setSessionCorrelation(boolean hasSessionCorrelation) |
|
boolean |
subscribeObserver(RestEndpoint aObserver) |
|
org.refcodes.net.MediaTypeFactory |
toMediaTypeFactory(org.refcodes.net.MediaType aMediaType) |
|
String |
toProtocol() |
|
boolean |
unsubscribeObserver(RestEndpoint aObserver) |
|
B |
withBaseLocator(String aBaseLocator) |
|
B |
withClose() |
|
B |
withCloseIn(int aCloseInMillis) |
|
B |
withCloseQuietly() |
|
B |
withCloseUnchecked() |
|
B |
withDisableRequestCorrelation() |
|
B |
withDisableSessionCorrelation() |
|
B |
withEnableRequestCorrelation() |
|
B |
withEnableSessionCorrelation() |
|
B |
withOpen(org.refcodes.net.HttpServerContext aConnection) |
|
B |
withOpenUnchecked(org.refcodes.net.HttpServerContext aConnection) |
|
B |
withRealm(String aRealm) |
|
B |
withRequestCorrelation(boolean hasRequestCorrelation) |
|
B |
withSessionCorrelation(boolean hasSessionCorrelation) |
getConnectionStatus, isConnectionOpened
getHttpExceptionHandler
withOnHttpException
onHttpException, setHttpExceptionHandler
getHttpExceptionHandling
setHttpExceptionHandling
open, open, open, open, open, open, open, open, open, withHttpExceptionHandler, withHttpExceptionHandling, withKeyStoreDescriptor, withMaxConnections, withOpen, withPort, withProtocol, withScheme
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
disableObservers, enableObservers, isObserversActive, setObserversActive
withDisableObservers, withEnableObservers, withObserversActive
protected HttpRestServer _server
public AbstractHttpRestServerDecorator(HttpRestServer aServer)
HttpRestServer
with additional functionality.aServer
- The HttpRestServer
to be decorated.public int getPort()
getPort
in interface org.refcodes.mixin.PortAccessor
public void setPort(int aPort)
setPort
in interface org.refcodes.mixin.PortAccessor.PortMutator
public org.refcodes.data.Scheme getScheme()
getScheme
in interface org.refcodes.net.SchemeAccessor
public void setScheme(org.refcodes.data.Scheme aScheme)
setScheme
in interface org.refcodes.net.SchemeAccessor.SchemeMutator
public boolean addMediaTypeFactory(org.refcodes.net.MediaTypeFactory aMediaTypeFactory)
addMediaTypeFactory
in interface org.refcodes.net.MediaTypeFactoryLookup.MutableMediaTypeFactoryLookup
public void close() throws org.refcodes.component.CloseException
close
in interface org.refcodes.component.Closable
org.refcodes.component.CloseException
public void closeIn(int aCloseInMillis)
closeIn
in interface org.refcodes.component.Closable
public void closeQuietly()
closeQuietly
in interface org.refcodes.component.Closable
public void closeUnchecked()
closeUnchecked
in interface org.refcodes.component.Closable
public void disableRequestCorrelation()
disableRequestCorrelation
in interface org.refcodes.runtime.RequestCorrelation<B extends HttpRestServer>
public void disableSessionCorrelation()
disableSessionCorrelation
in interface org.refcodes.runtime.SessionCorrelation<B extends HttpRestServer>
public void enableRequestCorrelation()
enableRequestCorrelation
in interface org.refcodes.runtime.RequestCorrelation<B extends HttpRestServer>
public void enableSessionCorrelation()
enableSessionCorrelation
in interface org.refcodes.runtime.SessionCorrelation<B extends HttpRestServer>
public String getBaseLocator()
getBaseLocator
in interface org.refcodes.net.BaseLocatorAccessor
public org.refcodes.net.MediaType[] getFactoryMediaTypes()
getFactoryMediaTypes
in interface org.refcodes.net.MediaTypeFactoryLookup
public String getRealm()
getRealm
in interface org.refcodes.net.RealmAccessor
public boolean hasMediaTypeFactory(org.refcodes.net.MediaType aMediaType)
hasMediaTypeFactory
in interface org.refcodes.net.MediaTypeFactoryLookup
public boolean hasObserverSubscription(RestEndpoint aObserver)
hasObserverSubscription
in interface org.refcodes.observer.Observable<B extends HttpRestServer>
public boolean hasRequestCorrelation()
hasRequestCorrelation
in interface org.refcodes.runtime.RequestCorrelation<B extends HttpRestServer>
public boolean hasSessionCorrelation()
hasSessionCorrelation
in interface org.refcodes.runtime.SessionCorrelation<B extends HttpRestServer>
public B onBasicAuthRequest(org.refcodes.net.BasicAuthObserver aObserver)
onBasicAuthRequest
in interface org.refcodes.net.BasicAuthObservable<B extends HttpRestServer>
public B onConnectionRequest(org.refcodes.net.HttpsConnectionRequestObserver aObserver)
onConnectionRequest
in interface org.refcodes.net.HttpsConnectionRequestObservable<B extends HttpRestServer>
public RestEndpointBuilder onDelete(String aLocatorPattern, RestRequestObserver aRequestObserver)
RestServer.onRequest(HttpMethod, String, RestRequestObserver)
:
Registers a RestRequestObserver
with the given Locator-Pattern to
incoming DELETE methods.
Attention: Invoke Openable.open()
to activate this
endpoint!onDelete
in interface RestServer
aLocatorPattern
- The local Locator-Pattern to which this
RestEndpoint
is bound.aRequestObserver
- The listener processing a request targeted at
this RestEndpoint
.RestEndpoint
which acts as handle to
unsubscribe the RestEndpoint
via
Observable.unsubscribeObserver(Object)
.public RestEndpointBuilder onGet(String aLocatorPattern, RestRequestObserver aRequestObserver)
RestServer.onRequest(HttpMethod, String, RestRequestObserver)
:
Registers a RestRequestObserver
with the given Locator-Pattern to
incoming GET methods.
Attention: Invoke Openable.open()
to activate this
endpoint!onGet
in interface RestServer
aLocatorPattern
- The local Locator-Pattern to which this
RestEndpoint
is bound.aRequestObserver
- The listener processing a request targeted at
this RestEndpoint
.RestEndpoint
which acts as handle to
unsubscribe the RestEndpoint
via
Observable.unsubscribeObserver(Object)
.public RestEndpointBuilder onPost(String aLocatorPattern, RestRequestObserver aRequestObserver)
RestServer.onRequest(HttpMethod, String, RestRequestObserver)
:
Registers a RestRequestObserver
with the given Locator-Pattern to
incoming POST methods.
Attention: Invoke Openable.open()
to activate this
endpoint!onPost
in interface RestServer
aLocatorPattern
- The local Locator-Pattern to which this
RestEndpoint
is bound.aRequestObserver
- The listener processing a request targeted at
this RestEndpoint
.RestEndpoint
which acts as handle to
unsubscribe the RestEndpoint
via
Observable.unsubscribeObserver(Object)
.public RestEndpointBuilder onPut(String aLocatorPattern, RestRequestObserver aRequestObserver)
RestServer.onRequest(HttpMethod, String, RestRequestObserver)
:
Registers a RestRequestObserver
with the given Locator-Pattern to
incoming PUT methods.
Attention: Invoke Openable.open()
to activate this
endpoint!onPut
in interface RestServer
aLocatorPattern
- The local Locator-Pattern to which this
RestEndpoint
is bound.aRequestObserver
- The listener processing a request targeted at
this RestEndpoint
.RestEndpoint
which acts as handle to
unsubscribe the RestEndpoint
via
Observable.unsubscribeObserver(Object)
.public RestEndpointBuilder onRequest(org.refcodes.net.HttpMethod aHttpMethod, String aLocatorPattern, RestRequestObserver aRequestObserver)
RestEndpoint
with the least required
attributes and returns its instance. To unsubscribe via
Observable.unsubscribeObserver(Object)
, use the returned instance.
Attention: Invoke Openable.open()
to activate this
endpoint!onRequest
in interface RestServer
aHttpMethod
- The HTTP-Method to which this RestEndpoint
is
bound. A value of null
means that any HTTP-Method may
trigger this RestEndpoint
.aLocatorPattern
- The local Locator-Pattern to which this
RestEndpoint
is bound. A value of null
means
that any locator may trigger this RestEndpoint
.aRequestObserver
- The listener processing a request targeted at
this RestEndpoint
.RestEndpoint
which acts as handle to
unsubscribe the RestEndpoint
via
Observable.unsubscribeObserver(Object)
.public boolean onRequest(RestEndpoint aRestEndpoint)
Observable.subscribeObserver(Object)
.onRequest
in interface RestServer
aRestEndpoint
- the rest endpointpublic RestEndpointBuilder onRequest(String aLocatorPattern, RestRequestObserver aRequestObserver)
RestEndpoint
, triggerd by any HTTP
method, and returns its instance. To unsubscribe via
Observable.unsubscribeObserver(Object)
, use the returned instance.
Attention: Invoke Openable.open()
to activate this
endpoint!onRequest
in interface RestServer
aLocatorPattern
- The local Locator-Pattern to which this
RestEndpoint
is bound.aRequestObserver
- The listener processing a request targeted at
this RestEndpoint
.RestEndpoint
which acts as handle to
unsubscribe the RestEndpoint
via
Observable.unsubscribeObserver(Object)
.public void open(int aPort) throws org.refcodes.component.OpenException
open
in interface HttpRestServer
aPort
- The port on which to listen for requests.org.refcodes.component.OpenException
- thrown in case something went wrong such as the
port being already in use.public void open(int aPort, int aMaxConnections) throws org.refcodes.component.OpenException
open
in interface HttpRestServer
aPort
- The port on which to listen for requests.aMaxConnections
- The number of maximum connections at the same
time.org.refcodes.component.OpenException
- thrown in case something went wrong such as the
port being already in use.public void open(String aProtocol, org.refcodes.security.KeyStoreDescriptor aStoreDescriptor, int aPort) throws org.refcodes.component.OpenException
HttpRestServer.open(String, KeyStoreDescriptor, int, int)
but:
open
in interface HttpRestServer
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.org.refcodes.component.OpenException
- thrown in case something went wrong such as the
port being already in use.public void open(String aProtocol, org.refcodes.security.KeyStoreDescriptor aStoreDescriptor, int aPort, int aMaxConnections) throws org.refcodes.component.OpenException
open
in interface HttpRestServer
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.org.refcodes.component.OpenException
- thrown in case something went wrong such as the
port being already in use.public void openUnchecked(org.refcodes.net.HttpServerContext aConnection)
openUnchecked
in interface org.refcodes.component.ConnectionOpenable<B extends HttpRestServer>
public void setBaseLocator(String aBaseLocator)
setBaseLocator
in interface org.refcodes.net.BaseLocatorAccessor.BaseLocatorMutator
public void setRealm(String aRealm)
setRealm
in interface org.refcodes.net.RealmAccessor.RealmMutator
public void setRequestCorrelation(boolean hasRequestCorrelation)
setRequestCorrelation
in interface org.refcodes.runtime.RequestCorrelation<B extends HttpRestServer>
public void setSessionCorrelation(boolean hasSessionCorrelation)
setSessionCorrelation
in interface org.refcodes.runtime.SessionCorrelation<B extends HttpRestServer>
public boolean subscribeObserver(RestEndpoint aObserver)
subscribeObserver
in interface org.refcodes.observer.Observable<B extends HttpRestServer>
public org.refcodes.net.MediaTypeFactory toMediaTypeFactory(org.refcodes.net.MediaType aMediaType)
toMediaTypeFactory
in interface org.refcodes.net.MediaTypeFactoryLookup
public boolean unsubscribeObserver(RestEndpoint aObserver)
unsubscribeObserver
in interface org.refcodes.observer.Observable<B extends HttpRestServer>
public Iterator<RestEndpoint> observers()
observers
in interface org.refcodes.observer.Observers<RestEndpoint,RestServer>
public B withBaseLocator(String aBaseLocator)
withBaseLocator
in interface org.refcodes.net.BaseLocatorAccessor.BaseLocatorBuilder<B extends HttpRestServer>
withBaseLocator
in interface HttpRestServer
withBaseLocator
in interface RestServer
public B withClose() throws org.refcodes.component.CloseException
withClose
in interface org.refcodes.component.Closable.CloseBuilder<B extends HttpRestServer>
withClose
in interface HttpRestServer
org.refcodes.component.CloseException
public B withCloseIn(int aCloseInMillis)
withCloseIn
in interface org.refcodes.component.Closable.CloseBuilder<B extends HttpRestServer>
withCloseIn
in interface HttpRestServer
public B withCloseQuietly()
withCloseQuietly
in interface org.refcodes.component.Closable.CloseBuilder<B extends HttpRestServer>
withCloseQuietly
in interface HttpRestServer
public B withCloseUnchecked()
withCloseUnchecked
in interface org.refcodes.component.Closable.CloseBuilder<B extends HttpRestServer>
public B withDisableRequestCorrelation()
withDisableRequestCorrelation
in interface HttpRestServer
withDisableRequestCorrelation
in interface org.refcodes.runtime.RequestCorrelation<B extends HttpRestServer>
withDisableRequestCorrelation
in interface RestServer
public B withDisableSessionCorrelation()
withDisableSessionCorrelation
in interface HttpRestServer
withDisableSessionCorrelation
in interface RestServer
withDisableSessionCorrelation
in interface org.refcodes.runtime.SessionCorrelation<B extends HttpRestServer>
public B withEnableRequestCorrelation()
withEnableRequestCorrelation
in interface HttpRestServer
withEnableRequestCorrelation
in interface org.refcodes.runtime.RequestCorrelation<B extends HttpRestServer>
withEnableRequestCorrelation
in interface RestServer
public B withEnableSessionCorrelation()
withEnableSessionCorrelation
in interface HttpRestServer
withEnableSessionCorrelation
in interface RestServer
withEnableSessionCorrelation
in interface org.refcodes.runtime.SessionCorrelation<B extends HttpRestServer>
public B withOpen(org.refcodes.net.HttpServerContext aConnection) throws org.refcodes.component.OpenException
withOpen
in interface org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<org.refcodes.net.HttpServerContext,org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.net.HttpServerContext,HttpRestServer>>
withOpen
in interface HttpRestServer
org.refcodes.component.OpenException
public B withOpenUnchecked(org.refcodes.net.HttpServerContext aConnection)
withOpenUnchecked
in interface org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<org.refcodes.net.HttpServerContext,org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<org.refcodes.net.HttpServerContext,HttpRestServer>>
public B withRealm(String aRealm)
withRealm
in interface HttpRestServer
withRealm
in interface org.refcodes.net.RealmAccessor.RealmBuilder<B extends HttpRestServer>
withRealm
in interface RestServer
public B withRequestCorrelation(boolean hasRequestCorrelation)
withRequestCorrelation
in interface HttpRestServer
withRequestCorrelation
in interface org.refcodes.runtime.RequestCorrelation<B extends HttpRestServer>
withRequestCorrelation
in interface RestServer
public B withSessionCorrelation(boolean hasSessionCorrelation)
withSessionCorrelation
in interface HttpRestServer
withSessionCorrelation
in interface RestServer
withSessionCorrelation
in interface org.refcodes.runtime.SessionCorrelation<B extends HttpRestServer>
public int getMaxConnections()
getMaxConnections
in interface org.refcodes.io.MaxConnectionsAccessor
public org.refcodes.security.KeyStoreDescriptor getKeyStoreDescriptor()
getKeyStoreDescriptor
in interface org.refcodes.security.KeyStoreDescriptorAccessor
public void setKeyStoreDescriptor(org.refcodes.security.KeyStoreDescriptor aStoreDescriptor)
setKeyStoreDescriptor
in interface org.refcodes.security.KeyStoreDescriptorAccessor.KeyStoreDescriptorMutator
public void setMaxConnections(int aMaxConnections)
setMaxConnections
in interface org.refcodes.io.MaxConnectionsAccessor.MaxConnectionsMutator
public void setProtocol(String aProtocol)
setProtocol
in interface org.refcodes.net.SchemeAccessor.SchemeMutator
public String toProtocol()
toProtocol
in interface org.refcodes.net.SchemeAccessor
Copyright © 2018. All rights reserved.