|
|
| 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 Throwable | unwrap (Throwable throwable) throws IllegalArgumentException |
| |
|
|
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.
|
| |
|
|
ReceivingSync | syncProtocol |
| |
◆ 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
-
| requestMsg | The 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
-
| t | The 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
-
| responseMessage | The response message successfully sent to the client. |
The documentation for this class was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/upnp/server/http/YaaccUpnpServerProtocolRequestHandler.java