org.apache.http.message
Class BasicHttpVersionFormat

java.lang.Object
  extended by org.apache.http.message.BasicHttpVersionFormat

public class BasicHttpVersionFormat
extends java.lang.Object

Parser and formatter for HttpVersion.

Since:
4.0
Version:
$Revision: 503402 $
Author:
Oleg Kalnichevski

Constructor Summary
BasicHttpVersionFormat()
           
 
Method Summary
static void format(CharArrayBuffer buffer, HttpVersion ver)
           
static java.lang.String format(HttpVersion ver)
           
static HttpVersion parse(CharArrayBuffer buffer, int indexFrom, int indexTo)
          Parses the textual representation of the given HTTP protocol version.
static HttpVersion parse(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicHttpVersionFormat

public BasicHttpVersionFormat()
Method Detail

parse

public static HttpVersion parse(CharArrayBuffer buffer,
                                int indexFrom,
                                int indexTo)
                         throws ProtocolException
Parses the textual representation of the given HTTP protocol version.

Returns:
HTTP protocol version.
Throws:
ProtocolException - if the string is not a valid HTTP protocol version.

parse

public static final HttpVersion parse(java.lang.String s)
                               throws ProtocolException
Throws:
ProtocolException

format

public static void format(CharArrayBuffer buffer,
                          HttpVersion ver)

format

public static java.lang.String format(HttpVersion ver)


Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.