Package com.inrupt.client
Class Headers.Link
java.lang.Object
com.inrupt.client.Headers.Link
- Enclosing class:
- Headers
A class for representing an HTTP Link header.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetParameter(String parameter) Get the value of the given parameter.Get all the parameters for this Link.getUri()Get the URI of the link header.inthashCode()static Headers.LinkCreate a new Link object with a specific URI-Reference and relation parameter.static Headers.LinkCreate a new Link object with a specific URI-Reference and relation parameter.static Headers.LinkCreate a new Link object with a specific URI-Reference and parameters.static List<Headers.Link>A parser to convert link header string representations into a collection of links.toString()
-
Method Details
-
getUri
Get the URI of the link header.- Returns:
- the URI value
-
getParameter
Get the value of the given parameter.- Parameters:
parameter- the parameter name- Returns:
- the parameter value, may be
null
-
getParameters
Get all the parameters for this Link.- Returns:
- the complete collection of parameters
-
toString
-
equals
-
hashCode
public int hashCode() -
of
Create a new Link object with a specific URI-Reference and relation parameter.- Parameters:
uri- the link URIrel- the relation value- Returns:
- the new
Headers.Linkobject
-
of
Create a new Link object with a specific URI-Reference and relation parameter.- Parameters:
uri- the link URIrel- the relation value- Returns:
- the new
Headers.Linkobject
-
of
Create a new Link object with a specific URI-Reference and parameters.- Parameters:
uri- the link URIparameters- the link parameters- Returns:
- the new
Headers.Linkobject
-
parse
A parser to convert link header string representations into a collection of links.- Parameters:
headers- the link headers- Returns:
- a list of links
-