Package org.jupnp.transport.impl
Klasse ServletConnection
java.lang.Object
org.jupnp.transport.impl.ServletConnection
- Alle implementierten Schnittstellen:
Connection
UPNP Connection implementation using a
HttpServletRequest.- Autor:
- Christian Bauer
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungjavax.servlet.http.HttpServletRequestprotected booleanisConnectionOpen(javax.servlet.http.HttpServletRequest request) Override this method if you can check, at a low level, if the client connection is still open for the given request.booleanisOpen()
-
Felddetails
-
request
protected javax.servlet.http.HttpServletRequest request
-
-
Konstruktordetails
-
ServletConnection
public ServletConnection(javax.servlet.http.HttpServletRequest request)
-
-
Methodendetails
-
getRequest
public javax.servlet.http.HttpServletRequest getRequest() -
isOpen
public boolean isOpen()- Angegeben von:
isOpenin SchnittstelleConnection
-
getRemoteAddress
- Angegeben von:
getRemoteAddressin SchnittstelleConnection
-
getLocalAddress
- Angegeben von:
getLocalAddressin SchnittstelleConnection
-
isConnectionOpen
protected boolean isConnectionOpen(javax.servlet.http.HttpServletRequest request) Override this method if you can check, at a low level, if the client connection is still open for the given request. This will likely require access to proprietary APIs of your servlet container to obtain the socket/channel for the given request.- Gibt zurück:
- By default
true.
-