Package org.jsoup.helper
Class HttpConnection.KeyVal
- java.lang.Object
-
- org.jsoup.helper.HttpConnection.KeyVal
-
- All Implemented Interfaces:
Connection.KeyVal
- Enclosing class:
- HttpConnection
public static class HttpConnection.KeyVal extends java.lang.Object implements Connection.KeyVal
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpConnection.KeyValcreate(java.lang.String key, java.lang.String value)static HttpConnection.KeyValcreate(java.lang.String key, java.lang.String filename, java.io.InputStream stream)booleanhasInputStream()Does this keyval have an input stream?java.io.InputStreaminputStream()Get the input stream associated with this keyval, if anyHttpConnection.KeyValinputStream(java.io.InputStream inputStream)Add or update an input stream to this keyValjava.lang.Stringkey()Get the key of a keyvalHttpConnection.KeyValkey(java.lang.String key)Update the key of a keyvaljava.lang.StringtoString()java.lang.Stringvalue()Get the value of a keyvalHttpConnection.KeyValvalue(java.lang.String value)Update the value of a keyval
-
-
-
Method Detail
-
create
public static HttpConnection.KeyVal create(java.lang.String key, java.lang.String value)
-
create
public static HttpConnection.KeyVal create(java.lang.String key, java.lang.String filename, java.io.InputStream stream)
-
key
public HttpConnection.KeyVal key(java.lang.String key)
Description copied from interface:Connection.KeyValUpdate the key of a keyval- Specified by:
keyin interfaceConnection.KeyVal- Parameters:
key- new key- Returns:
- this KeyVal, for chaining
-
key
public java.lang.String key()
Description copied from interface:Connection.KeyValGet the key of a keyval- Specified by:
keyin interfaceConnection.KeyVal- Returns:
- the key
-
value
public HttpConnection.KeyVal value(java.lang.String value)
Description copied from interface:Connection.KeyValUpdate the value of a keyval- Specified by:
valuein interfaceConnection.KeyVal- Parameters:
value- the new value- Returns:
- this KeyVal, for chaining
-
value
public java.lang.String value()
Description copied from interface:Connection.KeyValGet the value of a keyval- Specified by:
valuein interfaceConnection.KeyVal- Returns:
- the value
-
inputStream
public HttpConnection.KeyVal inputStream(java.io.InputStream inputStream)
Description copied from interface:Connection.KeyValAdd or update an input stream to this keyVal- Specified by:
inputStreamin interfaceConnection.KeyVal- Parameters:
inputStream- new input stream- Returns:
- this KeyVal, for chaining
-
inputStream
public java.io.InputStream inputStream()
Description copied from interface:Connection.KeyValGet the input stream associated with this keyval, if any- Specified by:
inputStreamin interfaceConnection.KeyVal- Returns:
- input stream if set, or null
-
hasInputStream
public boolean hasInputStream()
Description copied from interface:Connection.KeyValDoes this keyval have an input stream?- Specified by:
hasInputStreamin interfaceConnection.KeyVal- Returns:
- true if this keyval does indeed have an input stream
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-