Package javax.servlet.http

Examples of javax.servlet.http.HttpServletRequest.removeAttribute()


    expect(request.getSession()).andReturn(session);
    session.setAttribute("name2", "value2");
    context.setAttribute("name3", "value3");

    // 2.
    request.removeAttribute("name1");
    expect(request.getSession(false)).andReturn(session);
    session.removeAttribute("name2");
    context.removeAttribute("name3");

    // 3.
View Full Code Here


            {
                /* Forward the current PortletRequest */
                request.setAttribute( PortletRequestImpl.PORTLET_REQUEST_KEY, req );

                /* Invalidate the current URI */
                hreq.removeAttribute( PortletRequestImpl.PORTLET_URI_KEY );

                /* Move to the next URI */
                if ( debug )
                {
                    __log.debug( "currentRequest=" + request.getAttribute( PortletRequestImpl.PORTLET_REQUEST_KEY ) );
View Full Code Here

            success = true;
        } catch (IllegalArgumentException ex) {
            // the message did not have the same type as the return type of the suspended method
        }
        if (success && event.isSuspended()) {
            request.removeAttribute(AtmospherePollService.GWT_SUSPENDED);
            event.getResource().resume();
        }
    }

}
View Full Code Here

    expect(requestMock.getAttribute(A_KEY))
        .andReturn(A_VALUE);


    requestMock.setAttribute(REQUEST_DISPATCHER_REQUEST, true);
    requestMock.removeAttribute(REQUEST_DISPATCHER_REQUEST);

    final boolean[] run = new boolean[1];
    final HttpServlet mockServlet = new HttpServlet() {
      protected void service(HttpServletRequest request, HttpServletResponse httpServletResponse)
          throws ServletException, IOException {
View Full Code Here

    expect(requestMock.getAttribute(A_KEY))
        .andReturn(A_VALUE);


    requestMock.setAttribute(REQUEST_DISPATCHER_REQUEST, true);
    requestMock.removeAttribute(REQUEST_DISPATCHER_REQUEST);

    expect(mockResponse.isCommitted())
        .andReturn(false);

    mockResponse.resetBuffer();
View Full Code Here

                             * Clear some state set by findVaadinSession to
                             * avoid accidentally depending on it when coding on
                             * e.g. static request handling.
                             */
                            CurrentInstance.restoreInstances(oldCurrent);
                            currentRequest.removeAttribute(VaadinSession.class
                                    .getName());
                        }
                    }
                }
            }
View Full Code Here

            return new ErrorResponse(e);
         }
      }
      finally
      {
         dreq.removeAttribute(ContextDispatcherInterceptor.REQ_ATT_COMPONENT_INVOCATION);
         dreq.removeAttribute(Constants.JAVAX_PORTLET_CONFIG);
         dreq.removeAttribute(Constants.JAVAX_PORTLET_REQUEST);
         dreq.removeAttribute(Constants.JAVAX_PORTLET_RESPONSE);
         dreq.removeAttribute(Constants.JAVAX_PORTLET_LIFECYCLE_PHASE);
      }
View Full Code Here

         }
      }
      finally
      {
         dreq.removeAttribute(ContextDispatcherInterceptor.REQ_ATT_COMPONENT_INVOCATION);
         dreq.removeAttribute(Constants.JAVAX_PORTLET_CONFIG);
         dreq.removeAttribute(Constants.JAVAX_PORTLET_REQUEST);
         dreq.removeAttribute(Constants.JAVAX_PORTLET_RESPONSE);
         dreq.removeAttribute(Constants.JAVAX_PORTLET_LIFECYCLE_PHASE);
      }
   }
View Full Code Here

      }
      finally
      {
         dreq.removeAttribute(ContextDispatcherInterceptor.REQ_ATT_COMPONENT_INVOCATION);
         dreq.removeAttribute(Constants.JAVAX_PORTLET_CONFIG);
         dreq.removeAttribute(Constants.JAVAX_PORTLET_REQUEST);
         dreq.removeAttribute(Constants.JAVAX_PORTLET_RESPONSE);
         dreq.removeAttribute(Constants.JAVAX_PORTLET_LIFECYCLE_PHASE);
      }
   }
View Full Code Here

      finally
      {
         dreq.removeAttribute(ContextDispatcherInterceptor.REQ_ATT_COMPONENT_INVOCATION);
         dreq.removeAttribute(Constants.JAVAX_PORTLET_CONFIG);
         dreq.removeAttribute(Constants.JAVAX_PORTLET_REQUEST);
         dreq.removeAttribute(Constants.JAVAX_PORTLET_RESPONSE);
         dreq.removeAttribute(Constants.JAVAX_PORTLET_LIFECYCLE_PHASE);
      }
   }

   private class Invoker implements ActionFilter, EventFilter, RenderFilter, ResourceFilter
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.