Uses of Interface
org.refcodes.rest.RestServer
-
-
Uses of RestServer in org.refcodes.rest
Subinterfaces of RestServer in org.refcodes.rest Modifier and Type Interface Description interface
HttpRegistryRestServer<DESC extends HttpServerDescriptor,B extends HttpRegistryRestServer<DESC,B>>
TheHttpRegistryRestServer
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 aRestServer
to be capable of opening a server socket on the local host with the provided port number viaConnectionOpenable.open(Object)
or with an additional maximum number of connections viaHttpRestServer.open(int, int)
.interface
LoopbackRestServer
Extends aRestServer
to be used as loopback device e.g. for testing purposes such as testing yourRestRequestConsumer
implementations.Classes in org.refcodes.rest that implement RestServer Modifier and Type Class Description class
AbstractHttpRegistryRestServerDecorator<DESC extends HttpServerDescriptor,B extends HttpRegistryRestServer<DESC,B>>
Abstract class for easily decorating aHttpRegistryRestServer
.class
AbstractHttpRestServerDecorator<B extends HttpRestServer>
Abstract class for easily decorating aHttpRestServer
.class
AbstractRestServer
Implementation of the base functionality of theRestServer
interface omitting the HTTP handling part being the foundation for variousRestServer
implementations such asHttpRestServerImpl
orLoopbackRestServerImpl
.class
HttpRestServerImpl
Implementation of theHttpRestServer
interface using theHttpServer
defined in thecom.sun.net.httpserver
package.class
HttpRestServerSingleton
The singleton of theHttpRestServerImpl
for easyHttpRestServer
access.class
LoopbackRestServerImpl
Implementation if theLoopbackRestServer
for easy testing of your requests being received by aRestServer
(HttpRestServer
) and the according responselambda
expressions.class
LoopbackRestServerSingleton
The singleton of theLoopbackRestServerImpl
for easyRestServer
access.Methods in org.refcodes.rest that return RestServer Modifier and Type Method Description RestServer
BasicAuthEvent. getSource()
RestServer
RestRequestEvent. getSource()
RestServer
RestResponseEvent. 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)
Constructors in org.refcodes.rest with parameters of type RestServer Constructor Description BasicAuthEvent(InetSocketAddress aLocalAddress, InetSocketAddress aRemoteAddress, org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.matcher.WildcardSubstitutes aWildcardSubstitutes, org.refcodes.web.BasicAuthCredentials aCredentials, String aRealm, RestServer aRestServer)
RestRequestEvent(InetSocketAddress aLocalAddress, InetSocketAddress aRemoteAddress, org.refcodes.web.HttpMethod aHttpMethod, org.refcodes.web.Url aUrl, org.refcodes.matcher.WildcardSubstitutes aWildcardSubstitutes, org.refcodes.web.RequestHeaderFields aHeaderFields, InputStream aHttpInputStream, RestServer aRestServer)
Constructs aRestRequestEvent
with all required attributes.
-