Klasse ServletStreamServerConfigurationImpl

java.lang.Object
org.jupnp.transport.impl.ServletStreamServerConfigurationImpl
Alle implementierten Schnittstellen:
StreamServerConfiguration

public class ServletStreamServerConfigurationImpl extends Object implements StreamServerConfiguration
Settings for the async Servlet 2.4/3.0 implementation.

If you are trying to integrate jUPnP with an existing/running servlet container, implement ServletContainerAdapter.

Autor:
Christian Bauer
  • Felddetails

    • servletContainerAdapter

      protected ServletContainerAdapter servletContainerAdapter
    • listenPort

      protected int listenPort
    • asyncTimeoutSeconds

      protected int asyncTimeoutSeconds
  • Konstruktordetails

    • ServletStreamServerConfigurationImpl

      public ServletStreamServerConfigurationImpl(ServletContainerAdapter servletContainerAdapter)
      Defaults to port '0', ephemeral.
    • ServletStreamServerConfigurationImpl

      public ServletStreamServerConfigurationImpl(ServletContainerAdapter servletContainerAdapter, int listenPort)
    • ServletStreamServerConfigurationImpl

      public ServletStreamServerConfigurationImpl(ServletContainerAdapter servletContainerAdapter, int listenPort, int asyncTimeoutSeconds)
  • Methodendetails

    • getListenPort

      public int getListenPort()
      Angegeben von:
      getListenPort in Schnittstelle StreamServerConfiguration
      Gibt zurück:
      Defaults to 0.
    • setListenPort

      public void setListenPort(int listenPort)
    • getAsyncTimeoutSeconds

      public int getAsyncTimeoutSeconds()
      The time in seconds this server wait for the Router to execute a UpnpStream.
      Gibt zurück:
      The default of 60 seconds.
    • setAsyncTimeoutSeconds

      public void setAsyncTimeoutSeconds(int asyncTimeoutSeconds)
    • getServletContainerAdapter

      public ServletContainerAdapter getServletContainerAdapter()
    • setServletContainerAdapter

      public void setServletContainerAdapter(ServletContainerAdapter servletContainerAdapter)