Package org.jupnp.model.profile
Klasse RemoteClientInfo
java.lang.Object
org.jupnp.model.profile.ClientInfo
org.jupnp.model.profile.RemoteClientInfo
Encapsulates information about a remote control point, the client.
The getExtraResponseHeaders() method offers modifiable HTTP headers which will
be added to the responses and returned to the client.
- Autor:
- Christian Bauer
-
Feldübersicht
FelderVon Klasse geerbte Felder org.jupnp.model.profile.ClientInfo
requestHeaders -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungRemoteClientInfo(Connection connection, UpnpHeaders requestHeaders) RemoteClientInfo(StreamRequestMessage requestMessage) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanbooleanCheck if the remote client's connection is still open.booleanbooleanvoidsetResponseUserAgent(String userAgent) voidsetResponseUserAgent(UserAgentHeader userAgentHeader) voidtoString()Von Klasse geerbte Methoden org.jupnp.model.profile.ClientInfo
getRequestHeaders, getRequestUserAgent, setRequestUserAgent
-
Felddetails
-
connection
-
extraResponseHeaders
-
-
Konstruktordetails
-
RemoteClientInfo
public RemoteClientInfo() -
RemoteClientInfo
-
RemoteClientInfo
-
-
Methodendetails
-
getConnection
-
isRequestCancelled
public boolean isRequestCancelled()Check if the remote client's connection is still open.
How connection checking is actually performed is transport-implementation dependent. Usually, the
StreamServerwill send meaningless heartbeat data to the client on its (open) socket. If that fails, the client's connection has been closed. Note that some HTTP clients can NOT handle such garbage data in HTTP responses, hence calling this method might cause compatibility issues.- Gibt zurück:
trueif the remote client's connection was closed.
-
throwIfRequestCancelled
- Löst aus:
InterruptedException- ifisRequestCancelled()returnstrue.
-
getRemoteAddress
-
getLocalAddress
-
getExtraResponseHeaders
-
setResponseUserAgent
-
setResponseUserAgent
-
isWMPRequest
public boolean isWMPRequest() -
isXbox360Request
public boolean isXbox360Request() -
isPS3Request
public boolean isPS3Request() -
toString
- Setzt außer Kraft:
toStringin KlasseClientInfo
-