Package org.apache.axis

Examples of org.apache.axis.Handler


    public Handler newProviderInstance(WSDDService service,
                                       EngineConfiguration registry)
        throws Exception
    {
        Handler provider = new org.apache.axis.providers.BSFProvider();
       
        String option = service.getParameter("language");

        if (!option.equals("")) {
            provider.setOption(BSFProvider.OPTION_LANGUAGE, option);
        }

        option = service.getParameter("src");

        if (!option.equals("")) {
            provider.setOption(BSFProvider.OPTION_SRC, option);
        }

        // !!! What to do here?
        //option = XMLUtils.getInnerXMLString(prov);

        if (!option.equals("")) {
            provider.setOption(BSFProvider.OPTION_SCRIPT, option);
        }

        return provider;
    }
View Full Code Here


        if (user == null)
            throw new AxisFault("Server.NoUser",
                    Messages.getMessage("needUser00"), null, null);

        String userID = user.getName();
        Handler serviceHandler = msgContext.getService();

        if (serviceHandler == null)
            throw new AxisFault(Messages.getMessage("needService00"));

        String serviceName = serviceHandler.getName();

        String allowedRoles = (String)serviceHandler.getOption("allowedRoles");
        if (allowedRoles == null) {
            if (allowByDefault) {
                if (log.isDebugEnabled()) {
                    log.debug(Messages.getMessage( "noRoles00"));
                }
View Full Code Here

     * find a suitable item
     */
    Handler makeNewInstance(DeploymentRegistry registry) throws Exception {
        try {
            Class c = getTypeClass(getType());
            Handler h = (Handler)createInstance(c);
            h.setOptions(getParametersTable());
            return h;
        } catch (ClassNotFoundException e) {
            String type = getType();
            Handler h = registry.getDeployedItem(type);
            if (h != null) {
                WSDDParameter[] parms = getParameters();
                for (int n = 0; n < parms.length; n++) {
                    WSDDParameter parm = parms[n];
                    h.addOption(parm.getName(), parm.getValue());
                }
                return h;
            }
            throw e;
        } catch (Exception e) {
View Full Code Here

    public Handler newInstance(DeploymentRegistry registry) throws Exception {
        return newInstance(null, registry);
    }
   
    public Handler newInstance(Handler pivot, DeploymentRegistry registry) throws Exception {
        Handler h = super.makeNewInstance(registry);
        TargetedChain c = (TargetedChain)h;
        c.setRequestHandler(getRequestFlow().newInstance(registry));
        c.setPivotHandler(pivot);
        c.setResponseHandler(getResponseFlow().newInstance(registry));
        return c;
View Full Code Here

     */
    public Document ProxyService(MessageContext msgContext)
        throws AxisFault
    {
        // Look in the message context for our service
        Handler self = msgContext.getServiceHandler();
       
        // what is our target URL?
        String dest = (String)self.getOption("URL");
       
        // use the server's client engine in case anything has been deployed to it
        ServiceClient client = new ServiceClient(msgContext.getAxisEngine().getClientEngine());
       
        // add TCP for proxy testing
View Full Code Here

        return type;
    }
  
    public Handler newInstance(DeploymentRegistry registry) throws Exception {
        try {
            Handler h = super.makeNewInstance(registry);
            Chain c = (Chain)h;
            WSDDHandler[] handlers = getHandlers();
            for (int n = 0; n < handlers.length; n++) {
                c.addHandler(handlers[n].newInstance(registry));
            }
View Full Code Here

    /**
     * Creates a new instance of this Chain
     */
    public Handler newInstance(DeploymentRegistry registry) throws Exception {
        try {
            Handler h = super.newInstance(registry);
            Chain c = (Chain)h;
            WSDDHandler[] handlers = getHandlers();
            for (int n = 0; n < handlers.length; n++) {
                c.addHandler(handlers[n].newInstance(registry));
            }
View Full Code Here

        return null;
    }
  
    public Handler newInstance(DeploymentRegistry registry) throws Exception {
        try {
            Handler h = super.makeNewInstance(registry);
            TargetedChain c = (TargetedChain)h;
            WSDDFlow request = getRequestFlow();
            WSDDFlow response = getResponseFlow();
            if (request != null)
                c.setRequestHandler(request.newInstance(registry));
View Full Code Here

    }
   
    public Handler getHandler()
    {
        try {
            Handler handler = (Handler)_class.newInstance();
            handler.setOptions(_options);
            Debug.Print(1, "FactorySupplier returning new instance of " + _class.getName());
            return handler;
        } catch (IllegalAccessException e1) {
            e1.printStackTrace();
        } catch (InstantiationException e2) {
View Full Code Here

                                JavaClass jc,
                   
                                Object obj)
        throws Exception
    {
        Handler targetService = msgContext.getServiceHandler();
       
        // is this service a body-only service?
        // if true (the default), the servic3e expects two args,
        // a MessageContext and a Document which is the contents of the first body element.
        // if false, the service expects just one MessageContext argument,
        // and looks at the entire request envelope in the MessageContext
        // (hence it's a "FullMessageService").
        boolean bodyOnlyService = true;
        if (targetService.getOption("FullMessageService") != null) {
            bodyOnlyService = false;
        }
       
        Class[]         argClasses;
        Object[]        argObjects;
View Full Code Here

TOP

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