Klasse UpnpStream
java.lang.Object
org.jupnp.transport.spi.UpnpStream
- Alle implementierten Schnittstellen:
- Runnable
- Bekannte direkte Unterklassen:
- HttpExchangeUpnpStream,- ServletUpnpStream
A runnable representation of a single HTTP request/response procedure.
 
 Instantiated by the StreamServer, executed by the
 Router. See the pseudo-code example
 in the documentation of StreamServer. An implementation's
 run() method has to call the process(org.jupnp.model.message.StreamRequestMessage),
 responseSent(org.jupnp.model.message.StreamResponseMessage) and
 responseException(Throwable) methods.
 
An implementation does not have to be thread-safe.
- Autor:
- Christian Bauer
- 
FeldübersichtFelder
- 
KonstruktorübersichtKonstruktoren
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungprocess(StreamRequestMessage requestMsg) Selects a UPnP protocol, runs it within the calling thread, returns the response.protected voidMust be called by a subclass if the response was not delivered to the client.protected voidresponseSent(StreamResponseMessage responseMessage) Must be called by a subclass after the response has been successfully sent to the client.toString()
- 
Felddetails- 
protocolFactory
- 
syncProtocol
 
- 
- 
Konstruktordetails- 
UpnpStream
 
- 
- 
Methodendetails- 
getProtocolFactory
- 
processSelects a UPnP protocol, runs it within the calling thread, returns the response.This method will return nullif the UPnP protocol returnednull. 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.- Parameter:
- requestMsg- The TCP (HTTP) stream request message.
- Gibt zurück:
- The TCP (HTTP) stream response message, or nullif a 404 should be send to the client.
 
- 
responseSentMust be called by a subclass after the response has been successfully sent to the client.- Parameter:
- responseMessage- The response message successfully sent to the client.
 
- 
responseExceptionMust be called by a subclass if the response was not delivered to the client.- Parameter:
- t- The reason why the response wasn't delivered.
 
- 
toString
 
-