Connection.KeyVal
public static class HttpConnection.KeyVal extends Object implements Connection.KeyVal
Modifier and Type | Method | 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.KeyVal
key
in interface Connection.KeyVal
key
- new keypublic String key()
Connection.KeyVal
key
in interface Connection.KeyVal
public HttpConnection.KeyVal value(String value)
Connection.KeyVal
value
in interface Connection.KeyVal
value
- the new valuepublic String value()
Connection.KeyVal
value
in interface Connection.KeyVal
public HttpConnection.KeyVal inputStream(InputStream inputStream)
Connection.KeyVal
inputStream
in interface Connection.KeyVal
inputStream
- new input streampublic InputStream inputStream()
Connection.KeyVal
inputStream
in interface Connection.KeyVal
public boolean hasInputStream()
Connection.KeyVal
hasInputStream
in interface Connection.KeyVal
Copyright © 2009–2018 Jonathan Hedley. All rights reserved.