Package org.apache.axis2.rmi

Examples of org.apache.axis2.rmi.Configurator


    protected Configurator configurator;
    protected Map processedMap;
    protected Map schemaMap;

    protected void setUp() throws Exception {
        this.configurator = new Configurator();
        this.processedMap = new HashMap();
        this.schemaMap = new HashMap();
        this.javaObjectSerializer = new JavaObjectSerializer(this.processedMap,this.configurator,this.schemaMap);
        this.xmlStreamParser = new XmlStreamParser(this.processedMap,this.configurator,this.schemaMap);
    }
View Full Code Here


    protected void setUp() throws Exception {
        this.serviceClass = Service3.class;
        this.serviceObject = new Service3();

        this.configurator = new Configurator();
        this.configurator.addExtension(ChildClass.class);

        this.processedMap = new HashMap();
        this.schemaMap = new HashMap();
View Full Code Here

public class CustomMappingServiceTest extends TestCase {

    public void testGenerateSchema() {

        Configurator configurator = new Configurator();

        ClassInfo classInfo = new ClassInfo(ComplexType3.class);
        FieldInfo fieldInfo = new FieldInfo("param1","xmlparam1",false);
        classInfo.addFieldInfo(fieldInfo);
        configurator.addClassInfo(classInfo);

        Service service = new Service(CustomMappingService.class, configurator);
        try {
            service.populateMetaData();
            service.generateSchema();
View Full Code Here

public class BasicServiceTest extends TestCase {

    public void testPopulateMetaData(){

        try {
            Configurator configurator = new Configurator();
            Service service = new Service(BasicService.class,configurator);
            service.populateMetaData();
            System.out.println("OK");
        } catch (MetaDataPopulateException e) {
            fail();
View Full Code Here

        }

    }

    public void testGenerateSchema(){
        Configurator configurator = new Configurator();
        Service service = new Service(BasicService.class,configurator);
        try {
            service.populateMetaData();
            service.generateSchema();
            WSDL11DefinitionBuilder definitionBuilder = new WSDL11DefinitionBuilder(service);
View Full Code Here

        }
    }

    public RMIClient(Class serviceClass,
                     String epr) throws AxisFault {
        this(serviceClass, new Configurator(), epr);
    }
View Full Code Here

    }

    public static Object createProxy(Class interfaceClass,
                                     String epr) throws AxisFault {
        return createProxy(interfaceClass,new Configurator(),epr);
    }
View Full Code Here

            String charSetEncoding = BuilderUtil.getCharSetEncoding(contentTypeStr);
            msgContext.setProperty(
                    Constants.Configuration.CHARACTER_SET_ENCODING, charSetEncoding);
            boolean eprFound = false;
            if (endpointsConfiguration != null) {
                URLEndpoint epr = endpointsConfiguration.getEndpoint(request.getRequestLine().getUri());
                if (epr != null) {
                    eprFound = true;
                    String type = TransportUtils.getContentType(contentTypeStr, msgContext);
                    msgContext.setProperty(Constants.Configuration.MESSAGE_TYPE, type);
                    epr.setParameters(msgContext);

                    Builder builder = epr.getBuilder(type);
                    if (HTTPTransportUtils.isRESTRequest(contentTypeStr)) {
                        RESTUtil.processPOSTRequest(msgContext, is, os,
                                request.getRequestLine().getUri(), contentType, builder, isRestDispatching);
                    } else {
View Full Code Here

            String contentTypeStr = contentType != null ?
                    contentType.getValue() : inferContentType();

            boolean eprFound = false;
            if (endpointsConfiguration != null) {
                URLEndpoint epr = endpointsConfiguration.getEndpoint(request.getRequestLine().getUri());
                if (epr != null) {
                    eprFound = true;
                    String type = TransportUtils.getContentType(contentTypeStr, msgContext);
                    msgContext.setProperty(Constants.Configuration.MESSAGE_TYPE, type);

                    epr.setParameters(msgContext);

                    Builder builder = epr.getBuilder(type);
                    RESTUtil.processGetAndDeleteRequest(
                            msgContext, os, request.getRequestLine().getUri(),
                            request.getFirstHeader(HTTP.CONTENT_TYPE), builder,
                            method, isRestDispatching);
                }
View Full Code Here

        params = getListenerParameters();


        param = transportIn.getParameter(NhttpConstants.ENDPOINTS_CONFIGURATION);
        if (param != null && param.getValue() != null) {
            endpoints = new URLEndpointsConfigurationFactory().create(param.getValue().toString());
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.rmi.Configurator

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.