Class WorkspaceNode

  extended by org.codehaus.jettison.json.JSONObject
      extended by
          extended by

public class WorkspaceNode
extends JsonNode

The WorkspaceNode class is responsible for knowing how to create a URL for a workspace. The URL can be used to publish and unpublish resources.

Field Summary
Fields inherited from class org.codehaus.jettison.json.JSONObject
Constructor Summary
WorkspaceNode(Workspace workspace)
Method Summary
 URL getUrl()
Methods inherited from class
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public WorkspaceNode(Workspace workspace)
workspace - the repository workspace (never null)
Method Detail


public URL getUrl()
           throws Exception

Specified by:
getUrl in class JsonNode
an HTTP URL representing this node
Exception - if there is a problem constructing the URL
See Also:

Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.