public interface HttpBridletRequest
| Modifier and Type | Method and Description |
|---|---|
String |
getAccept()
The Accept header sent by the client.
|
String |
getAcceptLanguage()
The AcceptLanguaje header sent by the client.
|
UploadedFile[] |
getAllUploadedFiles()
Gets the uploaded files for a "multipart/form-data" request.
|
String |
getContentType()
The mime/type sent by the client for this request, this method will get
the Content-Type http header.
|
HttpCookie |
getCookie(String name)
Gets the specified HTTP cookie.
|
Map<String,HttpCookie> |
getCookies()
Gets a map with all the cookies sent to the server by the client.
|
String[] |
getCookiesNames()
Gets all the cookies names available in this request.
|
HttpReqParam |
getGetParameter(String parameter)
Gets the specific "GET" parameter from the parameters map.
|
Map<String,HttpReqParam> |
getGetParameters()
Gets the "GET" parameters that where sent by the client in the query
string of the request.
|
String[] |
getGetParametersNames()
Gets all the "GET" parameters names for this request if any.
|
String |
getHeader(String header)
Gets the value of the especified header.
|
String[] |
getHeaders()
All the headers names in this request.
|
String |
getHost()
The host of the server the client made the HTTP request to
|
InputStream |
getInputStream()
An InputStream witch allows to read the request body for this request.
|
String |
getMethod()
The HTTP method used to made the request.
|
String |
getPath()
The requested path asked by the client.
|
HttpReqParam |
getPostParameter(String parameter)
Gets the specific post parameter from the parameters map.
|
Map<String,HttpReqParam> |
getPostParameters()
Gets a unmodificable map to the post parameters sent by the client.
|
String[] |
getPostParametersNames()
Gets all the post parameters names for this request if any.
|
String |
getProtocol()
The protocol used to made the request
|
UploadedFile |
getUploadedFile(String name)
Gets the given uploaded file.
|
String |
getUserAgent()
The UserAgent heather from the http request if any.
|
boolean |
isDelete()
When ever this request is http method is "DELETE".
|
boolean |
isForm()
When ever this request content type is a www-form or multipart-form.
|
boolean |
isGet()
When ever this request is http method is "GET".
|
boolean |
isMultipartForm()
When ever this request is a "multipart/form-data".
|
boolean |
isPatch()
When ever this request is http method is "PATCH".
|
boolean |
isPost()
When ever this request is http method is "POST".
|
boolean |
isPut()
When ever this request is http method is "PUT".
|
boolean |
isWwwForm()
When ever this request is a "application/x-www-form-urlencoded".
|
String getMethod()
String getProtocol()
String getHost()
String getUserAgent()
String getAccept()
String getAcceptLanguage()
String getPath()
String getContentType()
boolean isGet()
boolean isPost()
boolean isDelete()
boolean isPut()
boolean isPatch()
boolean isForm()
boolean isWwwForm()
boolean isMultipartForm()
Map<String,HttpReqParam> getPostParameters()
HttpReqParam getPostParameter(String parameter)
parameter - The post parameter name.String[] getPostParametersNames()
Map<String,HttpReqParam> getGetParameters()
HttpReqParam getGetParameter(String parameter)
parameter - The "GET" parameter name.String[] getGetParametersNames()
UploadedFile[] getAllUploadedFiles()
UploadedFile getUploadedFile(String name)
name - The param name for the uploaded file.String[] getHeaders()
String getHeader(String header)
header - The header nameInputStream getInputStream()
Map<String,HttpCookie> getCookies()
HttpCookie getCookie(String name)
name - The name of the HTTP cookie.String[] getCookiesNames()
Copyright © 2015–2017 Bridje Framework. All rights reserved.