org.apache.http.message
Class BasicHttpVersionFormat
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicHttpVersionFormat
public BasicHttpVersionFormat()
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.