Package org.apache.cxf.resource

Examples of org.apache.cxf.resource.ExtendedURIResolver


    }

    public Policy resolveReference(String uri) {
        int pos = uri.indexOf('#');
        String documentURI = pos == -1 ? uri : uri.substring(0, pos);
        ExtendedURIResolver resolver = new ExtendedURIResolver();
        InputSource is = resolver.resolve(documentURI, baseURI);
        if (null == is) {
            return null;
        }
        Document doc = null;
        try {
            doc = DOMUtils.readXml(is.getByteStream());
        } catch (Exception ex) {
            throw new PolicyException(ex);
        } finally {
            resolver.close();
        }
        if (pos == -1) {
            return builder.getPolicy(doc.getDocumentElement());
        } else {
            String id = uri.substring(pos + 1);
View Full Code Here


    }
    private Element addPolicy(ServiceInfo service, Policy p, Class<?> cls, String defName) {
        String uri = p.uri();
        String ns = PolicyConstants.NAMESPACE_WS_POLICY;
        if (p.includeInWSDL()) {
            ExtendedURIResolver resolver = new ExtendedURIResolver();
            InputSource src = resolver.resolve(uri, "classpath:");
            if (src != null) {
                try {
                    Document doc = StaxUtils.read(StaxUtils.createXMLStreamReader(src));
                    if (service.getDescription() == null && cls != null) {
                        service.setDescription(new DescriptionInfo());
View Full Code Here

    private ExtendedURIResolver resolver;
    private Catalog catalogResolver;
    private Map<String, String> resolved = new HashMap<String, String>();

    public CatalogXmlSchemaURIResolver(OASISCatalogManager catalogManager) {
        this.resolver = new ExtendedURIResolver();
        this.catalogResolver = catalogManager.getCatalog();
    }
View Full Code Here

            return loadLocalPolicy(uri);
        }
    }
       
    private Element loadRemotePolicy(String uri, String defName) {
        ExtendedURIResolver resolver = new ExtendedURIResolver();
        InputSource src = resolver.resolve(uri, "classpath:");
       
        if (null == src) {
            return null;
        }
        XMLStreamReader reader = null;
View Full Code Here

        this(OASISCatalogManager.getCatalogManager(bus));
        this.resolver = new TransportURIResolver(bus);
        this.catalogResolver = OASISCatalogManager.getCatalogManager(bus).getCatalog();
    }
    public CatalogXmlSchemaURIResolver(OASISCatalogManager catalogManager) {
        this.resolver = new ExtendedURIResolver();
        this.catalogResolver = catalogManager.getCatalog();
    }
View Full Code Here

    private Catalog catalogResolver;
    private String baseUri;
   
    public CatalogWSDLLocator(String wsdlUrl) {
        this.baseUri = wsdlUrl;
        this.resolver = new ExtendedURIResolver();       
    }
View Full Code Here

        this.resolver = new ExtendedURIResolver();       
    }
    public CatalogWSDLLocator(String wsdlUrl, OASISCatalogManager catalogManager) {
        this.baseUri = wsdlUrl;
        this.catalogResolver = catalogManager.getCatalog();
        this.resolver = new ExtendedURIResolver();
    }
View Full Code Here

            return loadLocalPolicy(uri);
        }
    }
       
    private Element loadRemotePolicy(String uri, String defName) {
        ExtendedURIResolver resolver = new ExtendedURIResolver();
        InputSource src = resolver.resolve(uri, "classpath:");
       
        if (null == src) {
            return null;
        }
        XMLStreamReader reader = null;
View Full Code Here

    private boolean resolveFromMap;
   
    public CustomizedWSDLLocator(String wsdlUrl, Map<String, Element> map) {
        this.wsdlUrl = wsdlUrl;
        this.baseUri = this.wsdlUrl;
        resolver = new ExtendedURIResolver();
        elementMap = map;
    }
View Full Code Here

    }
    private Element addPolicy(ServiceInfo service, Policy p, Class<?> cls, String defName) {
        String uri = p.uri();
        String ns = Constants.URI_POLICY_NS;
        if (p.includeInWSDL()) {
            ExtendedURIResolver resolver = new ExtendedURIResolver();
            InputSource src = resolver.resolve(uri, "classpath:");
            if (src != null) {
                try {
                    Document doc = StaxUtils.read(StaxUtils.createXMLStreamReader(src));
                    if (service.getDescription() == null && cls != null) {
                        service.setDescription(new DescriptionInfo());
View Full Code Here

TOP

Related Classes of org.apache.cxf.resource.ExtendedURIResolver

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.