org.objectweb.easybeans.component.carol
Class Protocol

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

public class Protocol
extends java.lang.Object

Protocol class which describe the RMI protocol configuration.

Author:
Florent Benoit

Field Summary
private static java.lang.String DEFAULT_HOSTNAME
          Default hostname.
private static int DEFAULT_PORTNUMBER
          Default port number.
private  java.lang.String hostname
          Hostname (other way to configure the URL).
private  java.lang.String name
          Name.
private  int portNumber
          Port number (other way to configure the URL).
private  java.lang.String url
          URL (contains host and port).
 
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
 

Field Detail

DEFAULT_HOSTNAME

private static final java.lang.String DEFAULT_HOSTNAME
Default hostname.

See Also:
Constant Field Values

DEFAULT_PORTNUMBER

private static final int DEFAULT_PORTNUMBER
Default port number.

See Also:
Constant Field Values

name

private java.lang.String name
Name.


url

private java.lang.String url
URL (contains host and port).


hostname

private java.lang.String hostname
Hostname (other way to configure the URL).


portNumber

private int portNumber
Port number (other way to configure the URL).

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.