Class HostPort

Object
com.wowza.wms.vhost.HostPort

public class HostPort extends Object

HostPort: data object that describes a socket connection. The address can be defined by ipAddress or by domainName. It can also contain a reference to an SSLFactory class that can be used to create a secure connection to the server.

  • Field Details

  • Constructor Details

    • HostPort

      public HostPort()
      Create an empty HostPort object
  • Method Details

    • setDomainName

      public void setDomainName(String domainName)
      Set domainName. A domainName of * defines a local connection.
      Parameters:
      domainName - domainName like www.mycompany.com or * for local
    • getAddress

      public InetAddress getAddress()
      Get the ipAddress as an InetAddress object
      Returns:
      ipAddress as an InetAddress object. At this point the domainName (if specified) will be resolved.
    • getAddressStr

      public String getAddressStr()
      Get a String representation of the address
      Returns:
      String representation of the address/domainName. If * it will return [any]
    • getAddressRawStr

      public String getAddressRawStr()
    • setIpAddress

      public void setIpAddress(String ipAddress)
      Set ipAddress for object. A ipAddress of * defines a local connection.
      Parameters:
      ipAddress - ipAddress like 127.0.0.1 or * for local
    • getPort

      public int getPort()
      Get port
      Returns:
      port
    • setPort

      public void setPort(int port)
      Set port
      Parameters:
      port - port
    • getSslFactoryClass

      public String getSslFactoryClass()
      Get full class name or SSLFactory class
      Returns:
      full class name or SSLFactory or "" if not specified
    • setSslFactoryClass

      public void setSslFactoryClass(String sslFactoryClass)
      Set full class name of SSLFactory class
      Parameters:
      sslFactoryClass - full class name or SSLFactory or "" if not specified
    • getProcessorCount

      public int getProcessorCount()
      Get the number of threads to use to service this incoming port
      Returns:
      number of processor threads
    • setProcessorCount

      public void setProcessorCount(int processorCount)
      Set the number of threads to use to service this incoming port
      Parameters:
      processorCount - number of processor threads
    • toString

      public String toString(boolean mBeanSafe)
      Return object as formatted string
      Parameters:
      mBeanSafe - make the name safe for JMX management interface
      Returns:
      formmatted string
    • toString

      public String toString()
      Return object as formatted string
      Overrides:
      toString in class Object
      Returns:
      formmatted string
    • getConfiguation

      public HostPortConfig getConfiguation()
      Get the socket configuration
      Returns:
      socket configuration
    • configureSocketAcceptor

      public void configureSocketAcceptor(org.apache.mina.transport.socket.nio.SocketAcceptorConfig socketConfig)
      Configure a socketAcceport
      Parameters:
      socketConfig - socket acceptor
    • getHttpProviders

      public List<IHTTPProvider> getHttpProviders()
    • addHttpProvider

      public void addHttpProvider(IHTTPProvider httpProvider)
    • addHttpProvider

      public void addHttpProvider(IHTTPProvider2 httpProvider)
    • addHttpProvider

      public void addHttpProvider(int index, IHTTPProvider2 httpProvider)
    • size

      public int size(int index, IHTTPProvider2 httpProvider)
    • isSuspended

      public boolean isSuspended()
    • setSuspended

      public void setSuspended(boolean isSuspended)
    • getHTTPStreamerAdapterIDs

      public List<String> getHTTPStreamerAdapterIDs()
    • addHTTPStreamerAdapterID

      public void addHTTPStreamerAdapterID(String ID)
    • isSecure

      public boolean isSecure()
    • getSSLConfig

      public HostPortSSLConfig getSSLConfig()
    • setSSLConfig

      public void setSSLConfig(HostPortSSLConfig sslConfig)
    • getHTTPIdentResponse

      public String getHTTPIdentResponse()
    • setHTTPIdentResponse

      public void setHTTPIdentResponse(String httpIdentResponse)
    • getHTTPIdent2Response

      public String getHTTPIdent2Response()
    • setHTTPIdent2Response

      public void setHTTPIdent2Response(String httpIdent2Response)
    • getTypeStr

      public String getTypeStr()
    • setTypeStr

      public void setTypeStr(String typeStr)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • isAdmin

      public boolean isAdmin()
    • isStreaming

      public boolean isStreaming()