|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.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 ModeShape 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 ObjectObject.equals(java.lang.Object)public String getName()
getName in interface IModeShapeObjectnull)IModeShapeObject.getName()public String getPassword()
public String getShortDescription()
getShortDescription in interface IModeShapeObjectnull)IModeShapeObject.getShortDescription()public String getUrl()
null)public String getUser()
null)public int hashCode()
hashCode in class ObjectObject.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 nullpublic String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||