public final class HttpRequest extends Object
| Constructor and Description |
|---|
HttpRequest(String requestURL)
Creates a new HttpRequest.
|
HttpRequest(String requestURL,
Map<String,List<String>> parameters)
Creates a new HttpRequest.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
addParameter(String name,
String value) |
boolean |
equals(Object o) |
String |
getParameter(String name) |
Map<String,List<String>> |
getParameters() |
List<String> |
getParameters(String name) |
String |
getRequestURL()
The URL the client used to make the request.
|
int |
hashCode() |
HttpRequest |
removeParameter(String name) |
String |
toString() |
public HttpRequest(String requestURL)
requestURL - the request URL (up to but not including query parameters)NullPointerException - if requestURL is nullpublic HttpRequest(String requestURL, Map<String,List<String>> parameters)
requestURL - the request URL (up to but not including query parameters)parameters - the request query parametersNullPointerException - if any of the parameters is nullpublic HttpRequest addParameter(String name, String value)
name - the query parameter namevalue - the query parameter valueNullPointerException - if any of the parameters is nullpublic HttpRequest removeParameter(String name)
name - the query parameter nameNullPointerException - if any of the parameters is nullpublic String getRequestURL()
public String getParameter(String name)
name - the query parameter namepublic List<String> getParameters(String name)
name - the query parameter namepublic Map<String,List<String>> getParameters()
Copyright © 2016. All rights reserved.