Examples of HandlerInfoChainFactory


Examples of org.apache.axis.handlers.HandlerInfoChainFactory

        }
    }

    protected void invokeJAXRPCHandlers(MessageContext context){
  java.util.List chain = null;
  HandlerInfoChainFactory hiChainFactory = null;
  boolean clientSpecified = false;

        Service service
            = (Service)context.getProperty(Call.WSDL_SERVICE);
        if(service == null) {
            return;
        }

        QName portName = (QName) context.getProperty(Call.WSDL_PORT_NAME);
        if(portName == null) {
            return;
        }

        javax.xml.rpc.handler.HandlerRegistry registry;
        registry = service.getHandlerRegistry();
        if(registry != null) {
      chain = registry.getHandlerChain(portName);
      if ((chain != null) && (!chain.isEmpty())) {
    hiChainFactory = new HandlerInfoChainFactory(chain);
    clientSpecified = true;
      }
        }

  // Otherwise, use the container support
  if (!clientSpecified) {
      SOAPService soapService = context.getService();
      if (soapService != null) {
    // A client configuration exists for this service.  Check
    // to see if there is a HandlerInfoChain configured on it.
    hiChainFactory = (HandlerInfoChainFactory)
            soapService.getOption(Constants.ATTR_HANDLERINFOCHAIN);
      }
  }

  if (hiChainFactory == null) {
      return;
  }
  HandlerChainImpl impl = (HandlerChainImpl) hiChainFactory.createHandlerChain();

        if(!context.getPastPivot()) {
            impl.handleRequest(context);
        }
        else {
View Full Code Here

Examples of org.apache.axis.handlers.HandlerInfoChainFactory

    public void setSendType(int sendType) {
        this.sendType = sendType;
    }

  public void invoke(MessageContext msgContext) throws AxisFault {
    HandlerInfoChainFactory handlerFactory = (HandlerInfoChainFactory) this.getOption(Constants.ATTR_HANDLERINFOCHAIN);
    HandlerChainImpl handlerImpl = null;
    if (handlerFactory != null) handlerImpl = (HandlerChainImpl) handlerFactory.createHandlerChain();
    if (handlerImpl != null) handlerImpl.handleRequest(msgContext);

    super.invoke(msgContext);

    if ( handlerImpl != null) {
View Full Code Here

Examples of org.apache.axis.handlers.HandlerInfoChainFactory

            service.setOption(AxisEngine.PROP_SEND_XSI, Boolean.FALSE);
        }

  // Set handlerInfoChain
  if (_wsddHIchain != null) {
            HandlerInfoChainFactory hiChainFactory = _wsddHIchain.getHandlerChainFactory();

      service.setOption(Constants.ATTR_HANDLERINFOCHAIN, hiChainFactory);
  }

        AxisEngine.normaliseOptions(service);
View Full Code Here

Examples of org.apache.axis.handlers.HandlerInfoChainFactory

        SOAPService service = new SOAPService(null, provider, null);
        service.setServiceDescription(serviceDesc);
        service.setOption("className", servletClassName);

        HandlerInfoChainFactory handlerInfoChainFactory = new HandlerInfoChainFactory(serviceInfo.getHandlerInfos());
        service.setOption(org.apache.axis.Constants.ATTR_HANDLERINFOCHAIN, handlerInfoChainFactory);

        URI location;
        try {
            location = new URI(serviceDesc.getEndpointURL());
View Full Code Here

Examples of org.apache.axis.handlers.HandlerInfoChainFactory

            service.setOption(AxisEngine.PROP_SEND_XSI, Boolean.FALSE);
        }

  // Set handlerInfoChain
  if (_wsddHIchain != null) {
            HandlerInfoChainFactory hiChainFactory = _wsddHIchain.getHandlerChainFactory();

      service.setOption(Constants.ATTR_HANDLERINFOCHAIN, hiChainFactory);
  }

        AxisEngine.normaliseOptions(service);
View Full Code Here

Examples of org.apache.axis.handlers.HandlerInfoChainFactory

                        new HandlerInfo(handlerClass, handlerMap, headers);
                    infoList.add(hi);
                }
            }
        }
        _hiChainFactory = new HandlerInfoChainFactory(infoList);
       
        elements = getChildElements(e,  ELEM_WSDD_JAXRPC_ROLE);
        if (elements.length != 0) {
            ArrayList roleList = new ArrayList();
            for (int i = 0; i < elements.length; i++) {
View Full Code Here

Examples of org.apache.axis.handlers.HandlerInfoChainFactory

    public void setSendType(int sendType) {
        this.sendType = sendType;
    }

  public void invoke(MessageContext msgContext) throws AxisFault {
    HandlerInfoChainFactory handlerFactory = (HandlerInfoChainFactory) this.getOption(Constants.ATTR_HANDLERINFOCHAIN);
    HandlerChainImpl handlerImpl = null;
    if (handlerFactory != null) handlerImpl = (HandlerChainImpl) handlerFactory.createHandlerChain();
    if (handlerImpl != null) handlerImpl.handleRequest(msgContext);

    super.invoke(msgContext);

    if ( handlerImpl != null) {
View Full Code Here

Examples of org.apache.axis.handlers.HandlerInfoChainFactory

        }
    }

    protected void invokeJAXRPCHandlers(MessageContext context){
  java.util.List chain = null;
  HandlerInfoChainFactory hiChainFactory = null;
  boolean clientSpecified = false;

        Service service
            = (Service)context.getProperty(Call.WSDL_SERVICE);
        if(service == null) {
            return;
        }

        QName portName = (QName) context.getProperty(Call.WSDL_PORT_NAME);
        if(portName == null) {
            return;
        }

        javax.xml.rpc.handler.HandlerRegistry registry;
        registry = service.getHandlerRegistry();
        if(registry != null) {
      chain = registry.getHandlerChain(portName);
      if ((chain != null) && (!chain.isEmpty())) {
    hiChainFactory = new HandlerInfoChainFactory(chain);
    clientSpecified = true;
      }
        }

  // Otherwise, use the container support
  if (!clientSpecified) {
      SOAPService soapService = context.getService();
      if (soapService != null) {
    // A client configuration exists for this service.  Check
    // to see if there is a HandlerInfoChain configured on it.
    hiChainFactory = (HandlerInfoChainFactory)
            soapService.getOption(Constants.ATTR_HANDLERINFOCHAIN);
      }
  }

  if (hiChainFactory == null) {
      return;
  }
  HandlerChainImpl impl = (HandlerChainImpl) hiChainFactory.createHandlerChain();

        if(!context.getPastPivot()) {
            impl.handleRequest(context);
        }
        else {
View Full Code Here

Examples of org.apache.axis.handlers.HandlerInfoChainFactory

        SOAPService service = new SOAPService(null, provider, null);
        service.setServiceDescription(serviceDesc);
        service.setOption("className", servletClassName);

        HandlerInfoChainFactory handlerInfoChainFactory = new HandlerInfoChainFactory(serviceInfo.getHandlerInfos());
        service.setOption(org.apache.axis.Constants.ATTR_HANDLERINFOCHAIN, handlerInfoChainFactory);

        URI location;
        try {
            location = new URI(serviceDesc.getEndpointURL());
View Full Code Here

Examples of org.apache.axis.handlers.HandlerInfoChainFactory

        // Set class name
        service.setOption("className", target.getName());

        // Add Handler Chain
        List<HandlerInfo> handlerInfos = createHandlerInfos(port.getHandlerChains());
        HandlerInfoChainFactory handlerInfoChainFactory = new HandlerInfoChainFactory(handlerInfos);
        service.setOption(org.apache.axis.Constants.ATTR_HANDLERINFOCHAIN, handlerInfoChainFactory);

        // Create container
        AxisWsContainer container = new AxisWsContainer(port.getWsdlUrl(), service, null, classLoader);
        wsContainers.put(serviceId, container);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.