public class RestResponseEventImpl extends org.refcodes.net.impls.HttpClientResponseImpl implements RestResponseEvent
RestResponseEvent
interface as good old POJO
for use by different RestClient
implementations.org.refcodes.mixin.SourceAccessor.SourceMutator<SRC>, org.refcodes.mixin.SourceAccessor.SourceProperty<SRC>
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.HttpStatusCodeAccessor.HttpStatusCodeBuilder<B extends org.refcodes.net.HttpStatusCodeAccessor.HttpStatusCodeBuilder<B>>, org.refcodes.net.HttpStatusCodeAccessor.HttpStatusCodeMutator, org.refcodes.net.HttpStatusCodeAccessor.HttpStatusCodeProperty
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 |
---|
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. |
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
getLocalAddress() |
InetSocketAddress |
getRemoteAddress() |
RestServer |
getSource() |
getHttpBody, getHttpInputStream, getResponse
getHeaderFields, getHttpStatusCode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAction
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>
public InetSocketAddress getRemoteAddress()
getRemoteAddress
in interface org.refcodes.net.RemoteAddressAccessor
public InetSocketAddress getLocalAddress()
getLocalAddress
in interface org.refcodes.net.LocalAddressAccessor
Copyright © 2016. All rights reserved.