org.ow2.easybeans.component.carol
Class Protocol

java.lang.Object
  extended by org.ow2.easybeans.component.carol.Protocol

public class Protocol
extends java.lang.Object

Protocol class which describe the RMI protocol configuration.

Author:
Florent Benoit

Constructor Summary
Protocol()
           
 
Method Summary
 java.lang.String getHostname()
           
 java.lang.String getName()
           
 int getPortNumber()
           
 java.lang.String getUrl()
           
 void setHostname(java.lang.String hostname)
          Sets the hostname of this protocol.
 void setName(java.lang.String name)
          Sets the name of this protocol.
 void setPortNumber(int portNumber)
          Sets the port number of this protocol.
 void setUrl(java.lang.String url)
          Sets the URL used as PROVIDER_URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Protocol

public Protocol()
Method Detail

getHostname

public java.lang.String getHostname()
Returns:
the hostname for this protocol

setHostname

public void setHostname(java.lang.String hostname)
Sets the hostname of this protocol.

Parameters:
hostname - the host for listening

getName

public java.lang.String getName()
Returns:
the name for this protocol

setName

public void setName(java.lang.String name)
Sets the name of this protocol.

Parameters:
name - the given name

getPortNumber

public int getPortNumber()
Returns:
the port number for this protocol

setPortNumber

public void setPortNumber(int portNumber)
Sets the port number of this protocol.

Parameters:
portNumber - the port for listening

getUrl

public java.lang.String getUrl()
Returns:
the URL for this protocol

setUrl

public void setUrl(java.lang.String url)
Sets the URL used as PROVIDER_URL.

Parameters:
url - the url which define host + port.


Copyright © 2006-2009 OW2 Consortium. All Rights Reserved.