|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--springs.context.ContextAddress
A context address.
Field Summary | |
private java.lang.String |
_hostname
|
private java.lang.String |
_name
|
private int |
_numPort
|
private java.lang.String |
_protocol
|
static java.lang.String |
NOT_SPECIFIED_CONTEXT_NAME
|
Constructor Summary | |
ContextAddress(java.lang.String name,
java.lang.String string)
Constructor. |
|
ContextAddress(java.lang.String name,
java.lang.String url,
int numPort)
Constructor. |
|
ContextAddress(java.lang.String name,
java.lang.String protocol,
java.lang.String url,
int numPort)
Constructor. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getHostname()
Gets the hostname. |
java.lang.String |
getName()
Gets the name of the context. |
int |
getPort()
Gets the port. |
java.lang.String |
getProtocol()
Gets the protocol. |
java.lang.String |
getURL()
Gets the URL. |
int |
increasePortNumber()
Increases the port number. |
springs.context.ContextAddress |
replaceHostnameWith(java.lang.String newHostname)
Obtains a copy of this context address but replacing first hostname. |
java.lang.String |
toString()
|
java.lang.String |
toStringAsLocalhost()
Converts the context address into a string but replacing the URL by "localhos". |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String NOT_SPECIFIED_CONTEXT_NAME
private java.lang.String _name
private java.lang.String _protocol
private java.lang.String _hostname
private int _numPort
Constructor Detail |
public ContextAddress(java.lang.String name, java.lang.String protocol, java.lang.String url, int numPort)
name
- the name of the context.protocol
- the protocol (e.g. "socket", "http", "rmi",...).url
- the url (e.g. rdp10.cps.unizar.es or 155.210.155.63).numPort
- the port number (e.g. 9500).String
public ContextAddress(java.lang.String name, java.lang.String string)
name
- the name of the context.string
- a string representation of the ContextAddress
(e.g. rmi://rdp10.cps.unizar.es:9506).String
public ContextAddress(java.lang.String name, java.lang.String url, int numPort)
name
- the name of the context.url
- the url (e.g. rdp10.cps.unizar.es or 155.210.155.63).numPort
- the port number (e.g. 9500).String
Method Detail |
public int increasePortNumber()
public springs.context.ContextAddress replaceHostnameWith(java.lang.String newHostname)
newHostname
- the new hostname.
ContextAddress
,
String
public java.lang.String getHostname()
String
public java.lang.String getURL()
String
public java.lang.String getName()
String
public java.lang.String getProtocol()
String
public int getPort()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringAsLocalhost()
String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |