| Package | Description |
|---|---|
| org.exoplatform.common.http.client |
| Modifier and Type | Class and Description |
|---|---|
class |
Request
This class represents an http request.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
CookiePolicyHandler.acceptCookie(Cookie cookie,
RoRequest req,
RoResponse resp)
This method is called for each cookie that a server tries to set via the
Set-Cookie header.
|
AuthorizationInfo |
AuthorizationHandler.fixupAuthInfo(AuthorizationInfo info,
RoRequest req,
AuthorizationInfo challenge,
RoResponse resp)
This method is called whenever auth info is chosen from the list of known
info in the AuthorizationInfo class to be sent with a request.
|
AuthorizationInfo |
DefaultAuthHandler.fixupAuthInfo(AuthorizationInfo info,
RoRequest req,
AuthorizationInfo challenge,
RoResponse resp)
For Digest authentication we need to set the uri, response and opaque
parameters.
|
AuthorizationInfo |
AuthorizationHandler.getAuthorization(AuthorizationInfo challenge,
RoRequest req,
RoResponse resp)
This method is called whenever a 401 or 407 response is received and no
candidate info is found in the list of known auth info.
|
AuthorizationInfo |
DefaultAuthHandler.getAuthorization(AuthorizationInfo challenge,
RoRequest req,
RoResponse resp)
returns the requested authorization, or null if none was given.
|
void |
AuthorizationHandler.handleAuthHeaders(Response resp,
RoRequest req,
AuthorizationInfo prev,
AuthorizationInfo prxy)
Sometimes even non-401 responses will contain headers pertaining to
authorization (such as the "Authentication-Info" header).
|
void |
DefaultAuthHandler.handleAuthHeaders(Response resp,
RoRequest req,
AuthorizationInfo prev,
AuthorizationInfo prxy)
We handle the "Authentication-Info" and "Proxy-Authentication-Info" headers
here.
|
void |
AuthorizationHandler.handleAuthTrailers(Response resp,
RoRequest req,
AuthorizationInfo prev,
AuthorizationInfo prxy)
This method is similar to
handleAuthHeaders except that it is
called if any headers in the trailer were sent. |
void |
DefaultAuthHandler.handleAuthTrailers(Response resp,
RoRequest req,
AuthorizationInfo prev,
AuthorizationInfo prxy)
We handle the "Authentication-Info" and "Proxy-Authentication-Info"
trailers here.
|
protected static Cookie[] |
Cookie2.parse(String set_cookie,
RoRequest req)
Parses the Set-Cookie2 header into an array of Cookies.
|
protected static Cookie[] |
Cookie.parse(String set_cookie,
RoRequest req)
Parses the Set-Cookie header into an array of Cookies.
|
void |
CookieModule.responsePhase1Handler(Response resp,
RoRequest req)
Invoked by the HTTPClient.
|
void |
HTTPClientModule.responsePhase1Handler(Response response,
RoRequest request)
The phase 1 response handler.
|
void |
CookieModule.responsePhase3Handler(Response resp,
RoRequest req)
Invoked by the HTTPClient.
|
void |
HTTPClientModule.responsePhase3Handler(Response response,
RoRequest request)
The phase 3 response handler.
|
boolean |
CookiePolicyHandler.sendCookie(Cookie cookie,
RoRequest req)
This method is called for each cookie that is eligible for sending with a
request (according to the matching rules for the path, domain, protocol,
etc).
|
protected boolean |
Cookie2.sendWith(RoRequest req) |
protected boolean |
Cookie.sendWith(RoRequest req) |
void |
CookieModule.trailerHandler(Response resp,
RoRequest req)
Invoked by the HTTPClient.
|
void |
HTTPClientModule.trailerHandler(Response response,
RoRequest request)
The chunked transfer-encoding (and in future maybe others) can contain
trailer fields at the end of the body.
|
| Constructor and Description |
|---|
Cookie(RoRequest req)
Use
parse() to create cookies. |
Cookie2(RoRequest req)
Use
parse() to create cookies. |
Copyright © 2021 eXo Platform SAS. All Rights Reserved.