com.sun.grizzly.util
Class Grizzly

java.lang.Object
  extended by com.sun.grizzly.util.Grizzly

public class Grizzly
extends Object

Class contains information about Grizzly framework

Author:
Charlie Hunt, Hubert Iwaniuk

Constructor Summary
Grizzly()
           
 
Method Summary
static boolean equalVersion(int major, int minor)
          Checks if current Grizzly framework version equals to one passed
static String getDotedVersion()
          Return the dotted version of the curent release.
static int getMajorVersion()
          Get Grizzly framework major version
static int getMicroVersion()
          Return the micro version
static int getMinorVersion()
          Get Grizzly framework minor version
static String getRawVersion()
          Return the raw version derived frok the project's pom.xml
static String getServerInfo()
           
static void main(String[] args)
           
static void setRawVersion(String s)
          Force the Grizzly Raw version
static void setServerInfo(String s)
          Set the complete version used for the Server header
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grizzly

public Grizzly()
Method Detail

main

public static void main(String[] args)

getRawVersion

public static String getRawVersion()
Return the raw version derived frok the project's pom.xml

Returns:

getDotedVersion

public static String getDotedVersion()
Return the dotted version of the curent release.

Returns:
like "2.0.1"

getMajorVersion

public static int getMajorVersion()
Get Grizzly framework major version

Returns:
Grizzly framework major version

getMinorVersion

public static int getMinorVersion()
Get Grizzly framework minor version

Returns:
Grizzly framework minor version

getMicroVersion

public static int getMicroVersion()
Return the micro version


setRawVersion

public static void setRawVersion(String s)
Force the Grizzly Raw version


equalVersion

public static boolean equalVersion(int major,
                                   int minor)
Checks if current Grizzly framework version equals to one passed

Parameters:
major - Grizzly framework major version
minor - Grizzly framework minor version
Returns:
true, if versions are equal; false otherwise

setServerInfo

public static void setServerInfo(String s)
Set the complete version used for the Server header


getServerInfo

public static String getServerInfo()


Copyright © 2012 Oracle Corporation. All Rights Reserved.