org.refcodes.mixin.ActionAccessor<org.refcodes.web.HttpStatusCode>
, org.refcodes.mixin.Dumpable
, org.refcodes.mixin.SourceAccessor<org.refcodes.web.HttpStatusCode>
, org.refcodes.observer.GenericActionEvent<org.refcodes.web.HttpStatusCode,RestServer>
, org.refcodes.observer.GenericEvent<org.refcodes.web.HttpStatusCode>
, RestResponse
, org.refcodes.web.HeaderFieldsAccessor<org.refcodes.web.HttpStatusCode>
, org.refcodes.web.HttpBodyAccessor
, org.refcodes.web.HttpClientResponse
, org.refcodes.web.HttpInputStreamAccessor
, org.refcodes.web.HttpResponse
, org.refcodes.web.HttpStatusCodeAccessor
, org.refcodes.web.LocalAddressAccessor
, org.refcodes.web.RemoteAddressAccessor
, org.refcodes.web.UrlAccessor
public class RestResponseEvent extends RestResponseImpl implements org.refcodes.observer.GenericActionEvent<org.refcodes.web.HttpStatusCode,RestServer>, RestResponse, org.refcodes.mixin.Dumpable
RestResponseEvent
being the response as consumed by a
RestResponseHandler
's RestResponseConsumer
. Usually you will
use RestRequestClient.onResponse(HttpMethod, String, RestResponseConsumer)
or the like for registering a RestResponseConsumer
to the
RestClient
(HttpRestClient
).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.web.HeaderFieldsAccessor.HeaderFieldsBuilder<T extends org.refcodes.web.HeaderFields<?,?>,B extends org.refcodes.web.HeaderFieldsAccessor.HeaderFieldsBuilder<T,B>>, org.refcodes.web.HeaderFieldsAccessor.HeaderFieldsMutator<T extends org.refcodes.web.HeaderFields<?,?>>, org.refcodes.web.HeaderFieldsAccessor.HeaderFieldsProperty<T extends org.refcodes.web.HeaderFields<?,?>>
org.refcodes.web.HttpBodyAccessor.HttpBodyBuilder<B extends org.refcodes.web.HttpBodyAccessor.HttpBodyBuilder<B>>, org.refcodes.web.HttpBodyAccessor.HttpBodyMutator, org.refcodes.web.HttpBodyAccessor.HttpBodyProperty, org.refcodes.web.HttpBodyAccessor.HttpBodyProvider<EXC extends Exception>
org.refcodes.web.HttpInputStreamAccessor.HttpInputStreamBuilder<B extends org.refcodes.web.HttpInputStreamAccessor.HttpInputStreamBuilder<B>>, org.refcodes.web.HttpInputStreamAccessor.HttpInputStreamMutator, org.refcodes.web.HttpInputStreamAccessor.HttpInputStreamProperty, org.refcodes.web.HttpInputStreamAccessor.HttpInputStreamProvider<EXC extends Exception>
org.refcodes.web.HttpStatusCodeAccessor.HttpStatusCodeBuilder<B extends org.refcodes.web.HttpStatusCodeAccessor.HttpStatusCodeBuilder<B>>, org.refcodes.web.HttpStatusCodeAccessor.HttpStatusCodeMutator, org.refcodes.web.HttpStatusCodeAccessor.HttpStatusCodeProperty
org.refcodes.web.LocalAddressAccessor.LocalAddressBuilder<B extends org.refcodes.web.LocalAddressAccessor.LocalAddressBuilder<B>>, org.refcodes.web.LocalAddressAccessor.LocalAddressMutator, org.refcodes.web.LocalAddressAccessor.LocalAddressProperty
org.refcodes.web.RemoteAddressAccessor.RemoteAddressBuilder<B extends org.refcodes.web.RemoteAddressAccessor.RemoteAddressBuilder<B>>, org.refcodes.web.RemoteAddressAccessor.RemoteAddressMutator, org.refcodes.web.RemoteAddressAccessor.RemoteAddressProperty
Constructor | Description |
---|---|
RestResponseEvent(RestResponse aRestResponse,
RestClient aRestClient) |
Constructs a
RestResponseEvent with all required attributes. |
RestResponseEvent(org.refcodes.web.Url aUrl,
InetSocketAddress aLocalAddress,
InetSocketAddress aRemoteAddress,
org.refcodes.web.HttpStatusCode aHttpStatusCode,
org.refcodes.web.ResponseHeaderFields aHeaderFields,
InputStream aHttpInputStream,
RestClient aRestClient) |
Constructs a
RestResponseEvent with all required attributes. |
Modifier and Type | Method | Description |
---|---|---|
org.refcodes.web.HttpStatusCode |
getAction() |
|
RestServer |
getSource() |
getHttpBody, getHttpInputStream, getResponse, getUrl, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getLocalAddress, getRemoteAddress
public RestResponseEvent(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 RestResponseEvent(org.refcodes.web.Url aUrl, InetSocketAddress aLocalAddress, InetSocketAddress aRemoteAddress, org.refcodes.web.HttpStatusCode aHttpStatusCode, org.refcodes.web.ResponseHeaderFields aHeaderFields, InputStream aHttpInputStream, RestClient aRestClient)
RestResponseEvent
with all required attributes.aUrl
- The URL from which the response originates.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<org.refcodes.web.HttpStatusCode>
public org.refcodes.web.HttpStatusCode getAction()
getAction
in interface org.refcodes.mixin.ActionAccessor<org.refcodes.web.HttpStatusCode>
Copyright © 2021. All rights reserved.