Modifier and Type | Interface and Description |
---|---|
interface |
HttpRestServer
Extends a
RestServer to be capable of opening a server socket on the
local host with the provided port number via ConnectionOpenable.open(Object) or with an
additional maximum number of connections via HttpRestServer.open(Integer, int) . |
interface |
LoopbackRestServer
Extends a
RestServer to be used as loopback device e.g. for testing
purposes such as testing your RestRequestObserver implementations. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractRestServer
Implementation of the base functionality of the
RestServer interface
omitting the HTTP handling part being the foundation for various
RestServer implementations such as HttpRestServerImpl or
LoopbackRestServerImpl . |
class |
HttpRestServerImpl
Implementation of the
HttpRestServer interface using the
HttpServer defined in the com.sun.net.httpserver
package. |
class |
HttpRestServerSingleton
The singleton of the
HttpRestServerImpl for easy
HttpRestServer access. |
class |
LoopbackRestServerImpl
Implementation if the
LoopbackRestServer for easy testing of your
requests being received by a RestServer (HttpRestServer ) and
the according response lambda expressions. |
class |
LoopbackRestServerSingleton
The singleton of the
LoopbackRestServerImpl for easy
RestServer access. |
Modifier and Type | Method and Description |
---|---|
static RestServer |
LoopbackRestServerSingleton.getInstance()
Returns the singleton's instance as fabricated by this
LoopbackRestServerSingleton . |
RestServer |
RestRequestEventImpl.getSource() |
RestServer |
RestResponseEventImpl.getSource() |
default RestServer |
RestServer.withBaseLocator(String aBaseLocator) |
default RestServer |
RestServer.withDisableRequestCorrelation() |
default RestServer |
RestServer.withDisableSessionCorrelation() |
default RestServer |
RestServer.withEnableRequestCorrelation() |
default RestServer |
RestServer.withEnableSessionCorrelation() |
default RestServer |
RestServer.withRealm(String aRealm) |
default RestServer |
RestServer.withRequestCorrelation(boolean hasRequestCorrelation) |
default RestServer |
RestServer.withSessionCorrelation(boolean hasSessionCorrelation) |
Constructor and Description |
---|
RestRequestEventImpl(InetSocketAddress aLocalAddress,
InetSocketAddress aRemoteAddress,
org.refcodes.net.HttpMethod aHttpMethod,
String aLocator,
org.refcodes.matcher.WildcardSubstitutes aWildcardSubstitutes,
org.refcodes.net.FormFields aQueryFields,
org.refcodes.net.RequestHeaderFields aHeaderFields,
InputStream aHttpInputStream,
RestServer aRestServer)
Constructs a
RestRequestEvent with all required attributes. |
Copyright © 2017. All rights reserved.