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 TypeMethodDescriptionboolean
getParameter
(String parameter) Get the value of the given parameter.Get all the parameters for this Link.getUri()
Get the URI of the link header.int
hashCode()
static Headers.Link
Create a new Link object with a specific URI-Reference and relation parameter.static Headers.Link
Create a new Link object with a specific URI-Reference and relation parameter.static Headers.Link
Create 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.Link
object
-
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.Link
object
-
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.Link
object
-
parse
A parser to convert link header string representations into a collection of links.- Parameters:
headers
- the link headers- Returns:
- a list of links
-