|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NetworkManager
Specifies the required operations of a NetworkManager
| Field Summary | |
|---|---|
static String |
CHARSET
|
static String |
POST_CONTENT_TYPE
|
| Method Summary | |
|---|---|
String |
doGet(URL url)
Sends a GET HTTP request. |
String |
doPost(URL url,
Map<String,String> parameters)
Sends a POST HTTP request. |
void |
setFormat(Format format)
Sets the desired format of the requests. |
| Field Detail |
|---|
static final String POST_CONTENT_TYPE
static final String CHARSET
| Method Detail |
|---|
String doGet(URL url)
throws IOException
url - Target.
IOException - If there was any problem with the connection.
String doPost(URL url,
Map<String,String> parameters)
throws IOException
url - Target.parameters - Parameters of the POST operation.
IOException - If there was any problem with the connection.void setFormat(Format format)
format - A serialization format (XML or JSON).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||