Package org.somda.sdc.dpws.device.helper
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.
-
-
Constructor Summary
Constructors Constructor Description ByteResourceHandler(Array<byte> resourceBytes)Constructor.
-
Method Summary
Modifier and Type Method Description voidhandle(InputStream inStream, OutputStream outStream, CommunicationContext communicationContext)Callback that is invoked by HttpServerRegistry whenever a respective context path is matched. -
-
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.
-
-
-
-