Package org.apache.axis2.engine

Examples of org.apache.axis2.engine.Handler


  public static String getExecutionChainString(ArrayList executionChain) {
    Iterator iter = executionChain.iterator();

    String executionChainStr = "";
    while (iter.hasNext()) {
      Handler handler = (Handler) iter.next();
      String name = handler.getName();
      executionChainStr = executionChainStr + Sandesha2Constants.EXECUTIN_CHAIN_SEPERATOR + name;
    }

    return executionChainStr;
  }
View Full Code Here


    ArrayList executionChain = message.getExecutionChain();
    ArrayList retransmittablePhaseNames = getRetransmittablePhaseNameList();
    ArrayList retransmittablePhases = new ArrayList ();
   
    for (Iterator it=executionChain.iterator();it.hasNext();) {
      Handler handler = (Handler) it.next();
     
      if (retransmittablePhaseNames.contains(handler.getName())) {
        retransmittablePhases.add(handler);
       
        it.remove();
      }
    }
View Full Code Here

  public static String getExecutionChainString(ArrayList executionChain) {
    Iterator iter = executionChain.iterator();

    String executionChainStr = "";
    while (iter.hasNext()) {
      Handler handler = (Handler) iter.next();
      String name = handler.getName();
      executionChainStr = executionChainStr + Sandesha2Constants.EXECUTIN_CHAIN_SEPERATOR + name;
    }

    return executionChainStr;
  }
View Full Code Here

    ArrayList executionChain = message.getExecutionChain();
    ArrayList retransmittablePhaseNames = getRetransmittablePhaseNameList();
    ArrayList retransmittablePhases = new ArrayList ();
   
    for (Iterator it=executionChain.iterator();it.hasNext();) {
      Handler handler = (Handler) it.next();
     
      if (retransmittablePhaseNames.contains(handler.getName())) {
        retransmittablePhases.add(handler);
       
        it.remove();
      }
    }
View Full Code Here

  public static String getExecutionChainString(ArrayList executionChain) {
    Iterator iter = executionChain.iterator();

    String executionChainStr = "";
    while (iter.hasNext()) {
      Handler handler = (Handler) iter.next();
      String name = handler.getName();
      executionChainStr = executionChainStr + Sandesha2Constants.EXECUTIN_CHAIN_SEPERATOR + name;
    }

    return executionChainStr;
  }
View Full Code Here

    ArrayList executionChain = message.getExecutionChain();
    ArrayList retransmittablePhaseNames = getRetransmittablePhaseNameList();
    ArrayList retransmittablePhases = new ArrayList ();
   
    for (Iterator it=executionChain.iterator();it.hasNext();) {
      Handler handler = (Handler) it.next();
     
      if (retransmittablePhaseNames.contains(handler.getName())) {
        retransmittablePhases.add(handler);
       
        it.remove();
      }
    }
View Full Code Here

  public static String getExecutionChainString(ArrayList<Handler> executionChain) {
    Iterator<Handler> iter = executionChain.iterator();

    String executionChainStr = "";
    while (iter.hasNext()) {
      Handler handler = (Handler) iter.next();
      String name = handler.getName();
      executionChainStr = executionChainStr + Sandesha2Constants.EXECUTIN_CHAIN_SEPERATOR + name;
    }

    return executionChainStr;
  }
View Full Code Here

    List<Handler> executionChain = message.getExecutionChain();
    ArrayList<Handler> retransmittablePhases = new ArrayList<Handler>();
   
    int executionChainLength = executionChain.size();
    for(int i=0;i<executionChainLength;i++){
      Handler handler = executionChain.get(i);
      if("Security".equals(handler.getName())){
        retransmittablePhases.add(handler);
      }
    }
    executionChain.removeAll(retransmittablePhases);
       
View Full Code Here

            throws AxisFault {
        int count = flow.getHandlerCount();

        for (int j = 0; j < count; j++) {
            HandlerDescription handlermd = flow.getHandler(j);
            Handler handler;

            final Class handlerClass = getHandlerClass(
                    handlermd.getClassName(), clsLoader);

            try {
                handler = (Handler)org.apache.axis2.java.security.AccessController
                        .doPrivileged(new PrivilegedExceptionAction() {
                            public Object run() throws InstantiationException,
                                    IllegalAccessException {
                                return handlerClass.newInstance();
                            }
                        });
                handler.init(handlermd);
                handlermd.setHandler(handler);
            } catch (PrivilegedActionException e) {
                throw AxisFault.makeFault(e);
            }
        }
View Full Code Here

    }

    public static boolean loadHandler(ClassLoader loader1,
                                      HandlerDescription desc) throws DeploymentException {
        String handlername = desc.getClassName();
        Handler handler;
        try {
            final Class handlerClass = Loader.loadClass(loader1, handlername);
            Package aPackage = (Package)org.apache.axis2.java.security.AccessController
                    .doPrivileged(new PrivilegedAction() {
                        public Object run() {
                            return handlerClass.getPackage();
                        }
                    });
            if (aPackage != null
                && aPackage.getName().equals("org.apache.axis2.engine")) {
                String name = handlerClass.getName();
                log.warn("Dispatcher " + name + " is now deprecated.");
                if (name.indexOf("InstanceDispatcher") != -1) {
                    log.warn("Please remove the entry for "
                             + handlerClass.getName() + "from axis2.xml");
                } else {
                    log.warn(
                            "Please edit axis2.xml and replace with the same class in org.apache.axis2.dispatchers package");
                }
            }
            handler = (Handler)org.apache.axis2.java.security.AccessController
                    .doPrivileged(new PrivilegedExceptionAction() {
                        public Object run() throws InstantiationException,
                                IllegalAccessException {
                            return handlerClass.newInstance();
                        }
                    });
            handler.init(desc);
            desc.setHandler(handler);
        } catch (ClassNotFoundException e) {
            if (handlername.indexOf("jaxws") > 0) {
                log.warn("[JAXWS] - unable to load " + handlername);
                return false;
View Full Code Here

TOP

Related Classes of org.apache.axis2.engine.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.