public interface RunningHTTPRequest
Modifier and Type | Method and Description |
---|---|
void |
addHTTPHeader(java.lang.String key,
java.lang.String value)
Adds an HTTPHeader.
|
void |
addPOSTParameter(java.lang.String key,
java.lang.String value)
Adds a POST parameter to the local hash.
|
java.net.URL |
getURL()
Gets the url.
|
java.lang.String |
getURLAsString()
Gets the url.
|
void |
removeHTTPHeader(java.lang.String key,
java.lang.String value)
Removes an HTTPHeader.
|
void |
removePOSTParameter(java.lang.String key)
Removes a POST parameter from the local hash.
|
void |
setRequestLine(java.lang.String requestMethod,
java.lang.String url,
java.lang.String httpVersion)
Sets the request line params.
|
void addPOSTParameter(java.lang.String key, java.lang.String value)
key
- The key in the parameter.value
- The value in the parameter.void removePOSTParameter(java.lang.String key)
key
- The key in the parameter.@Nullable java.net.URL getURL()
java.lang.String getURLAsString()
void setRequestLine(java.lang.String requestMethod, java.lang.String url, java.lang.String httpVersion)
requestMethod
- The request method POST, GET or CONNECT.url
- The url.httpVersion
- The version of http.void addHTTPHeader(java.lang.String key, java.lang.String value)
void removeHTTPHeader(java.lang.String key, java.lang.String value)