|
| class | DeliveryReportingResponseProducer |
| | Tells the protocol of a request whether its answer reached the client, as UDA requires and Cling's own servers do: ReceivingSync#responseSent (a SUBSCRIBE registers its subscription at the service and sends the initial event only now) or ReceivingSync#responseException.
|
| |
|
| | YaaccUpnpServerProtocolRequestHandler (Supplier< UpnpProtocolHandler > protocolHandlerSupplier) |
| |
|
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 |
| |
◆ YaaccUpnpServerProtocolRequestHandler()
| de.yaacc.upnp.server.http.YaaccUpnpServerProtocolRequestHandler.YaaccUpnpServerProtocolRequestHandler |
( |
Supplier< UpnpProtocolHandler > | protocolHandlerSupplier | ) |
|
- Parameters
-
| protocolHandlerSupplier | resolves the live protocol handler for every request: the handler is replaced on every network change and is null while there is no network. A handler captured once at the start of the server would stay null (or become stale). |
◆ process()
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.
The documentation for this class was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/upnp/server/http/YaaccUpnpServerProtocolRequestHandler.java