com.caucho.resin
Class PortEmbed

java.lang.Object
  extended by com.caucho.resin.PortEmbed
Direct Known Subclasses:
HttpEmbed

public abstract class PortEmbed
extends java.lang.Object

Embeddable version of a Resin port


Constructor Summary
PortEmbed()
           
 
Method Summary
abstract  void bindTo(Server server)
          Binds the port to the server
 java.lang.String getAddress()
          The binding address
abstract  int getLocalPort()
          Returns the local, bound port
 int getPort()
          The TCP port
 void setAddress(java.lang.String address)
          The binding address
 void setPort(int port)
          The TCP port
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortEmbed

public PortEmbed()
Method Detail

setPort

public void setPort(int port)
The TCP port


getPort

public int getPort()
The TCP port


getLocalPort

public abstract int getLocalPort()
Returns the local, bound port


setAddress

public void setAddress(java.lang.String address)
The binding address


getAddress

public java.lang.String getAddress()
The binding address


bindTo

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