|
||||||||||
| 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.
The server requires a url, user name, and a password in order to connect.
The url that is used has a format of http://hostname:port/context root.
Where
The deployed war context root is based on what the deployed war file is called. If the ModeShape deployed war is called resources.war (which is the default build name), then the context root would be resources.
| 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 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Server(String url,
String user,
String password)
Server.
url - the server URL, which must contain the deployed war file context (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 | |||||||||