org.refcodes.mixin.ActionAccessor<org.refcodes.net.HttpStatusCode>
, org.refcodes.mixin.Dumpable
, org.refcodes.mixin.SourceAccessor<RestServer>
, org.refcodes.net.HeaderFieldsAccessor<org.refcodes.net.ResponseHeaderFields>
, org.refcodes.net.HttpBodyAccessor
, org.refcodes.net.HttpClientResponse
, org.refcodes.net.HttpInputStreamAccessor
, org.refcodes.net.HttpResponse
, org.refcodes.net.HttpStatusCodeAccessor
, org.refcodes.net.LocalAddressAccessor
, org.refcodes.net.RemoteAddressAccessor
, org.refcodes.observer.GenericActionEvent<org.refcodes.net.HttpStatusCode,RestServer>
, org.refcodes.observer.GenericEvent<RestServer>
, RestResponse
, RestResponseEvent
public class RestResponseEventImpl extends RestResponseImpl implements RestResponseEvent
RestResponseEvent
interface as good old POJO
for use by different RestClient
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.HttpStatusCodeAccessor.HttpStatusCodeBuilder<B extends org.refcodes.net.HttpStatusCodeAccessor.HttpStatusCodeBuilder<B>>, org.refcodes.net.HttpStatusCodeAccessor.HttpStatusCodeMutator, org.refcodes.net.HttpStatusCodeAccessor.HttpStatusCodeProperty
org.refcodes.net.LocalAddressAccessor.LocalAddressBuilder<B extends org.refcodes.net.LocalAddressAccessor.LocalAddressBuilder<B>>, org.refcodes.net.LocalAddressAccessor.LocalAddressMutator, org.refcodes.net.LocalAddressAccessor.LocalAddressProperty
org.refcodes.net.RemoteAddressAccessor.RemoteAddressBuilder<B extends org.refcodes.net.RemoteAddressAccessor.RemoteAddressBuilder<B>>, org.refcodes.net.RemoteAddressAccessor.RemoteAddressMutator, org.refcodes.net.RemoteAddressAccessor.RemoteAddressProperty
Constructor | Description |
---|---|
RestResponseEventImpl(InetSocketAddress aLocalAddress,
InetSocketAddress aRemoteAddress,
org.refcodes.net.HttpStatusCode aHttpStatusCode,
org.refcodes.net.ResponseHeaderFields aHeaderFields,
InputStream aHttpInputStream,
RestClient aRestClient) |
Constructs a
RestResponseEvent with all required attributes. |
RestResponseEventImpl(RestResponse aRestResponse,
RestClient aRestClient) |
Constructs a
RestResponseEvent with all required attributes. |
Modifier and Type | Method | Description |
---|---|---|
RestServer |
getSource() |
getHttpBody, getHttpInputStream, getResponse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAction
getLocalAddress, getRemoteAddress
public RestResponseEventImpl(RestResponse aRestResponse, RestClient aRestClient)
RestResponseEvent
with all required attributes.aRestResponse
- The response with all the required attributes to be
used for the event.aRestClient
- The system firing the event.public RestResponseEventImpl(InetSocketAddress aLocalAddress, InetSocketAddress aRemoteAddress, org.refcodes.net.HttpStatusCode aHttpStatusCode, org.refcodes.net.ResponseHeaderFields aHeaderFields, InputStream aHttpInputStream, RestClient aRestClient)
RestResponseEvent
with all required attributes.aLocalAddress
- The local address where the event is being received.aRemoteAddress
- The remote address from which the request
originates.aHttpStatusCode
- The HttpStatusCode
of the response.aHeaderFields
- The ResponseHeaderFields
sent by the
response.aHttpInputStream
- The InputStream
representing the
request's HTTP body.aRestClient
- The system firing the event.public RestServer getSource()
getSource
in interface org.refcodes.mixin.SourceAccessor<RestServer>
Copyright © 2018. All rights reserved.