|
OpenShift Java Client 2.5.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.openshift.internal.client.response.Link
public class Link
The Class Link.
Constructor Summary | |
---|---|
|
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)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 paramsMethod Detail |
---|
public final String getRel()
public final String getHref()
public final String getHref(String server, String servicePath, Parameter... urlParameters)
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
public String toString()
toString
in class Object
|
OpenShift Java Client 2.5.0.Final | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |