org.apache.isis.viewer.restfulobjects.applib.links
Class LinkRepresentation

java.lang.Object
  extended by org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation
      extended by org.apache.isis.viewer.restfulobjects.applib.links.LinkRepresentation

public final class LinkRepresentation
extends JsonRepresentation


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation
JsonRepresentation.HasExtensions, JsonRepresentation.HasLinks, JsonRepresentation.LinksToSelf
 
Field Summary
 
Fields inherited from class org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation
jsonNode
 
Constructor Summary
LinkRepresentation()
           
LinkRepresentation(org.codehaus.jackson.JsonNode jsonNode)
           
 
Method Summary
 boolean equals(Object obj)
           
<T> RestfulResponse<JsonRepresentation>
follow(org.jboss.resteasy.client.ClientExecutor executor)
           
<T extends JsonRepresentation>
RestfulResponse<T>
follow(org.jboss.resteasy.client.ClientExecutor executor, JsonRepresentation requestArgs)
           
 JsonRepresentation getArguments()
          Returns the "arguments" json-property of the link (a map).
 String getHref()
           
 HttpMethod getHttpMethod()
           
 String getRel()
           
 String getTitle()
           
 javax.ws.rs.core.MediaType getType()
           
 JsonRepresentation getValue()
           
 int hashCode()
           
 String toString()
           
 LinkRepresentation withHref(String href)
           
 LinkRepresentation withMethod(HttpMethod httpMethod)
           
 LinkRepresentation withRel(String rel)
           
 LinkRepresentation withTitle(String title)
           
 
Methods inherited from class org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation
arrayAdd, arrayAdd, arrayAdd, arrayAdd, arrayAdd, arrayAdd, arrayAdd, arrayAdd, arrayAdd, arrayGet, arrayIterable, arrayIterable, arrayIterator, arrayIterator, arraySetElementAt, as, asArg, asArray, asArrayNode, asBigDecimal, asBigInteger, asBoolean, asDouble, asInputStream, asInt, asJsonNode, asLink, asLong, asMap, asNull, asObjectNode, asString, asUrlEncoded, ensureArray, getArray, getArrayEnsured, getBigDecimal, getBigInteger, getBoolean, getDouble, getInt, getLink, getLong, getMap, getNull, getRepresentation, getString, isArray, isArray, isBigDecimal, isBigDecimal, isBigInteger, isBigInteger, isBoolean, isBoolean, isDouble, isDouble, isInt, isInt, isLink, isLink, isLink, isLong, isLong, isMap, isMap, isNull, isNull, isString, isString, isValue, mapHas, mapIterable, mapIterator, mapPut, mapPut, mapPut, mapPut, mapPut, mapPut, mapPut, mapPut, mapPut, mapPut, mapValueAsLink, newArray, newArray, newMap, size
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinkRepresentation

public LinkRepresentation()

LinkRepresentation

public LinkRepresentation(org.codehaus.jackson.JsonNode jsonNode)
Method Detail

getRel

public String getRel()

withRel

public LinkRepresentation withRel(String rel)

getHref

public String getHref()

withHref

public LinkRepresentation withHref(String href)

getValue

public JsonRepresentation getValue()

getTitle

public String getTitle()

withTitle

public LinkRepresentation withTitle(String title)

getHttpMethod

public HttpMethod getHttpMethod()

getType

public javax.ws.rs.core.MediaType getType()

withMethod

public LinkRepresentation withMethod(HttpMethod httpMethod)

getArguments

public JsonRepresentation getArguments()
Returns the "arguments" json-property of the link (a map).

If there is no "arguments" node, then as a convenience will return an empty map.

Returns:

follow

public <T> RestfulResponse<JsonRepresentation> follow(org.jboss.resteasy.client.ClientExecutor executor)
                                           throws Exception
Throws:
Exception

follow

public <T extends JsonRepresentation> RestfulResponse<T> follow(org.jboss.resteasy.client.ClientExecutor executor,
                                                                JsonRepresentation requestArgs)
                                                     throws Exception
Throws:
Exception

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class JsonRepresentation


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.