ch.mimo.netty.handler.codec.icap
Class IcapVersion

java.lang.Object
  extended by ch.mimo.netty.handler.codec.icap.IcapVersion

public final class IcapVersion
extends Object

Provides translation and handling for Icap version string.

Author:
Michael Mimo Moratti (mimo@mimo.ch)

Field Summary
static IcapVersion ICAP_1_0
           
 
Method Summary
 int getMajorVersion()
          Major version
 int getMinorVersion()
          Minor version
 String getProtocolName()
          Protocol name
 String getText()
          The text representation of this version.
 String toString()
           
static IcapVersion valueOf(String text)
          Returns an existing or new HttpVersion instance which matches to the specified RTSP version string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ICAP_1_0

public static final IcapVersion ICAP_1_0
Method Detail

getProtocolName

public String getProtocolName()
Protocol name

Returns:
ICAP or different.

getMajorVersion

public int getMajorVersion()
Major version

Returns:
1

getMinorVersion

public int getMinorVersion()
Minor version

Returns:
0

getText

public String getText()
The text representation of this version.

Returns:
ICAP/1.0

valueOf

public static IcapVersion valueOf(String text)
Returns an existing or new HttpVersion instance which matches to the specified RTSP version string. If the specified text is equal to "ICAP/1.0", ICAP_1_0 will be returned. Otherwise, a new HttpVersion instance will be returned.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.