public interface HttpRequest
Http request model
-
Method Summary
Modifier and TypeMethodDescriptionvoidDump request data to characters output for further loggingReturns read-only cookiesReturns read-only http headersgetHost()Requested hostReturns body input streamgetPort()Requested portReturns read-only file model from post map with Content-Type: multipart/form-dataReturns read-only string parameters model from post map with Content-Type: application/x-www-form-urlencoded or multipart/form-data except filesReturns read-only query string parametersQuery URL part after '?' charReturns the http method.Http protocol string: http, https etc.The part of request's URL from the domain(port) name up to the query string
-
Method Details
-
getRequestMethod
HttpMethod getRequestMethod()Returns the http method. e.g. GET, POST, etc. -
getRequestScheme
String getRequestScheme()Http protocol string: http, https etc. -
getHost
String getHost()Requested host -
getPort
Integer getPort()Requested port -
getRequestURI
String getRequestURI()The part of request's URL from the domain(port) name up to the query string -
getQueryString
String getQueryString()Query URL part after '?' char -
getHeaders
HttpValues<String,String> getHeaders()Returns read-only http headers -
getCookies
HttpValues<String,HttpCookie> getCookies()Returns read-only cookies -
getQueryParameters
HttpValues<String,String> getQueryParameters()Returns read-only query string parameters -
getPostParameters
HttpValues<String,String> getPostParameters()Returns read-only string parameters model from post map with Content-Type: application/x-www-form-urlencoded or multipart/form-data except files -
getPostFiles
HttpValues<String,HttpFile> getPostFiles()Returns read-only file model from post map with Content-Type: multipart/form-data -
getInputStream
InputStream getInputStream()Returns body input stream -
dump
Dump request data to characters output for further logging
-