org.jsoup.helper
Class HttpConnection.KeyVal

java.lang.Object
  extended by org.jsoup.helper.HttpConnection.KeyVal
All Implemented Interfaces:
Connection.KeyVal
Enclosing class:
HttpConnection

public static class HttpConnection.KeyVal
extends Object
implements Connection.KeyVal


Method Summary
static HttpConnection.KeyVal create(String key, String value)
           
 String key()
          Get the key of a keyval
 HttpConnection.KeyVal key(String key)
          Update the key of a keyval
 String toString()
           
 String value()
          Get the value of a keyval
 HttpConnection.KeyVal value(String value)
          Update the value of a keyval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static HttpConnection.KeyVal create(String key,
                                           String value)

key

public HttpConnection.KeyVal key(String key)
Description copied from interface: Connection.KeyVal
Update the key of a keyval

Specified by:
key in interface Connection.KeyVal
Parameters:
key - new key
Returns:
this KeyVal, for chaining

key

public String key()
Description copied from interface: Connection.KeyVal
Get the key of a keyval

Specified by:
key in interface Connection.KeyVal
Returns:
the key

value

public HttpConnection.KeyVal value(String value)
Description copied from interface: Connection.KeyVal
Update the value of a keyval

Specified by:
value in interface Connection.KeyVal
Parameters:
value - the new value
Returns:
this KeyVal, for chaining

value

public String value()
Description copied from interface: Connection.KeyVal
Get the value of a keyval

Specified by:
value in interface Connection.KeyVal
Returns:
the value

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 Jonathan Hedley. All Rights Reserved.