org.refcodes.matcher.WildcardSubstitutes, org.refcodes.mixin.ActionAccessor<org.refcodes.net.HttpMethod>, org.refcodes.mixin.Dumpable, org.refcodes.mixin.SourceAccessor<org.refcodes.net.HttpMethod>, org.refcodes.net.HeaderFieldsAccessor<org.refcodes.net.HttpMethod>, org.refcodes.net.HttpBodyAccessor, org.refcodes.net.HttpInputStreamAccessor, org.refcodes.net.HttpMethodAccessor, org.refcodes.net.HttpRequest, org.refcodes.net.HttpServerRequest, org.refcodes.net.LocalAddressAccessor, org.refcodes.net.RealmAccessor, org.refcodes.net.RemoteAddressAccessor, org.refcodes.net.UrlAccessor, org.refcodes.observer.GenericActionEvent<org.refcodes.net.HttpMethod,RestServer>, org.refcodes.observer.GenericEvent<org.refcodes.net.HttpMethod>, RestRequestEventpublic class RestRequestEventImpl extends org.refcodes.net.HttpServerRequestImpl implements RestRequestEvent
RestRequestEvent interface as good old POJO for
use by different RestServer implementations.org.refcodes.mixin.ActionAccessor.ActionBuilder<A extends Object,B extends org.refcodes.mixin.ActionAccessor.ActionBuilder<A,B>>, org.refcodes.mixin.ActionAccessor.ActionMutator<A extends Object>, org.refcodes.mixin.ActionAccessor.ActionProperty<A extends Object>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.HttpMethodAccessor.HttpMethodBuilder<B extends org.refcodes.net.HttpMethodAccessor.HttpMethodBuilder<B>>, org.refcodes.net.HttpMethodAccessor.HttpMethodMutator, org.refcodes.net.HttpMethodAccessor.HttpMethodPropertyorg.refcodes.net.LocalAddressAccessor.LocalAddressBuilder<B extends org.refcodes.net.LocalAddressAccessor.LocalAddressBuilder<B>>, org.refcodes.net.LocalAddressAccessor.LocalAddressMutator, org.refcodes.net.LocalAddressAccessor.LocalAddressPropertyorg.refcodes.net.RealmAccessor.RealmBuilder<B extends org.refcodes.net.RealmAccessor.RealmBuilder<B>>, org.refcodes.net.RealmAccessor.RealmMutator, org.refcodes.net.RealmAccessor.RealmPropertyorg.refcodes.net.RemoteAddressAccessor.RemoteAddressBuilder<B extends org.refcodes.net.RemoteAddressAccessor.RemoteAddressBuilder<B>>, org.refcodes.net.RemoteAddressAccessor.RemoteAddressMutator, org.refcodes.net.RemoteAddressAccessor.RemoteAddressProperty| 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. |
| Modifier and Type | Method | 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) |
getHeaderFields, getHttpMethod, getUrlgetHttpBody, getHttpInputStream, getRequestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetActionpublic 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)
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.aUrl - The Url from which to take the URL specific data.aWildcardSubstitutes - The text being substituted by the wildcard of
the RestEndpoint's Locator-Pattern.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<org.refcodes.net.HttpMethod>public String[] getWildcardReplacements()
getWildcardReplacements in interface org.refcodes.matcher.WildcardSubstitutespublic String getWildcardReplacementAt(int aIndex)
getWildcardReplacementAt in interface org.refcodes.matcher.WildcardSubstitutespublic String getWildcardReplacement(String aWildcardName)
getWildcardReplacement in interface org.refcodes.matcher.WildcardSubstitutespublic String[] getWildcardReplacements(String... aWildcardNames)
getWildcardReplacements in interface org.refcodes.matcher.WildcardSubstitutespublic String[] getWildcardReplacementsAt(int... aIndexes)
getWildcardReplacementsAt in interface org.refcodes.matcher.WildcardSubstitutespublic InetSocketAddress getRemoteAddress()
getRemoteAddress in interface org.refcodes.net.RemoteAddressAccessorpublic InetSocketAddress getLocalAddress()
getLocalAddress in interface org.refcodes.net.LocalAddressAccessorpublic String getRealm()
getRealm in interface org.refcodes.net.RealmAccessorCopyright © 2018. All rights reserved.