Package org.keycloak.services
Class HttpRequestImpl
- java.lang.Object
-
- org.keycloak.services.HttpRequestImpl
-
- All Implemented Interfaces:
HttpRequest
public class HttpRequestImpl extends Object implements HttpRequest
-
-
Constructor Summary
Constructors Constructor Description HttpRequestImpl(org.jboss.resteasy.spi.HttpRequest delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description X509Certificate[]
getClientCertificateChain()
Returns the client X509 certificate chain when processing TLS requests.javax.ws.rs.core.MultivaluedMap<String,String>
getDecodedFormParameters()
Returns the form parameters (e.g.: media typeapplication/x-www-form-urlencoded
) as aMultivaluedMap
where the key and its correspondent value maps to the parameter name and value, respectively.javax.ws.rs.core.HttpHeaders
getHttpHeaders()
Returns the HTTP headers.String
getHttpMethod()
Returns the HTTP method.javax.ws.rs.core.MultivaluedMap<String,FormPartValue>
getMultiPartFormParameters()
Parses the parts from a multipart form request (e.g.: multipart/form-data media type).javax.ws.rs.core.UriInfo
getUri()
Returns aUriInfo
instance for the path being requested.
-
-
-
Method Detail
-
getHttpMethod
public String getHttpMethod()
Description copied from interface:HttpRequest
Returns the HTTP method.- Specified by:
getHttpMethod
in interfaceHttpRequest
- Returns:
- the HTTP method.
-
getDecodedFormParameters
public javax.ws.rs.core.MultivaluedMap<String,String> getDecodedFormParameters()
Description copied from interface:HttpRequest
Returns the form parameters (e.g.: media type
application/x-www-form-urlencoded
) as aMultivaluedMap
where the key and its correspondent value maps to the parameter name and value, respectively.The values are already decoded using HTML form decoding.
- Specified by:
getDecodedFormParameters
in interfaceHttpRequest
- Returns:
- the decoded form parameters
-
getMultiPartFormParameters
public javax.ws.rs.core.MultivaluedMap<String,FormPartValue> getMultiPartFormParameters()
Description copied from interface:HttpRequest
Parses the parts from a multipart form request (e.g.: multipart/form-data media type).- Specified by:
getMultiPartFormParameters
in interfaceHttpRequest
- Returns:
- the parts from a multipart form request
-
getHttpHeaders
public javax.ws.rs.core.HttpHeaders getHttpHeaders()
Description copied from interface:HttpRequest
Returns the HTTP headers.- Specified by:
getHttpHeaders
in interfaceHttpRequest
- Returns:
- the HTTP headers
-
getClientCertificateChain
public X509Certificate[] getClientCertificateChain()
Description copied from interface:HttpRequest
Returns the client X509 certificate chain when processing TLS requests.- Specified by:
getClientCertificateChain
in interfaceHttpRequest
- Returns:
- the client certificate chain
-
getUri
public javax.ws.rs.core.UriInfo getUri()
Description copied from interface:HttpRequest
Returns aUriInfo
instance for the path being requested.- Specified by:
getUri
in interfaceHttpRequest
- Returns:
- the
UriInfo
for the current path
-
-