Uses of Interface
org.refcodes.rest.RestRequestObserver
-
-
Uses of RestRequestObserver in org.refcodes.rest
Subinterfaces of RestRequestObserver in org.refcodes.rest Modifier and Type Interface Description interface
RestEndpoint
AnRestEndpoint
subscribes to aRestServer
(HttpRestServer
) and defines the target for a REST request.interface
RestEndpointBuilder
AnRestEndpointBuilder
extends anRestEndpoint
with builder functionality and addslambda
support for handling the requests addressed to thisRestEndpoint
.Classes in org.refcodes.rest that implement RestRequestObserver Modifier and Type Class Description class
RestEndpointBuilderImpl
The implementation of theRestEndpointBuilder
interface as good old POJO for use by differentRestServer
implementations.Fields in org.refcodes.rest declared as RestRequestObserver Modifier and Type Field Description protected RestRequestObserver
AbstractHttpRegistryRestServerDecorator. _pingRequestObserver
protected RestRequestObserver
AbstractHttpRegistrySidecar. _pingRequestObserver
protected RestRequestObserver
RestEndpointBuilderImpl. _requestObserver
Methods in org.refcodes.rest that return RestRequestObserver Modifier and Type Method Description RestRequestObserver
HomeRequestObserverAccessor. getHomeRequestObserver()
Retrieves the homeRestRequestObserver
from the homeRestRequestObserver
property.RestRequestObserver
AbstractHttpRegistryRestServerDecorator. getPingRequestObserver()
Retrieves the pingRestRequestObserver
from the pingRestRequestObserver
property.RestRequestObserver
PingRequestObserverAccessor. getPingRequestObserver()
Retrieves the pingRestRequestObserver
from the pingRestRequestObserver
property.RestRequestObserver
RestEndpointBuilder. getRequestObserver()
Retrieves theRestRequestObserver
to which any requests are delegated upon invocation of theonRequest(RestRequestEvent, org.refcodes.net.HttpServerResponse)
method.RestRequestObserver
RestEndpointBuilderImpl. getRequestObserver()
Retrieves theRestRequestObserver
to which any requests are delegated upon invocation of theonRequest(RestRequestEvent, org.refcodes.net.HttpServerResponse)
method.RestRequestObserver
StatusRequestObserverAccessor. getStatusRequestObserver()
Retrieves the statusRestRequestObserver
from the statusRestRequestObserver
property.protected RestRequestObserver
AbstractHttpRegistryRestServerDecorator. toPingObserver(RestRequestObserver aPingRequestObserver)
Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.Methods in org.refcodes.rest with parameters of type RestRequestObserver Modifier and Type Method Description void
HttpRegistryRestServer. initialize(java.lang.String aAlias, java.lang.String aInstanceId, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aVirtualHost, int[] aIpAddress, int aPort, java.lang.String aPingPath, RestRequestObserver aPingRequestObserver, org.refcodes.net.Url aRegistryUrl)
Initializes theHttpRegistryRestServer
by registering it at the service registry with a status such as "starting" or "initializing" or "not-ready-yet".default void
HttpRegistryRestServer. initialize(java.lang.String aAlias, org.refcodes.data.Scheme aScheme, java.lang.String aHost, java.lang.String aVirtualHost, int[] aIpAddress, int aPort, java.lang.String aPingPath, RestRequestObserver aPingRequestObserver, org.refcodes.net.Url aRegistryUrl)
Initializes theHttpRegistryRestServer
by registering it at the service registry with a status such as "starting" or "initializing" or "not-ready-yet".RestEndpointBuilder
AbstractHttpRestServerDecorator. onDelete(java.lang.String aLocatorPattern, RestRequestObserver aRequestObserver)
Even more convenient: Everything done here can also be done usingRestServer.onRequest(HttpMethod, String, RestRequestObserver)
: Registers aRestRequestObserver
with the given Locator-Pattern to incoming DELETE methods.static RestEndpointBuilder
HttpRestServerSugar. onDelete(java.lang.String aLocatorPattern, RestRequestObserver aRequestObserver)
default RestEndpointBuilder
RestServer. onDelete(java.lang.String aLocatorPattern, RestRequestObserver aRequestObserver)
Even more convenient: Everything done here can also be done usingRestServer.onRequest(HttpMethod, String, RestRequestObserver)
: Registers aRestRequestObserver
with the given Locator-Pattern to incoming DELETE methods.RestEndpointBuilder
AbstractHttpRestServerDecorator. onGet(java.lang.String aLocatorPattern, RestRequestObserver aRequestObserver)
Even more convenient: Everything done here can also be done usingRestServer.onRequest(HttpMethod, String, RestRequestObserver)
: Registers aRestRequestObserver
with the given Locator-Pattern to incoming GET methods.static RestEndpointBuilder
HttpRestServerSugar. onGet(java.lang.String aLocatorPattern, RestRequestObserver aRequestObserver)
default RestEndpointBuilder
RestServer. onGet(java.lang.String aLocatorPattern, RestRequestObserver aRequestObserver)
Even more convenient: Everything done here can also be done usingRestServer.onRequest(HttpMethod, String, RestRequestObserver)
: Registers aRestRequestObserver
with the given Locator-Pattern to incoming GET methods.void
HomeRequestObserver. onHomeRequest(RestRequestObserver aRequestObserver)
Sets the homeRestRequestObserver
listening for "home" requests.void
AbstractHttpRegistryRestServerDecorator. onPingRequest(RestRequestObserver aRequestObserver)
Sets the pingRestRequestObserver
listening for "ping" requests.void
PingRequestObserver. onPingRequest(RestRequestObserver aRequestObserver)
Sets the pingRestRequestObserver
listening for "ping" requests.RestEndpointBuilder
AbstractHttpRestServerDecorator. onPost(java.lang.String aLocatorPattern, RestRequestObserver aRequestObserver)
Even more convenient: Everything done here can also be done usingRestServer.onRequest(HttpMethod, String, RestRequestObserver)
: Registers aRestRequestObserver
with the given Locator-Pattern to incoming POST methods.static RestEndpointBuilder
HttpRestServerSugar. onPost(java.lang.String aLocatorPattern, RestRequestObserver aRequestObserver)
default RestEndpointBuilder
RestServer. onPost(java.lang.String aLocatorPattern, RestRequestObserver aRequestObserver)
Even more convenient: Everything done here can also be done usingRestServer.onRequest(HttpMethod, String, RestRequestObserver)
: Registers aRestRequestObserver
with the given Locator-Pattern to incoming POST methods.RestEndpointBuilder
AbstractHttpRestServerDecorator. onPut(java.lang.String aLocatorPattern, RestRequestObserver aRequestObserver)
Even more convenient: Everything done here can also be done usingRestServer.onRequest(HttpMethod, String, RestRequestObserver)
: Registers aRestRequestObserver
with the given Locator-Pattern to incoming PUT methods.static RestEndpointBuilder
HttpRestServerSugar. onPut(java.lang.String aLocatorPattern, RestRequestObserver aRequestObserver)
default RestEndpointBuilder
RestServer. onPut(java.lang.String aLocatorPattern, RestRequestObserver aRequestObserver)
Even more convenient: Everything done here can also be done usingRestServer.onRequest(HttpMethod, String, RestRequestObserver)
: Registers aRestRequestObserver
with the given Locator-Pattern to incoming PUT methods.RestEndpointBuilder
AbstractHttpRestServerDecorator. onRequest(java.lang.String aLocatorPattern, RestRequestObserver aRequestObserver)
Registers a pre-configuredRestEndpoint
, triggerd by any HTTP method, and returns its instance.RestEndpointBuilder
AbstractHttpRestServerDecorator. onRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocatorPattern, RestRequestObserver aRequestObserver)
Registers a pre-configuredRestEndpoint
with the least required attributes and returns its instance.static RestEndpointBuilder
HttpRestServerSugar. onRequest(java.lang.String aLocatorPattern, RestRequestObserver aRequestObserver)
static RestEndpointBuilder
HttpRestServerSugar. onRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocatorPattern, RestRequestObserver aRequestObserver)
default RestEndpointBuilder
RestServer. onRequest(java.lang.String aLocatorPattern, RestRequestObserver aRequestObserver)
Registers a pre-configuredRestEndpoint
, triggerd by any HTTP method, and returns its instance.default RestEndpointBuilder
RestServer. onRequest(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocatorPattern, RestRequestObserver aRequestObserver)
Registers a pre-configuredRestEndpoint
with the least required attributes and returns its instance.void
StatusRequestObserver. onStatusRequest(RestRequestObserver aRequestObserver)
Sets the statusRestRequestObserver
listening for "status" requests.void
HomeRequestObserverAccessor.HomeRequestObserverMutator. setHomeRequestObserver(RestRequestObserver aHomeRequestObserver)
Sets the homeRestRequestObserver
for the homeRestRequestObserver
property.void
PingRequestObserverAccessor.PingRequestObserverMutator. setPingRequestObserver(RestRequestObserver aPingRequestObserver)
Sets the pingRestRequestObserver
for the pingRestRequestObserver
property.void
RestEndpointBuilder. setRequestObserver(RestRequestObserver aLambda)
Sets theRestRequestObserver
to which any requests are delegated upon invocation of theonRequest(RestRequestEvent, org.refcodes.net.HttpServerResponse)
method.void
RestEndpointBuilderImpl. setRequestObserver(RestRequestObserver aLambda)
Sets theRestRequestObserver
to which any requests are delegated upon invocation of theonRequest(RestRequestEvent, org.refcodes.net.HttpServerResponse)
method.void
StatusRequestObserverAccessor.StatusRequestObserverMutator. setStatusRequestObserver(RestRequestObserver aStatusRequestObserver)
Sets the statusRestRequestObserver
for the statusRestRequestObserver
property.protected RestRequestObserver
AbstractHttpRegistryRestServerDecorator. toPingObserver(RestRequestObserver aPingRequestObserver)
Resolves the property from the provided value and the this instance's property and the and sets the property in case the provided value is not null.B
HomeRequestObserverAccessor.HomeRequestObserverBuilder. withHomeRequestObserver(RestRequestObserver aRequestObserver)
Sets the homeRestRequestObserver
for the homeRestRequestObserver
property.default HttpRegistryContext.HttpRegistryContextBuilder<DESC>
HttpRegistryContext.HttpRegistryContextBuilder. withPingRequestObserver(RestRequestObserver aRequestObserver)
Sets the pingRestRequestObserver
for the pingRestRequestObserver
property.default B
HttpRegistryRestServer. withPingRequestObserver(RestRequestObserver aRequestObserver)
Sets the pingRestRequestObserver
for the pingRestRequestObserver
property.B
PingRequestObserverAccessor.PingRequestObserverBuilder. withPingRequestObserver(RestRequestObserver aRequestObserver)
Sets the pingRestRequestObserver
for the pingRestRequestObserver
property.default RestEndpointBuilder
RestEndpointBuilder. withRequestObserver(RestRequestObserver aLambda)
Builder method for setting theRestRequestObserver
.B
StatusRequestObserverAccessor.StatusRequestObserverBuilder. withStatusRequestObserver(RestRequestObserver aRequestObserver)
Sets the statusRestRequestObserver
for the statusRestRequestObserver
property.Constructors in org.refcodes.rest with parameters of type RestRequestObserver Constructor Description RestEndpointBuilderImpl(org.refcodes.net.HttpMethod aHttpMethod, java.lang.String aLocatorPattern, RestRequestObserver aRequestObserver)
Constructs anRestEndpointBuilder
with the least required attributes.
-