Class RestResponseEventImpl

  • All Implemented Interfaces:
    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
    Implementation of the RestResponseEvent interface as good old POJO for use by different RestClient implementations.
    • 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
      • Nested classes/interfaces inherited from interface org.refcodes.mixin.SourceAccessor

        org.refcodes.mixin.SourceAccessor.SourceMutator<SRC extends java.lang.Object>, org.refcodes.mixin.SourceAccessor.SourceProperty<SRC extends java.lang.Object>
    • Field Summary

      • Fields inherited from class org.refcodes.net.HttpClientResponseImpl

        _mediaTypeFactoryLookup
      • Fields inherited from class org.refcodes.net.HttpResponseImpl

        _httpStatusCode
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RestServer getSource()
      • Methods inherited from interface org.refcodes.mixin.Dumpable

        toDump, toDump
      • Methods inherited from interface org.refcodes.net.HeaderFieldsAccessor

        getHeaderFields
      • Methods inherited from interface org.refcodes.net.HttpBodyAccessor

        getHttpBody
      • Methods inherited from interface org.refcodes.net.HttpClientResponse

        getResponse, getResponse
      • Methods inherited from class org.refcodes.net.HttpClientResponseImpl

        getHttpBody, getHttpInputStream, getResponse
      • Methods inherited from interface org.refcodes.net.HttpInputStreamAccessor

        getHttpInputStream
      • Methods inherited from class org.refcodes.net.HttpResponseImpl

        getHeaderFields, getHttpStatusCode
      • Methods inherited from interface org.refcodes.net.HttpStatusCodeAccessor

        getHttpStatusCode
      • Methods inherited from interface org.refcodes.net.LocalAddressAccessor

        getLocalAddress
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.refcodes.net.RemoteAddressAccessor

        getRemoteAddress
    • Constructor Detail

      • RestResponseEventImpl

        public RestResponseEventImpl​(RestResponse aRestResponse,
                                     RestClient aRestClient)
        Constructs a RestResponseEvent with 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 a RestResponseEvent with all required attributes.
        Parameters:
        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.
    • Method Detail

      • getSource

        public RestServer getSource()
        Specified by:
        getSource in interface org.refcodes.mixin.SourceAccessor<RestServer>