|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tranche.flatfile.ServerConfiguration
public class ServerConfiguration
Store information about the Server instance in a configuration object.
| Field Summary | |
|---|---|
static java.lang.String |
DFS
Get the protocol: DFS |
static java.lang.String |
DFS_SSL
Get the protocol: DFS+SSL |
static java.lang.String |
HTTP
Get the protocol: HTTP |
| Constructor Summary | |
|---|---|
ServerConfiguration(java.lang.String type,
int port,
java.lang.String hostName)
|
|
| Method Summary | |
|---|---|
ServerConfiguration |
clone()
Clone this object. |
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getHostName()
Get the host name associated with this server. |
int |
getPort()
Get the port associated with this server. |
java.lang.String |
getType()
Get the type (protocol) associated with this server. |
int |
hashCode()
|
void |
setHostName(java.lang.String hostName)
Set the host name associated with this server. |
void |
setPort(int port)
Set the port associated with this server. |
void |
setType(java.lang.String type)
Set the type (protocol) associated with this server. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String HTTP
Get the protocol: HTTP
public static final java.lang.String DFS
Get the protocol: DFS
public static final java.lang.String DFS_SSL
Get the protocol: DFS+SSL
| Constructor Detail |
|---|
public ServerConfiguration(java.lang.String type,
int port,
java.lang.String hostName)
type - port - hostName - | Method Detail |
|---|
public int getPort()
Get the port associated with this server.
public void setPort(int port)
Set the port associated with this server.
port - public java.lang.String getType()
Get the type (protocol) associated with this server.
public void setType(java.lang.String type)
Set the type (protocol) associated with this server.
type - public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getHostName()
Get the host name associated with this server.
public void setHostName(java.lang.String hostName)
Set the host name associated with this server.
hostName - public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic ServerConfiguration clone()
Clone this object.
clone in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||