com.basho.riak.client.http.util
Class LinkHeader
java.lang.Object
com.basho.riak.client.http.util.LinkHeader
public class LinkHeader
- extends Object
Parses the HTTP Link header as described here:
http://tools.ietf.org/html/draft-nottingham-http-link-header
This implementation is more or less a direct port of mnot's Python
implementation here:
http://gist.github.com/210535
- Author:
- jlee
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LinkHeader
public LinkHeader()
parse
public static Map<String,Map<String,String>> parse(String header)
- Returns a map of links to their parameters. Parameters are a map of
parameter name to value.
- Parameters:
header
- Value of the Link header in the format described here:
http://tools.ietf.org/html/draft-nottingham-http-link-header
e.g. </path/to/resource1>; param="value",
</path/to/resource2>
- Returns:
- A map of links to their parameters. Parameters are a map of
parameter name to value.
Copyright © 2012. All Rights Reserved.