Package org.gatein.wsrp.api.extensions

Examples of org.gatein.wsrp.api.extensions.InvocationHandlerDelegate


         // get the portlet container invocation from the RequestProcessor
         final PortletInvocation invocation = requestProcessor.getInvocation();

         // let the producer invocation handler delegate process the invocation before we perform the actual invocation
         final InvocationHandlerDelegate delegate = InvocationHandlerDelegate.producerDelegate();
         if (delegate != null)
         {
            delegate.processInvocation(invocation);
         }

         // get the portlet invoker to perform the invocation
         response = producer.getPortletInvoker().invoke(invocation);

         // let the producer invocation handler delegate get a chance to process the response
         if (delegate != null)
         {
            delegate.processInvocationResponse(response, invocation);
         }

         log.debug(invocationType + " done");

      }
View Full Code Here


      {
         throw new InvocationException("Unknown invocation type: " + invocation);
      }

      // allow consumer delegate to pre-process the invocation before we actually invoke the handler
      final InvocationHandlerDelegate delegate = InvocationHandlerDelegate.consumerDelegate();
      if (delegate != null)
      {
         delegate.processInvocation(invocation);
      }

      try
      {
         // invoke the handler
         final PortletInvocationResponse response = handler.handle(invocation);

         // and let the consumer delegate process the response
         if (delegate != null)
         {
            delegate.processInvocationResponse(response, invocation);
         }

         return response;
      }
      finally
View Full Code Here

      Registration registration = producer.getRegistrationOrFailIfInvalid(registrationContext);
      RegistrationLocal.setRegistration(registration);
      final PortletInvocation invocation = requestProcessor.getInvocation();

      final InvocationHandlerDelegate delegate = InvocationHandlerDelegate.producerDelegate();
      if (delegate != null)
      {
         delegate.processInvocation(invocation);
      }

      final PortletInvocationResponse response = producer.getPortletInvoker().invoke(invocation);

      if (delegate != null)
      {
         delegate.processInvocationResponse(response, invocation);
      }

      log.debug(invocationType + " done");
      return response;
   }
View Full Code Here

      else
      {
         throw new InvocationException("Unknown invocation type: " + invocation);
      }

      final InvocationHandlerDelegate delegate = InvocationHandlerDelegate.consumerDelegate();
      if (delegate != null)
      {
         delegate.processInvocation(invocation);
      }

      try
      {
         final PortletInvocationResponse response = handler.handle(invocation);

         if (delegate != null)
         {
            delegate.processInvocationResponse(response, invocation);
         }

         return response;
      }
      finally
View Full Code Here

TOP

Related Classes of org.gatein.wsrp.api.extensions.InvocationHandlerDelegate

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.