public class GetRequest extends Object
Constructor and Description |
---|
GetRequest() |
GetRequest(String url) |
GetRequest(String url,
String query) |
Modifier and Type | Method and Description |
---|---|
String |
getContent() |
Map<String,String> |
getHeaders()
Request headers.
|
HttpMethods |
getMethod() |
String |
getQuery()
Query information e.g.
|
String |
getUrl()
Request url (relative).
|
String |
getUrlAndQuery()
Concatenated Url and Query.
|
void |
setContent(String content) |
void |
setHeaders(Map<String,String> headers)
Request headers.
|
void |
setMethod(HttpMethods method) |
void |
setQuery(String query)
Query information e.g.
|
void |
setUrl(String url)
Request url (relative).
|
public GetRequest()
public GetRequest(String url)
public String getContent()
public void setContent(String content)
public HttpMethods getMethod()
public void setMethod(HttpMethods method)
public String getQuery()
public String getUrl()
public void setQuery(String query)
query
- public void setUrl(String url)
url
- public String getUrlAndQuery()
Copyright © 2016. All Rights Reserved.