|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.web.jcr.rest.client.domain.Server
@Immutable public class Server
The Server
class is the business object for a server that is hosting one or more DNA repositories.
Constructor Summary | |
---|---|
Server(String url,
String user,
String password)
Constructs on new Server . |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getName()
|
String |
getPassword()
|
String |
getShortDescription()
|
String |
getUrl()
|
String |
getUser()
|
int |
hashCode()
|
boolean |
hasSameKey(Server otherServer)
A server has the same identifying properties if their URL and user matches. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Server(String url, String user, String password)
Server
.
url
- the server URL (never null
)user
- the server user (may be null
)password
- the server password (may be null
)
IllegalArgumentException
- if the URL or user arguments are null
Method Detail |
---|
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public String getName()
getName
in interface IDnaObject
null
)IDnaObject.getName()
public String getPassword()
public String getShortDescription()
getShortDescription
in interface IDnaObject
null
)IDnaObject.getShortDescription()
public String getUrl()
null
)public String getUser()
null
)public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean hasSameKey(Server otherServer)
otherServer
- the server whose key is being compared (never null
)
true
if the servers have the same key
IllegalArgumentException
- if the argument is null
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |