Package org.refcodes.rest
Class RestResponseEventImpl
- java.lang.Object
-
- org.refcodes.net.HttpResponseImpl
-
- org.refcodes.net.HttpClientResponseImpl
-
- org.refcodes.rest.RestResponseImpl
-
- org.refcodes.rest.RestResponseEventImpl
-
- All Implemented Interfaces:
org.refcodes.mixin.ActionAccessor<org.refcodes.net.HttpStatusCode>,org.refcodes.mixin.Dumpable,org.refcodes.mixin.SourceAccessor<org.refcodes.net.HttpStatusCode>,org.refcodes.net.HeaderFieldsAccessor<org.refcodes.net.HttpStatusCode>,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<org.refcodes.net.HttpStatusCode>,RestResponse,RestResponseEvent
public class RestResponseEventImpl extends RestResponseImpl implements RestResponseEvent
Implementation of theRestResponseEventinterface as good old POJO for use by differentRestClientimplementations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.ActionAccessor
org.refcodes.mixin.ActionAccessor.ActionBuilder<A extends java.lang.Object,B extends org.refcodes.mixin.ActionAccessor.ActionBuilder<A,B>>, org.refcodes.mixin.ActionAccessor.ActionMutator<A extends java.lang.Object>, org.refcodes.mixin.ActionAccessor.ActionProperty<A extends java.lang.Object>
-
Nested classes/interfaces inherited from interface org.refcodes.net.HeaderFieldsAccessor
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<?,?>>
-
Nested classes/interfaces inherited from interface org.refcodes.net.HttpBodyAccessor
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 java.lang.Exception>
-
Nested classes/interfaces inherited from interface org.refcodes.net.HttpInputStreamAccessor
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 java.lang.Exception>
-
Nested classes/interfaces inherited from interface org.refcodes.net.HttpStatusCodeAccessor
org.refcodes.net.HttpStatusCodeAccessor.HttpStatusCodeBuilder<B extends org.refcodes.net.HttpStatusCodeAccessor.HttpStatusCodeBuilder<B>>, org.refcodes.net.HttpStatusCodeAccessor.HttpStatusCodeMutator, org.refcodes.net.HttpStatusCodeAccessor.HttpStatusCodeProperty
-
Nested classes/interfaces inherited from interface org.refcodes.net.LocalAddressAccessor
org.refcodes.net.LocalAddressAccessor.LocalAddressBuilder<B extends org.refcodes.net.LocalAddressAccessor.LocalAddressBuilder<B>>, org.refcodes.net.LocalAddressAccessor.LocalAddressMutator, org.refcodes.net.LocalAddressAccessor.LocalAddressProperty
-
Nested classes/interfaces inherited from interface org.refcodes.net.RemoteAddressAccessor
org.refcodes.net.RemoteAddressAccessor.RemoteAddressBuilder<B extends org.refcodes.net.RemoteAddressAccessor.RemoteAddressBuilder<B>>, org.refcodes.net.RemoteAddressAccessor.RemoteAddressMutator, org.refcodes.net.RemoteAddressAccessor.RemoteAddressProperty
-
-
Constructor Summary
Constructors Constructor Description RestResponseEventImpl(java.net.InetSocketAddress aLocalAddress, java.net.InetSocketAddress aRemoteAddress, org.refcodes.net.HttpStatusCode aHttpStatusCode, org.refcodes.net.ResponseHeaderFields aHeaderFields, java.io.InputStream aHttpInputStream, RestClient aRestClient)Constructs aRestResponseEventwith all required attributes.RestResponseEventImpl(RestResponse aRestResponse, RestClient aRestClient)Constructs aRestResponseEventwith all required attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestServergetSource()-
Methods inherited from class org.refcodes.net.HttpClientResponseImpl
getHttpBody, getHttpInputStream, getResponse, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.refcodes.rest.RestResponseEvent
getAction
-
Methods inherited from class org.refcodes.rest.RestResponseImpl
getLocalAddress, getRemoteAddress
-
-
-
-
Constructor Detail
-
RestResponseEventImpl
public RestResponseEventImpl(RestResponse aRestResponse, RestClient aRestClient)
Constructs aRestResponseEventwith all required attributes.- Parameters:
aRestResponse- The response with all the required attributes to be used for the event.aRestClient- The system firing the event.
-
RestResponseEventImpl
public RestResponseEventImpl(java.net.InetSocketAddress aLocalAddress, java.net.InetSocketAddress aRemoteAddress, org.refcodes.net.HttpStatusCode aHttpStatusCode, org.refcodes.net.ResponseHeaderFields aHeaderFields, java.io.InputStream aHttpInputStream, RestClient aRestClient)Constructs aRestResponseEventwith all required attributes.- Parameters:
aLocalAddress- The local address where the event is being received.aRemoteAddress- The remote address from which the request originates.aHttpStatusCode- TheHttpStatusCodeof the response.aHeaderFields- TheResponseHeaderFieldssent by the response.aHttpInputStream- TheInputStreamrepresenting the request's HTTP body.aRestClient- The system firing the event.
-
-
Method Detail
-
getSource
public RestServer getSource()
- Specified by:
getSourcein interfaceorg.refcodes.mixin.SourceAccessor<org.refcodes.net.HttpStatusCode>
-
-