Package javax.xml.rpc.handler

Examples of javax.xml.rpc.handler.HandlerInfo


            QName[] headerArr = new QName[headers.size()];
            headers.toArray(headerArr);

            Class hClass = jaxrpcMetaData.getHandlerClass();
            hConfig.put(HandlerType.class.getName(), jaxrpcMetaData.getHandlerType());
            HandlerInfo info = new HandlerInfo(hClass, hConfig, headerArr);

            log.debug("Adding client side handler to endpoint '" + portName + "': " + info);
            handlerInfos.add(info);
         }
View Full Code Here


         QName[] headerArr = new QName[headers.size()];
         headers.toArray(headerArr);

         Class hClass = jaxrpcMetaData.getHandlerClass();
         hConfig.put(HandlerType.class.getName(), jaxrpcMetaData.getHandlerType());
         HandlerInfo info = new HandlerInfo(hClass, hConfig, headerArr);

         if (log.isDebugEnabled())
            log.debug("Adding server side handler to service '" + sepMetaData.getPortName() + "': " + info);
         hInfos.add(info);
      }
View Full Code Here

                Map handlerMap = handlerInfo.getHandlerMap();
                QName[] headers = handlerInfo.getHeaders();
               
                if (handlerClass != null) {
                    HandlerInfo hi =
                        new HandlerInfo(handlerClass, handlerMap, headers);
                    infoList.add(hi);
                }
            }
        }
        _hiChainFactory = new HandlerInfoChainFactory(infoList);
View Full Code Here

            add(newHandler(getHandlerInfo(i)));
    }

    public void addNewHandler(String className, Map config) {
        try {
            HandlerInfo handlerInfo = new HandlerInfo(ClassUtils.forName(className),
                                                      config,
                                                      null);
            handlerInfos.add(handlerInfo);
            add(newHandler(handlerInfo));
        } catch (Exception ex) {
View Full Code Here

        List<HandlerInfo> handlerInfos = new ArrayList<HandlerInfo>(handlers.size());
        for (HandlerData handler : handlers) {
            Class<?> handlerClass = handler.getHandlerClass();
            Map initParams = new HashMap(handler.getInitParams());
            QName[] headers = handler.getSoapHeaders().toArray(new QName[handler.getSoapHeaders().size()]);
            HandlerInfo handlerInfo = new HandlerInfo(handlerClass, initParams, headers);
            handlerInfos.add(handlerInfo);
        }

        return handlerInfos;
    }
View Full Code Here

    @SuppressWarnings({"unchecked"})
    public HandlerChainImpl(List<HandlerInfo> handlerInfos, String[] roles) {
        this.roles = roles;
        for (int i = 0; i < handlerInfos.size(); i++) {
            HandlerInfo handlerInfo = handlerInfos.get(i);
            try {
                Handler handler = (Handler) handlerInfo.getHandlerClass().newInstance();
                handler.init(handlerInfo);
                add(handler);
            } catch (Exception e) {
                throw new JAXRPCException("Unable to initialize handler class: " + handlerInfo.getHandlerClass().getName(), e);
            }
        }
    }
View Full Code Here

     * simple.
     *
     * @throws Exception
     */
    protected void setUp() throws Exception {
        handlerInfo0 = new HandlerInfo();
        handlerInfo0.setHandlerClass(AAAHandler.class);
        handlerInfo1 = new HandlerInfo();
        handlerInfo1.setHandlerClass(AAAHandler.class);
        handlerInfo2 = new HandlerInfo();
        handlerInfo2.setHandlerClass(AAAHandler.class);
        handler0Config = new HashMap();
        handler1Config = new HashMap();
        handler2Config = new HashMap();
        handlerInfo0.setHandlerConfig(handler0Config);
View Full Code Here

        }
    }

    public void addNewHandler(String className, Map config) {
        try {
            HandlerInfo handlerInfo = new HandlerInfo(ClassUtils.forName(className),
                    config,
                    null);
            handlerInfos.add(handlerInfo);
            add(newHandler(handlerInfo));
        } catch (Exception ex) {
View Full Code Here

    if (runJAXRPCHandler) {
      HandlerRegistry hr = service.getHandlerRegistry();
      java.util.List lhi = new java.util.Vector();
      test.wsdl.jaxrpchandler.ClientHandler mh = new test.wsdl.jaxrpchandler.ClientHandler();
      Class myhandler = mh.getClass();
      HandlerInfo hi = new HandlerInfo(myhandler,null,null);
      lhi.add(hi);
      hr.setHandlerChain(new QName("","jaxrpchandler"),lhi);
    }

    float res;
View Full Code Here

    if (runJAXRPCHandler) {
      HandlerRegistry hr = service.getHandlerRegistry();
      java.util.List lhi = new java.util.Vector();
      test.wsdl.jaxrpchandler.ClientHandler mh = new test.wsdl.jaxrpchandler.ClientHandler();
      Class myhandler = mh.getClass();
      HandlerInfo hi = new HandlerInfo(myhandler,null,null);
      lhi.add(hi);
      hr.setHandlerChain(new QName("","jaxrpchandler"),lhi);
    }

    float res;
View Full Code Here

TOP

Related Classes of javax.xml.rpc.handler.HandlerInfo

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.