org.fourthline.cling.model.profile
Class RemoteClientInfo
java.lang.Object
org.fourthline.cling.model.profile.ClientInfo
org.fourthline.cling.model.profile.RemoteClientInfo
public class RemoteClientInfo
- extends ClientInfo
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.
- Author:
- Christian Bauer
connection
protected final Connection connection
extraResponseHeaders
protected final UpnpHeaders extraResponseHeaders
RemoteClientInfo
public RemoteClientInfo()
RemoteClientInfo
public RemoteClientInfo(StreamRequestMessage requestMessage)
RemoteClientInfo
public RemoteClientInfo(Connection connection,
UpnpHeaders requestHeaders)
getConnection
public Connection getConnection()
isRequestCancelled
public boolean isRequestCancelled()
- Returns:
true
if the Thread has been interrupted or the client's connection was closed
throwIfRequestCancelled
public void throwIfRequestCancelled()
throws InterruptedException
- Throws:
InterruptedException
getRemoteAddress
public InetAddress getRemoteAddress()
getLocalAddress
public InetAddress getLocalAddress()
getExtraResponseHeaders
public UpnpHeaders getExtraResponseHeaders()
setResponseUserAgent
public void setResponseUserAgent(String userAgent)
setResponseUserAgent
public void setResponseUserAgent(UserAgentHeader userAgentHeader)
isWMPRequest
public boolean isWMPRequest()
isXbox360Request
public boolean isXbox360Request()
isPS3Request
public boolean isPS3Request()
toString
public String toString()
- Overrides:
toString
in class ClientInfo
Copyright © 2013 4th Line GmbH, Switzerland. All Rights Reserved.