Class ByteResourceHandler

  • All Implemented Interfaces:
    org.somda.sdc.dpws.http.HttpHandler

    
    public class ByteResourceHandler
     implements HttpHandler
                        

    HTTP handler that facilitates responding with arbitrary byte sequences.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void handle(InputStream inStream, OutputStream outStream, CommunicationContext communicationContext) Callback that is invoked by HttpServerRegistry whenever a respective context path is matched.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ByteResourceHandler

        ByteResourceHandler(Array<byte> resourceBytes)
        Constructor.
        Parameters:
        resourceBytes - the bytes that are supposed to be returned on any incoming network request.
    • Method Detail

      • handle

         void handle(InputStream inStream, OutputStream outStream, CommunicationContext communicationContext)

        Callback that is invoked by HttpServerRegistry whenever a respective context path is matched.

        Parameters:
        inStream - stream of the incoming SOAP request.
        outStream - stream of the outgoing SOAP response.
        communicationContext - information from the transport and application layer, e.g., local address, local port, certificate data etc.