YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
de.yaacc.upnp.server.http.YaaccUpnpServerProtocolRequestHandler Class Reference
Inheritance diagram for de.yaacc.upnp.server.http.YaaccUpnpServerProtocolRequestHandler:
Inheritance graph
Collaboration diagram for de.yaacc.upnp.server.http.YaaccUpnpServerProtocolRequestHandler:
Collaboration graph

Public Member Functions

 YaaccUpnpServerProtocolRequestHandler (UpnpProtocolHandler upnpProtocolHandler)
 
AsyncRequestConsumer< Message< HttpRequest, byte[]> > prepare (final HttpRequest request, final EntityDetails entityDetails, final HttpContext context) throws HttpException
 
void handle (final Message< HttpRequest, byte[]> message, final ResponseTrigger responseTrigger, final HttpContext context) throws HttpException, IOException
 
StreamResponseMessage process (StreamRequestMessage requestMsg)
 Selects a UPnP protocol, runs it within the calling thread, returns the response.
 
String toString ()
 

Static Public Member Functions

static Throwable unwrap (Throwable throwable) throws IllegalArgumentException
 

Protected Member Functions

StreamRequestMessage readRequestMessage (Message< HttpRequest, byte[]> message) throws IOException
 
void writeResponseMessage (StreamResponseMessage responseMessage, AsyncResponseBuilder responseBuilder)
 
void responseSent (StreamResponseMessage responseMessage)
 Must be called by a subclass after the response has been successfully sent to the client.
 
void responseException (Throwable t)
 Must be called by a subclass if the response was not delivered to the client.
 

Protected Attributes

ReceivingSync syncProtocol
 

Member Function Documentation

◆ process()

StreamResponseMessage de.yaacc.upnp.server.http.YaaccUpnpServerProtocolRequestHandler.process ( StreamRequestMessage  requestMsg)

Selects a UPnP protocol, runs it within the calling thread, returns the response.

This method will return null if the UPnP protocol returned null. The HTTP response in this case is always 404 NOT FOUND. Any other (HTTP) error condition will be encapsulated in the returned response message and has to be passed to the HTTP client as it is.

Parameters
requestMsgThe TCP (HTTP) stream request message.
Returns
The TCP (HTTP) stream response message, or null if a 404 should be send to the client.

◆ responseException()

void de.yaacc.upnp.server.http.YaaccUpnpServerProtocolRequestHandler.responseException ( Throwable  t)
protected

Must be called by a subclass if the response was not delivered to the client.

Parameters
tThe reason why the response wasn't delivered.

◆ responseSent()

void de.yaacc.upnp.server.http.YaaccUpnpServerProtocolRequestHandler.responseSent ( StreamResponseMessage  responseMessage)
protected

Must be called by a subclass after the response has been successfully sent to the client.

Parameters
responseMessageThe response message successfully sent to the client.

The documentation for this class was generated from the following file: