boolean inPortletContext = false;
if (filterPortletContext != null)
{
// collect the request and response together for convenience handling
FilterRequestContext filterRequestContext = new FilterRequestContext(
(HttpServletRequest)request, (HttpServletResponse)response);
// sets up the FilterRequestContext for this request, such as wrapping the request and
// response objects
inPortletContext = filterPortletContext.setupFilter(getFilterConfig(),
filterRequestContext, getFilterPath((HttpServletRequest)request));
// Retrieve and assign the portlet wrapped request/response objects
httpServletRequest = filterRequestContext.getRequest();
httpServletResponse = filterRequestContext.getResponse();
}
else
{
// assign plane HTTP servlet request/response objects
httpServletRequest = (HttpServletRequest)request;