Package org.jboss.seam.servlet

Examples of org.jboss.seam.servlet.ContextualHttpServletRequest


    @Override
    protected void doPost(final HttpServletRequest request,
            final HttpServletResponse response) throws ServletException,
            IOException {
        new ContextualHttpServletRequest(request) {
            @Override
            public void process() throws Exception {
                doWork(request, response);
            }
        }.run();
View Full Code Here


            throws IOException, ServletException {
        final HttpServletRequest httpRequest = (HttpServletRequest) request;
        final HttpServletResponse httpResponse = (HttpServletResponse) response;

        if (httpRequest.getRequestURI().equals(getMonitoringUrl(httpRequest))) {
            new ContextualHttpServletRequest((HttpServletRequest) request) {
                @Override
                public void process() throws Exception {
                    ZanataIdentity identity =
                            ServiceLocator.instance().getInstance(
                                    ZanataIdentity.class);
View Full Code Here

    @Override
    public Result execute(final Action<?> action) throws Exception {
        final Result[] result = { null };
        try {
            new ContextualHttpServletRequest(getThreadLocalRequest()) {
                @Override
                public void process() throws Exception {
                    SeamDispatch dispatch = ServiceLocator.instance()
                            .getInstance(SeamDispatch.class);
                    result[0] = dispatch.execute(action);
View Full Code Here

    }

    @Override
    public void rollback(final Action<Result> action, final Result result)
            throws Exception {
        new ContextualHttpServletRequest(getThreadLocalRequest()) {
            @Override
            public void process() throws Exception {
                SeamDispatch dispatch = ServiceLocator.instance()
                        .getInstance(SeamDispatch.class);
                dispatch.rollback(action, result);
View Full Code Here

   }

   private void authenticate(HttpServletRequest request, final AuthenticatedUser user) throws ServletException,
         IOException
   {
      new ContextualHttpServletRequest(request)
      {
         @Override
         public void process() throws ServletException, IOException, LoginException
         {
            SamlIdentity identity = (SamlIdentity) Identity.instance();
View Full Code Here

      {
         // Store the request & response objects in thread-local storage.
         perThreadRequest.set(request);
         perThreadResponse.set(response);

         new ContextualHttpServletRequest(request) {
            @Override
            public void process() throws Exception
            {

               try
View Full Code Here

      final RequestContext ctx = unmarshalContext(env);

      // TODO - we really want to extract the page context from our request
      RemotingLifecycle.restorePageContext();

      new ContextualHttpServletRequest(request)
      {
         @Override
         public void process() throws Exception
         {
            // Extract the calls from the request           
View Full Code Here

   * @throws Exception
   */
  public void handle(final HttpServletRequest request, final HttpServletResponse response)
      throws Exception
  {
     new ContextualHttpServletRequest(request)
     {
        @Override
        public void process() throws Exception
        {
           ServletContexts.instance().setRequest(request);
View Full Code Here

    @Override
    protected void doGet(final HttpServletRequest request, final HttpServletResponse response)
        throws ServletException, IOException
    {
        new ContextualHttpServletRequest(request)
        {
            @Override
            public void process() throws ServletException, IOException
            {
               doWork(request, response);
View Full Code Here

TOP

Related Classes of org.jboss.seam.servlet.ContextualHttpServletRequest

Copyright © 2018 www.massapicom. 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.