Klasse ServletConnection

java.lang.Object
org.jupnp.transport.impl.ServletConnection
Alle implementierten Schnittstellen:
Connection

public class ServletConnection extends Object implements Connection
UPNP Connection implementation using a HttpServletRequest.
Autor:
Christian Bauer
  • 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:
      isOpen in Schnittstelle Connection
    • getRemoteAddress

      public InetAddress getRemoteAddress()
      Angegeben von:
      getRemoteAddress in Schnittstelle Connection
    • getLocalAddress

      public InetAddress getLocalAddress()
      Angegeben von:
      getLocalAddress in Schnittstelle Connection
    • 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.