org.apache.isis.viewer.restfulobjects.applib.links
Class LinkRepresentation
java.lang.Object
org.apache.isis.viewer.restfulobjects.applib.JsonRepresentation
org.apache.isis.viewer.restfulobjects.applib.links.LinkRepresentation
public final class LinkRepresentation
- extends JsonRepresentation
| 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 |
LinkRepresentation
public LinkRepresentation()
LinkRepresentation
public LinkRepresentation(org.codehaus.jackson.JsonNode jsonNode)
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.