public static class HttpConnection.KeyVal extends Object implements Connection.KeyVal
| Modifier and Type | Method and Description |
|---|---|
static HttpConnection.KeyVal |
create(String key,
String value) |
static HttpConnection.KeyVal |
create(String key,
String filename,
InputStream stream) |
boolean |
hasInputStream()
Does this keyval have an input stream?
|
InputStream |
inputStream()
Get the input stream associated with this keyval, if any
|
HttpConnection.KeyVal |
inputStream(InputStream inputStream)
Add or update an input stream to this keyVal
|
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
|
public static HttpConnection.KeyVal create(String key, String value)
public static HttpConnection.KeyVal create(String key, String filename, InputStream stream)
public HttpConnection.KeyVal key(String key)
Connection.KeyValkey in interface Connection.KeyValkey - new keypublic String key()
Connection.KeyValkey in interface Connection.KeyValpublic HttpConnection.KeyVal value(String value)
Connection.KeyValvalue in interface Connection.KeyValvalue - the new valuepublic String value()
Connection.KeyValvalue in interface Connection.KeyValpublic HttpConnection.KeyVal inputStream(InputStream inputStream)
Connection.KeyValinputStream in interface Connection.KeyValinputStream - new input streampublic InputStream inputStream()
Connection.KeyValinputStream in interface Connection.KeyValpublic boolean hasInputStream()
Connection.KeyValhasInputStream in interface Connection.KeyValCopyright © 2009-2016 Jonathan Hedley. All Rights Reserved.