public class Link extends Object
Constructor and Description |
---|
Link(String rel,
String href,
HttpMethod httpMethod) |
Link(String rel,
String href,
HttpMethod httpMethod,
List<LinkParameter> requiredParams,
List<LinkParameter> optionalParams)
Instantiates a new Link object.
|
Link(String rel,
String href,
String httpMethod,
List<LinkParameter> requiredParams,
List<LinkParameter> optionalParams) |
Modifier and Type | Method and Description |
---|---|
String |
getHref()
Gets the url/href this link points to.
|
HttpMethod |
getHttpMethod()
Gets the http method this link operates on.
|
List<LinkParameter> |
getOptionalParams()
Gets the optional params.
|
String |
getRel()
Gets the related resource (destination) this link points to.
|
List<LinkParameter> |
getRequiredParams()
Gets the required params.
|
String |
toString() |
public Link(String rel, String href, HttpMethod httpMethod)
public Link(String rel, String href, String httpMethod, List<LinkParameter> requiredParams, List<LinkParameter> optionalParams)
public Link(String rel, String href, HttpMethod httpMethod, List<LinkParameter> requiredParams, List<LinkParameter> optionalParams)
rel
- the related resource this link points tohref
- the href the url/href this link points tohttpMethod
- the http method that this link operates onrequiredParams
- the required paramsoptionalParams
- the optional paramspublic final String getRel()
public final String getHref()
public final HttpMethod getHttpMethod()
public final List<LinkParameter> getRequiredParams()
public final List<LinkParameter> getOptionalParams()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.