com.caucho.resin
Class HttpEmbed

java.lang.Object
  extended by com.caucho.resin.PortEmbed
      extended by com.caucho.resin.HttpEmbed

public class HttpEmbed
extends PortEmbed

Embeddable version of a HTTP port


Constructor Summary
HttpEmbed()
          Creates a new HttpEmbed configuration.
HttpEmbed(int port)
          Creates a new HttpEmbed configuration with a specified port.
HttpEmbed(int port, java.lang.String ipAddress)
          Creates a new HttpEmbed configuration with a specified port.
 
Method Summary
 void bindTo(Server server)
          Binds the port to the server
 int getLocalPort()
          Returns the local, bound port
 
Methods inherited from class com.caucho.resin.PortEmbed
getAddress, getPort, setAddress, setPort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpEmbed

public HttpEmbed()
Creates a new HttpEmbed configuration.


HttpEmbed

public HttpEmbed(int port)
Creates a new HttpEmbed configuration with a specified port.

Parameters:
port - the TCP port of the embedded HTTP port.

HttpEmbed

public HttpEmbed(int port,
                 java.lang.String ipAddress)
Creates a new HttpEmbed configuration with a specified port.

Parameters:
port - the TCP port of the embedded HTTP port.
address - the TCP IP address of the embedded HTTP port.
Method Detail

getLocalPort

public int getLocalPort()
Returns the local, bound port

Specified by:
getLocalPort in class PortEmbed

bindTo

public void bindTo(Server server)
Binds the port to the server

Specified by:
bindTo in class PortEmbed