| Modifier and Type | Interface | Description |
|---|---|---|
interface |
HttpRegistryRestServer<DESC extends HttpServerDescriptor,B extends HttpRegistryRestServer<DESC,B>> |
The
HttpRegistryRestServer provides additional functionality
for registering at and signing off from a service discovery service in order
to resolve URLs to or from other services. |
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(int, 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 | Description |
|---|---|---|
class |
AbstractHttpRegistryRestServerDecorator<DESC extends HttpServerDescriptor,B extends HttpRegistryRestServer<DESC,B>> |
Abstract class for easily decorating a
HttpRegistryRestServer. |
class |
AbstractHttpRestServerDecorator<B extends HttpRestServer> |
Abstract class for easily decorating a
HttpRestServer. |
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 | Description |
|---|---|---|
RestServer |
RestRequestEventImpl.getSource() |
|
RestServer |
RestResponseEventImpl.getSource() |
|
default RestServer |
RestServer.withBaseLocator(String aBaseLocator) |
|
default RestServer |
RestServer.withDisableObservers() |
|
default RestServer |
RestServer.withDisableRequestCorrelation() |
|
default RestServer |
RestServer.withDisableSessionCorrelation() |
|
default RestServer |
RestServer.withEnableObservers() |
|
default RestServer |
RestServer.withEnableRequestCorrelation() |
|
default RestServer |
RestServer.withEnableSessionCorrelation() |
|
default RestServer |
RestServer.withObserversActive(boolean isActive) |
|
default RestServer |
RestServer.withRealm(String aRealm) |
|
default RestServer |
RestServer.withRequestCorrelation(boolean hasRequestCorrelation) |
|
default RestServer |
RestServer.withSessionCorrelation(boolean hasSessionCorrelation) |
| Constructor | Description |
|---|---|
RestRequestEventImpl(InetSocketAddress aLocalAddress,
InetSocketAddress aRemoteAddress,
org.refcodes.net.HttpMethod aHttpMethod,
org.refcodes.net.Url aUrl,
org.refcodes.matcher.WildcardSubstitutes aWildcardSubstitutes,
org.refcodes.net.RequestHeaderFields aHeaderFields,
InputStream aHttpInputStream,
RestServer aRestServer) |
Constructs a
RestRequestEvent with all required attributes. |
Copyright © 2018. All rights reserved.