Package javax.xml.ws.handler

Examples of javax.xml.ws.handler.Handler


   {
      log.debug("close");
      MessageContextJAXWS context = (MessageContextJAXWS)msgContext;
      for (int index = 1; index <= executedHandlers.size(); index++)
      {
         Handler currHandler = executedHandlers.get(executedHandlers.size() - index);
         try
         {
            context.setCurrentScope(Scope.HANDLER);
            currHandler.close(msgContext);
         }
         finally
         {
            context.setCurrentScope(Scope.APPLICATION);
         }
View Full Code Here


      if (handlers.size() > 0)
      {
         log.debug("Enter: handle" + (isOutbound ? "Out" : "In ") + "BoundMessage");

         int index = getFirstHandler();
         Handler currHandler = null;
         try
         {
            String lastMessageTrace = null;
            while (doNext && index >= 0)
            {
View Full Code Here

            }
         }

         int index = getFirstHandler();
        
         Handler currHandler = null;
         try
         {
            String lastMessageTrace = null;
            while (doNext && index >= 0)
            {
View Full Code Here

                Class<? extends Handler> handlerClass = Class.forName(
                        trimString(ht.getHandlerClass()
                                .getStringValue()), true, classLoader)
                        .asSubclass(Handler.class);

                Handler handler = handlerClass.newInstance();
                log.debug("adding handler to chain: " + handler);
                handlerChain.add(handler);
            } catch (Exception e) {
                throw new WebServiceException("Failed to instantiate handler", e);
            }
View Full Code Here

      try
      {
         // Load the handler class using the deployments top level CL
         Class hClass = classLoader.loadClass(className);
         Handler handler = (Handler)hClass.newInstance();

         if (handler instanceof GenericHandler)
            ((GenericHandler)handler).setHandlerName(handlerName);

         if (handler instanceof GenericSOAPHandler)
View Full Code Here

                    handler.getPostConstruct(),
                    handler.getPreDestroy(),
                    context);
                processor.createInstance();
                processor.postConstruct();
                final Handler handlerInstance = processor.getInstance();

                handlers.add(handlerInstance);
                handlerInstances.add(processor);
            } catch (Exception e) {
                throw new WebServiceException("Failed to instantiate handler", e);
View Full Code Here

/* 121 */     if (this.handlers.size() > 0)
/*     */     {
/* 123 */       log.debug("Enter: handle" + (this.isOutbound.booleanValue() ? "Out" : "In ") + "BoundMessage");
/*     */
/* 125 */       int index = getFirstHandler();
/* 126 */       Handler currHandler = null;
/*     */       try
/*     */       {
/* 129 */         String lastMessageTrace = null;
/* 130 */         while ((doNext) && (index >= 0))
/*     */         {
View Full Code Here

/*     */         }
/*     */       }
/*     */
/* 202 */       int index = getFirstHandler();
/*     */
/* 204 */       Handler currHandler = null;
/*     */       try
/*     */       {
/* 207 */         String lastMessageTrace = null;
/* 208 */         while ((doNext) && (index >= 0))
/*     */         {
View Full Code Here

/* 141 */     String className = jaxwsMetaData.getHandlerClassName();
/* 142 */     Set soapHeaders = jaxwsMetaData.getSoapHeaders();
/*     */     try
/*     */     {
/* 147 */       Class hClass = classLoader.loadClass(className);
/* 148 */       Handler handler = (Handler)hClass.newInstance();
/*     */
/* 150 */       if ((handler instanceof GenericHandler)) {
/* 151 */         ((GenericHandler)handler).setHandlerName(handlerName);
/*     */       }
/* 153 */       if ((handler instanceof GenericSOAPHandler)) {
View Full Code Here

    }
    
    private List<Handler> processConfiguredHandlers(List<WebServiceHandler> handlersList, Set<String> roles) {
        List<Handler> handlerChain = new ArrayList<Handler>();
        for(WebServiceHandler h : handlersList) {
            Handler handler = null;

            ClassLoader loader = Thread.currentThread().getContextClassLoader();
            // Get Handler Class instance
            Class handlerClass;
            try {
View Full Code Here

TOP

Related Classes of javax.xml.ws.handler.Handler

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.