Enabling interim fix JR56882
JR56882 provides the ability for custom command implementations and data beans to access the HttpServletRequest.
Before you begin
For information about
how to install an interim fix, see
About this task
- Set the 'UseHttpControllerRequestObject' option to true if you have existing
custom command implementations and data beans that were written to use HttpControllerRequestObject.
This option causes the WebSphere Commerce REST framework to construct a view command context with
reference to an HttpControllerRequestObject when a REST resource method is mapped to a command or
data bean. This behavior is similar to the WebSphere Commerce store runtime. Note: Even if this flag is not set to true, REST command mapping now constructs a command context where its GET Request/Response methods return the HttpServletRequest/Response.
- Set the 'PropagateHttpServletRequest' option to true for custom command implementations that are mapped to a REST resource method through REST BOD mapping. This option causes the WebSphere Commerce REST framework to capture the HttpServletRequest/Response and propagate it to the WebSphere Commerce SOI framework. The propagation uses the transaction cache so that the WebSphere Commerce SOI framework can also construct command context with either direct references to the HttpServletRequest/Response or through HttpControllerRequestObject.