Package org.apache.mina.http.api
Interface HttpRequest
-
- All Superinterfaces:
HttpMessage
- All Known Implementing Classes:
HttpRequestImpl
public interface HttpRequest extends HttpMessage
An HTTP request element
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontainsParameter(java.lang.String name)Determines whether this request contains at least one parameter with the specified nameHttpMethodgetMethod()Return the HTTP method used for this messageHttpMethodjava.lang.StringgetParameter(java.lang.String name)Returns the value of a request parameter as a String, or null if the parameter does not exist.java.util.Map<java.lang.String,java.util.List<java.lang.String>>getParameters()java.lang.StringgetQueryString()java.lang.StringgetRequestPath()Return the HTTP request path-
Methods inherited from interface org.apache.mina.http.api.HttpMessage
containsHeader, getContentType, getHeader, getHeaders, getProtocolVersion, isKeepAlive
-
-
-
-
Method Detail
-
containsParameter
boolean containsParameter(java.lang.String name)
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
java.lang.String getParameter(java.lang.String name)
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
java.lang.String getQueryString()
- Returns:
- The query part
-
getParameters
java.util.Map<java.lang.String,java.util.List<java.lang.String>> getParameters()
- Returns:
- a read only
Mapof query parameters whose key is aStringand whose value is aListofStrings.
-
getMethod
HttpMethod getMethod()
Return the HTTP method used for this messageHttpMethod- Returns:
- the method
-
getRequestPath
java.lang.String getRequestPath()
Return the HTTP request path- Returns:
- the request path
-
-