public final class RepositoryNode extends JsonNode
RepositoryNode
class is responsible for knowing how to create a URL for a repository and to parse a JSON
response into workspace
objects.Constructor and Description |
---|
RepositoryNode(Repository repository) |
Modifier and Type | Method and Description |
---|---|
URL |
getUrl()
This URL can be used to obtain the workspaces contained in this repository.
|
Collection<Workspace> |
getWorkspaces(String jsonResponse) |
children, getContent, getId, properties, toString, withChild, withMixin, withPrimaryType, withProperty
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
public RepositoryNode(Repository repository)
repository
- the ModeShape repository (never null
)public URL getUrl() throws Exception
This URL can be used to obtain the workspaces contained in this repository. The URL will NOT end in '/'.
getUrl
in class JsonNode
Exception
- if there is a problem constructing the URLJsonNode.getUrl()
public Collection<Workspace> getWorkspaces(String jsonResponse) throws Exception
jsonResponse
- the HTTP connection JSON response (never null
) containing the workspacesnull
)Exception
- if there is a problem obtaining the workspacesCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.