public class Link extends Object
Modifier | Constructor and Description |
---|---|
|
Link(String href,
HttpMethod httpMethod) |
|
Link(String rel,
String href,
HttpMethod httpMethod) |
protected |
Link(String rel,
String href,
HttpMethod httpMethod,
List<LinkParameter> requiredParams,
List<LinkParameter> optionalParams)
Instantiates a new Link object.
|
protected |
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.
|
String |
getHref(String server,
String servicePath,
List<Parameter> urlParameters) |
String |
getHref(String server,
String servicePath,
Parameter... urlParameters) |
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.
|
boolean |
hasParameter(String name) |
String |
toString() |
void |
validateRequestParameters(Parameter[] parameters) |
public Link(String href, HttpMethod httpMethod)
public Link(String rel, String href, HttpMethod httpMethod)
protected Link(String rel, String href, String httpMethod, List<LinkParameter> requiredParams, List<LinkParameter> optionalParams)
protected 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 String getHref(String server, String servicePath, List<Parameter> urlParameters)
public final HttpMethod getHttpMethod()
public final List<LinkParameter> getRequiredParams()
public final List<LinkParameter> getOptionalParams()
public boolean hasParameter(String name)
public void validateRequestParameters(Parameter[] parameters) throws OpenShiftRequestException
OpenShiftRequestException
Copyright © 2013 JBoss by Red Hat. All rights reserved.