|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.jettison.json.JSONObject
org.modeshape.web.jcr.rest.client.json.JsonNode
org.modeshape.web.jcr.rest.client.json.ServerNode
public final class ServerNode

The ServerNode class is responsible for knowing how to create a URL for a server, create a URL to obtain a
server's repositories, and parse a JSON response into repository objects.
| Field Summary |
|---|
| Fields inherited from class org.codehaus.jettison.json.JSONObject |
|---|
NULL |
| Constructor Summary | |
|---|---|
ServerNode(Server server)
|
|
| Method Summary | |
|---|---|
URL |
getFindRepositoriesUrl()
|
Collection<Repository> |
getRepositories(String jsonResponse)
|
URL |
getUrl()
The URL will NOT end in '/'. |
| Methods inherited from class org.modeshape.web.jcr.rest.client.json.JsonNode |
|---|
getContent, getId, toString |
| Methods inherited from class org.codehaus.jettison.json.JSONObject |
|---|
accumulate, append, doubleToString, get, getBoolean, getDouble, getInt, getJSONArray, getJSONObject, getLong, getString, has, isNull, keys, length, names, numberToString, opt, optBoolean, optBoolean, optDouble, optDouble, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optString, optString, put, put, put, put, put, put, put, putOpt, quote, remove, toJSONArray, toString, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ServerNode(Server server)
server - the server containing the repositories (never null)| Method Detail |
|---|
public URL getUrl()
throws Exception
The URL will NOT end in '/'.
getUrl in class JsonNodeException - if there is a problem constructing the URLJsonNode.getUrl()
public URL getFindRepositoriesUrl()
throws Exception
null)
Exception - if there is a problem obtaining the repositories
public Collection<Repository> getRepositories(String jsonResponse)
throws Exception
jsonResponse - the HTTP connection JSON response (never null) containing the repositories
null)
Exception - if there is a problem obtaining the repositories
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||