Package info.openurl.oom

Examples of info.openurl.oom.ContextObject


            Referrer referrer = processor.referrerFactory(referrerDescriptors.toArray());
            Resolver resolver = processor.resolverFactory(resolverDescriptors.toArray());
            ServiceType serviceType = processor.serviceTypeFactory(serviceTypeDescriptors.toArray());

            // Construct the ContextObject
            ContextObject contextObject =
                    processor.contextObjectFactory(referent, new ReferringEntity[] { referringEntity },
                            new Requester[] { requester }, new ServiceType[] { serviceType },
                            new Resolver[] { resolver }, new Referrer[] { referrer });
            return processor.openURLRequestFactory(contextObject);
        } catch (Exception e) {
View Full Code Here


        OpenURLResponse response = null;

        // Try each ContentObject until someone responds
        ContextObject[] contextObjects = openURLRequest.getContextObjects();
        for (int i = 0; response == null && i < contextObjects.length; ++i) {
            ContextObject contextObject = contextObjects[i];
            ServiceType[] serviceTypes = contextObject.getServiceTypes();

            // Try each ServiceType/Service until someone responds
            for (int j = 0; response == null && j < serviceTypes.length; ++j) {
                ServiceType serviceType = serviceTypes[j];
                Object[] descriptors = serviceType.getDescriptors();
View Full Code Here

TOP

Related Classes of info.openurl.oom.ContextObject

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.