public class RestRequestEventImpl extends org.refcodes.net.HttpServerRequestImpl implements RestRequestEvent
RestRequestEvent
interface as good old POJO for
use by different RestServer
implementations.org.refcodes.mixin.SourceAccessor.SourceMutator<SRC>, org.refcodes.mixin.SourceAccessor.SourceProperty<SRC>
org.refcodes.mixin.LocatorAccessor.LocatorBuilder<T,B extends org.refcodes.mixin.LocatorAccessor.LocatorBuilder<T,B>>, org.refcodes.mixin.LocatorAccessor.LocatorMutator<T>, org.refcodes.mixin.LocatorAccessor.LocatorProperty<T>
org.refcodes.net.QueryFieldsAccessor.QueryFieldsBuilder<B extends org.refcodes.net.QueryFieldsAccessor.QueryFieldsBuilder<?>>, org.refcodes.net.QueryFieldsAccessor.QueryFieldsMutator, org.refcodes.net.QueryFieldsAccessor.QueryFieldsProperty
org.refcodes.net.HttpMethodAccessor.HttpMethodBuilder<B extends org.refcodes.net.HttpMethodAccessor.HttpMethodBuilder<B>>, org.refcodes.net.HttpMethodAccessor.HttpMethodMutator, org.refcodes.net.HttpMethodAccessor.HttpMethodProperty
org.refcodes.net.HeaderFieldsAccessor.HeaderFieldsBuilder<T extends org.refcodes.net.HeaderFields<?,?>,B extends org.refcodes.net.HeaderFieldsAccessor.HeaderFieldsBuilder<T,B>>, org.refcodes.net.HeaderFieldsAccessor.HeaderFieldsMutator<T extends org.refcodes.net.HeaderFields<?,?>>, org.refcodes.net.HeaderFieldsAccessor.HeaderFieldsProperty<T extends org.refcodes.net.HeaderFields<?,?>>
org.refcodes.net.HttpBodyAccessor.HttpBodyBuilder<B extends org.refcodes.net.HttpBodyAccessor.HttpBodyBuilder<B>>, org.refcodes.net.HttpBodyAccessor.HttpBodyMutator, org.refcodes.net.HttpBodyAccessor.HttpBodyProperty, org.refcodes.net.HttpBodyAccessor.HttpBodyProvider<EXC extends Exception>
org.refcodes.net.HttpInputStreamAccessor.HttpInputStreamBuilder<B extends org.refcodes.net.HttpInputStreamAccessor.HttpInputStreamBuilder<B>>, org.refcodes.net.HttpInputStreamAccessor.HttpInputStreamMutator, org.refcodes.net.HttpInputStreamAccessor.HttpInputStreamProperty, org.refcodes.net.HttpInputStreamAccessor.HttpInputStreamProvider<EXC extends Exception>
org.refcodes.net.RemoteAddressAccessor.RemoteAddressBuilder<B extends org.refcodes.net.RemoteAddressAccessor.RemoteAddressBuilder<B>>, org.refcodes.net.RemoteAddressAccessor.RemoteAddressMutator, org.refcodes.net.RemoteAddressAccessor.RemoteAddressProperty
org.refcodes.net.LocalAddressAccessor.LocalAddressBuilder<B extends org.refcodes.net.LocalAddressAccessor.LocalAddressBuilder<B>>, org.refcodes.net.LocalAddressAccessor.LocalAddressMutator, org.refcodes.net.LocalAddressAccessor.LocalAddressProperty
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. |
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
getLocalAddress() |
String |
getRealm() |
InetSocketAddress |
getRemoteAddress() |
RestServer |
getSource() |
String |
getWildcardReplacement(String aWildcardName) |
String |
getWildcardReplacementAt(int aIndex) |
String[] |
getWildcardReplacements() |
String[] |
getWildcardReplacements(String... aWildcardNames) |
String[] |
getWildcardReplacementsAt(int... aIndexes) |
getHttpBody, getHttpInputStream, getRequest
getHeaderFields, getHttpMethod, getLocator, getQueryFields
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAction
public 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)
RestRequestEvent
with all required attributes.aLocalAddress
- The local address where the event is being received.aRemoteAddress
- The remote address from which the request
originates.aHttpMethod
- The HttpMethod
with which the request has been
sent.aLocator
- The locator which is being addressed by the request.aWildcardSubstitutes
- The text being substituted by the wildcard of
the RestEndpoint
's Locator-Pattern.aQueryFields
- The Query-Fields sent by the request.aHeaderFields
- The RequestHeaderFields
sent by the request.aHttpInputStream
- The InputStream
representing the
request's HTTP body.aRestServer
- The system firing the event.public RestServer getSource()
getSource
in interface org.refcodes.mixin.SourceAccessor<RestServer>
public String[] getWildcardReplacements()
getWildcardReplacements
in interface org.refcodes.matcher.WildcardSubstitutes
public String getWildcardReplacementAt(int aIndex)
getWildcardReplacementAt
in interface org.refcodes.matcher.WildcardSubstitutes
public String getWildcardReplacement(String aWildcardName)
getWildcardReplacement
in interface org.refcodes.matcher.WildcardSubstitutes
public String[] getWildcardReplacements(String... aWildcardNames)
getWildcardReplacements
in interface org.refcodes.matcher.WildcardSubstitutes
public String[] getWildcardReplacementsAt(int... aIndexes)
getWildcardReplacementsAt
in interface org.refcodes.matcher.WildcardSubstitutes
public InetSocketAddress getRemoteAddress()
getRemoteAddress
in interface org.refcodes.net.RemoteAddressAccessor
public InetSocketAddress getLocalAddress()
getLocalAddress
in interface org.refcodes.net.LocalAddressAccessor
public String getRealm()
getRealm
in interface org.refcodes.net.RealmAccessor
Copyright © 2018. All rights reserved.