Package org.ametys.plugins.site.proxy
Class SessionAttributeRequestProxy
java.lang.Object
org.ametys.plugins.site.proxy.SessionAttributeRequestProxy
- All Implemented Interfaces:
BackOfficeRequestProxy,Configurable
- Direct Known Subclasses:
OauthTokenSessionAttributeRequestProxy
public class SessionAttributeRequestProxy
extends Object
implements BackOfficeRequestProxy, Configurable
Proxies a session attribute to the back-office, under the form of a request header prefixed by "X-Ametys-Session-".
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe list of session attribute to proxystatic final StringThe header prefix -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration configuration) voidhandleBackOfficeResponse(Response response, org.apache.http.HttpResponse backOfficeResponse) Allow to modify the response, bases on the back-office response.voidprepareBackOfficeRequest(Request request, HttpUriRequest backOfficeRequest) Allow to modify the back-office request being created.
-
Field Details
-
HEADER_PREFIX
The header prefix- See Also:
-
_attributes
The list of session attribute to proxy
-
-
Constructor Details
-
SessionAttributeRequestProxy
public SessionAttributeRequestProxy()
-
-
Method Details
-
configure
- Specified by:
configurein interfaceConfigurable- Throws:
ConfigurationException
-
prepareBackOfficeRequest
Description copied from interface:BackOfficeRequestProxyAllow to modify the back-office request being created.- Specified by:
prepareBackOfficeRequestin interfaceBackOfficeRequestProxy- Parameters:
request- the incoming request from the client.backOfficeRequest- the back-office request being created.
-
handleBackOfficeResponse
public void handleBackOfficeResponse(Response response, org.apache.http.HttpResponse backOfficeResponse) Description copied from interface:BackOfficeRequestProxyAllow to modify the response, bases on the back-office response.- Specified by:
handleBackOfficeResponsein interfaceBackOfficeRequestProxy- Parameters:
response- the response being created.backOfficeResponse- the back-office response.
-