Examples of Version


Examples of org.gatein.common.util.Version

      }
   }

   public boolean isUsingWSRP2()
   {
      Version wsrpVersion = getWSRPVersion();
      return wsrpVersion != null && wsrpVersion.getMajor() >= 2;
   }
View Full Code Here

Examples of org.geoserver.wfs.WFSInfo.Version

    public WFSException init(Object request) {
        if (request != null) {
            //wfs 2.0 has more requirements for exception codes and handles
            if (OwsUtils.has(request, "version")) {
                Object ver = OwsUtils.get(request, "version");
                Version version = Version.negotiate(ver != null ? ver.toString() : null);
                if (version != null && version.compareTo(Version.V_20) < 0) {
                    return this; //not 2.0
                }
            }
            if (locator == null && OwsUtils.has(request, "handle")) {
                //check the request object
View Full Code Here

Examples of org.geotools.data.wfs.protocol.wfs.Version

        final byte[] wfsCapabilitiesRawData = loadCapabilities(getCapabilitiesRequest, http);
        final Document capsDoc = parseCapabilities(wfsCapabilitiesRawData);
        final Element rootElement = capsDoc.getDocumentElement();

        final String capsVersion = rootElement.getAttribute("version");
        final Version version = Version.find(capsVersion);

        if (Version.v1_0_0 == version) {
            final ConnectionFactory connectionFac = new DefaultConnectionFactory(tryGZIP, user,
                    pass, defaultEncoding, timeoutMillis);
            InputStream reader = new ByteArrayInputStream(wfsCapabilitiesRawData);
View Full Code Here

Examples of org.geotools.util.Version

*/
public class GeoToolsTest {
   
    @Ignore
    public void testGeoTools(){
         Version version = GeoTools.getVersion();
         assertEquals( 2, version.getMajor() );
         assertTrue( version.getMinor().toString().startsWith("6") );
    }
View Full Code Here

Examples of org.ggf.drmaa.Version

         System.out.println("Using DRM systems: \"" +
               session.getDrmSystem() + "\"");
         System.out.println("Using DRMAA implementations: \"" +
               session.getDrmaaImplementation() + "\"");
        
         Version version = session.getVersion();
        
         System.out.println("Using DRMAA version " + version.toString());
        
         session.exit();
      } catch (DrmaaException e) {
         System.out.println("Error: " + e.getMessage());
      }
View Full Code Here

Examples of org.glassfish.enterprise.ha.store.annotations.Version

                    Attribute attrAnn = m.getAnnotation(Attribute.class);
                    if (attrAnn != null) {
                        attributeName = attrAnn.name();
                        methodInfo.type = MethodInfo.MethodType.SETTER;
                    } else {
                        Version versionAnn = m.getAnnotation(Version.class);
                        if (versionAnn != null) {
                            attributeName = versionAnn.name();
                            methodInfo.type = MethodInfo.MethodType.VERSION;
                        } else {
                            HashKey hashKeyAnn = m.getAnnotation(HashKey.class);
                            if (hashKeyAnn != null) {
                                attributeName = hashKeyAnn.name();
View Full Code Here

Examples of org.glassfish.hk2.maven.Version

     */
    protected String versionPropertyName;

    @Override
    public void execute() throws MojoExecutionException, MojoFailureException {
        Version projectVersion = new Version(project.getVersion());
        String v = projectVersion.convertToOsgi(dropVersionComponent);
        getLog().debug("OSGi Version for "+project.getVersion()+" is "+v);
        getLog().debug("It is set in project property called "+ versionPropertyName);
        project.getProperties().put(versionPropertyName,v);
    }
View Full Code Here

Examples of org.graylog2.plugin.Version

            StringWriter writer = new StringWriter();
            IOUtils.copy(entity.getContent(), writer, Charset.forName("UTF-8"));
            String body = writer.toString();

            VersionCheckResponse parsedResponse = parse(body);
            Version reportedVersion = new Version(parsedResponse.version.major, parsedResponse.version.minor, parsedResponse.version.patch);

            LOG.debug("Version check reports current version: " + parsedResponse);

            if (reportedVersion.greaterMinor(ServerVersion.VERSION)) {
                LOG.debug("Reported version is higher than ours ({}). Writing notification.", ServerVersion.VERSION);

                Notification notification = notificationService.buildNow()
                        .addSeverity(Notification.Severity.NORMAL)
                        .addType(Notification.Type.OUTDATED_VERSION)
View Full Code Here

Examples of org.graylog2.restclient.lib.Version

*/
public class VersionTest {

    @Test
    public void testGetName() throws Exception {
        assertTrue(new Version(0, 20, 0).toString().startsWith("0.20.0"));
        assertTrue(new Version(1, 0, 0, "preview.1").toString().startsWith("1.0.0-preview.1"));
    }
View Full Code Here

Examples of org.gstreamer.Version

    /** Creates a new instance of GstInitTest */
    public InitTest() {
    }
    public static void main(String[] args) {
        args = Gst.init("foo", args);
        Version version = Gst.getVersion();
        System.out.printf("Gstreamer version %d.%d.%d%s initialized!",
                version.getMajor(), version.getMinor(), version.getMicro(),
                version.getNano() == 1 ? " (CVS)" : version.getNano() >= 2 ? " (Pre-release)" : "");
    }
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.