Package org.geotools.util

Examples of org.geotools.util.Version


     * Constrcutor for use with a specific wcs 1.0.0 request.
     */
    public Wcs10KvpParser(String key, Class<?> binding, String request) {
        super(key, binding);
        setService("wcs");
        setVersion(new Version("1.0.0"));
        setRequest(request);
    }
View Full Code Here


         */
    }

    public void testCapabilitiesLinks() {

        CapsInfo ci1 = new CapsInfo("FakeService1", new Version("1.0.0"), "../caps1_v1");
        CapsInfo ci2 = new CapsInfo("FakeService1", new Version("1.1.0"), "../caps1_v2");
        CapsInfo ci3 = new CapsInfo("FakeService2", new Version("1.1.0"), "../caps2");

        CapabilitiesHomePagePanel panel = new CapabilitiesHomePagePanel("capsList", Arrays.asList(
                ci1, ci2, ci3));

        TestPage page = new TestPage();
View Full Code Here

        throws IOException, ServiceException {
        WFSInfo wfs = getInfo();
       
        LockFeatureResponseType lockResponse = (LockFeatureResponseType) value;

        if (new Version("1.1.0").equals(operation.getService().getVersion())) {
            write1_1(lockResponse, output, operation);

            return;
        }
View Full Code Here

        if (version == null) {
            LOGGER.warning("Could not determine SLD version from content. Assuming 1.0.0");
            version = "1.0.0";
        }
       
        return new Object[]{new Version(version), reader};
    }
View Full Code Here

    public void write(Object value, OutputStream output, Operation operation)
        throws IOException, ServiceException {
        TransactionResponseType response = (TransactionResponseType) value;

        if (new Version("1.0.0").equals(operation.getService().getVersion())) {
            v_1_0(response, output, operation);
        } else {
            v_1_1(response, output, operation);
        }
    }
View Full Code Here

   
    @Override
    protected WFSInfo initialize(WFSInfo service) {
        super.initialize(service);
        if ( service.getVersions().isEmpty() ) {
            service.getVersions().add( new Version( "1.0.0" ) );
            service.getVersions().add( new Version( "1.1.0" ) );
        }
       
        //set the defaults for GMLInfo if they are not set
        GMLInfo gml = service.getGML().get(WFSInfo.Version.V_10);
        if (gml.getOverrideGMLAttributes() == null) {
View Full Code Here

        gml = new GMLInfoImpl();
        gml.setSrsNameStyle(SrsNameStyle.URN);
        gml.setOverrideGMLAttributes(false);
        wfs.getGML().put( WFSInfo.Version.V_11 , gml );
       
        wfs.getVersions().add( new Version( "1.0.0" ) );
        wfs.getVersions().add( new Version( "1.1.0" ) );
       
        return wfs;
    }
View Full Code Here

                    private static final long serialVersionUID = 1L;

                    @Override
                    protected void populateItem(ListItem<CapsInfo> item) {
                        CapsInfo capsInfo = item.getModelObject();
                        Version version = capsInfo.getVersion();
                        String capsLink = capsInfo.getCapsLink();
                        ExternalLink link = new ExternalLink("link", capsLink);
                        item.add(link);

                        link.add(new Label("version", version.toString()));
                    }
                });
            }
        };
View Full Code Here

    public void write(Object value, OutputStream output, Operation operation)
        throws IOException, ServiceException {
        TransactionResponseType response = (TransactionResponseType) value;

        if (new Version("1.0.0").equals(operation.getService().getVersion())) {
            v_1_0(response, output, operation);
        } else {
            v_1_1(response, output, operation);
        }
    }
View Full Code Here

*/
public class WcsEOXmlReader extends XmlRequestReader {
    Configuration configuration;

    public WcsEOXmlReader(String element, String version) {
        super(new QName(WCSEO.NAMESPACE, element), new Version(version), "wcs");
        this.configuration = new WCSEOConfiguration();
    }
View Full Code Here

TOP

Related Classes of org.geotools.util.Version

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.