com.basho.riak.client.util
Class LinkHeader

java.lang.Object
  extended by com.basho.riak.client.util.LinkHeader

Deprecated. with the addition of a protocol buffers client in 0.14 all the existing REST client code should be in client.http.* this class has therefore been moved. Please use com.basho.riak.client.http.util.LinkHeader instead.

WARNING: This class will be REMOVED in the next version.

@Deprecated
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
See Also:
LinkHeader

Constructor Summary
LinkHeader()
          Deprecated.  
 
Method Summary
static Map<String,Map<String,String>> parse(String header)
          Deprecated. Returns a map of links to their parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkHeader

public LinkHeader()
Deprecated. 
Method Detail

parse

public static Map<String,Map<String,String>> parse(String header)
Deprecated. 
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.