Package org.jboss.wsf.spi.invocation

Examples of org.jboss.wsf.spi.invocation.InvocationContext


   {
      log.debug("Invoke: " + epInv.getJavaMethod().getName());

      try
      {
         InvocationContext invCtx = epInv.getInvocationContext();
         Object targetBean = invCtx.getTargetBean();
         if (targetBean == null)
         {
            try
            {
               Class epImpl = ep.getTargetBeanClass();
               targetBean = epImpl.newInstance();
               invCtx.setTargetBean(targetBean);
            }
            catch (Exception ex)
            {
               throw new IllegalStateException("Canot get target bean instance", ex);
            }
View Full Code Here


   {
      log.debug("Invoke: " + epInv.getJavaMethod().getName());

      try
      {
         InvocationContext invCtx = epInv.getInvocationContext();
         Object targetBean = invCtx.getTargetBean();
         if (targetBean == null)
         {
            try
            {
               Class epImpl = ep.getTargetBeanClass();
               targetBean = epImpl.newInstance();
               invCtx.setTargetBean(targetBean);
            }
            catch (Exception ex)
            {
               throw new IllegalStateException("Canot get target bean instance", ex);
            }
View Full Code Here

   protected void prepareForInvocation(final InterceptorContext context, final Invocation wsInvocation) {
       context.setContextData(getWebServiceContext(wsInvocation).getMessageContext());
   }

   private static WebServiceContext getWebServiceContext(final Invocation invocation) {
      final InvocationContext invocationContext = invocation.getInvocationContext();
      return invocationContext.getAttachment(WebServiceContext.class);
   }
View Full Code Here

         RequestHandler reqHandler = endpoint.getRequestHandler();

         try
         {
            InvocationContext invContext = new InvocationContext();
            invContext.setTargetBean(this);

            reqHandler.handleRequest(endpoint, inputStream, outStream, invContext);
         }
         catch (Exception ex)
         {
View Full Code Here

    *
    * @param invocation current invocation
    * @return web service context or null if not available
    */
   private WebServiceContext getWebServiceContext(final Invocation invocation) {
      final InvocationContext invocationContext = invocation.getInvocationContext();

      return new WebServiceContextAdapter(invocationContext.getAttachment(WebServiceContext.class));
   }
View Full Code Here

      RequestHandler reqHandler = endpoint.getRequestHandler();

      try
      {
         InvocationContext invContext = new InvocationContext();
         invContext.setTargetBean(this);

         reqHandler.handleRequest(endpoint, inputStream, outStream, invContext);
      }
      catch (Exception ex)
      {
View Full Code Here

         RequestHandler reqHandler = endpoint.getRequestHandler();

         try
         {
            InvocationContext invContext = new InvocationContext();
            invContext.setTargetBean(this);

            reqHandler.handleRequest(endpoint, inputStream, outStream, invContext);
         }
         catch (Exception ex)
         {
View Full Code Here

    *
    * @param invocation current invocation
    * @return web service context or null if not available
    */
   private WebServiceContext getWebServiceContext(final Invocation invocation) {
      final InvocationContext invocationContext = invocation.getInvocationContext();

      return invocationContext.getAttachment(WebServiceContext.class);
   }
View Full Code Here

         RequestHandler reqHandler = endpoint.getRequestHandler();

         try
         {
            InvocationContext invContext = new InvocationContext();
            invContext.setTargetBean(this);

            reqHandler.handleRequest(endpoint, inputStream, outStream, invContext);
         }
         catch (Exception ex)
         {
View Full Code Here

   {
      log.debug("Invoke: " + epInv.getJavaMethod().getName());

      try
      {
         InvocationContext invContext = epInv.getInvocationContext();
         Object targetBean = invContext.getTargetBean();
         Class implClass = targetBean.getClass();
         Method seiMethod = epInv.getJavaMethod();
         Method implMethod = getImplMethod(implClass, seiMethod);

         Object[] args = epInv.getArgs();
View Full Code Here

TOP

Related Classes of org.jboss.wsf.spi.invocation.InvocationContext

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.