Interface HttpRequest
- All Superinterfaces:
HttpMessage
- All Known Implementing Classes:
HttpRequestImpl
An HTTP request element
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsParameter(String name) Determines whether this request contains at least one parameter with the specified nameReturn the HTTP method used for this messageHttpMethodgetParameter(String name) Returns the value of a request parameter as a String, or null if the parameter does not exist.Return the HTTP request pathMethods inherited from interface HttpMessage
containsHeader, getContentType, getHeader, getHeaders, getProtocolVersion, isKeepAlive
-
Method Details
-
containsParameter
Determines whether this request contains at least one parameter with the specified name- Parameters:
name- The parameter name- Returns:
trueif this request contains at least one parameter with the specified name
-
getParameter
Returns the value of a request parameter as a String, or null if the parameter does not exist. If the request contained multiple parameters with the same name, this method returns the first parameter encountered in the request with the specified name- Parameters:
name- The parameter name- Returns:
- The value
-
getQueryString
String getQueryString()- Returns:
- The query part
-
getParameters
-
getMethod
-
getRequestPath
-