Java Doc for HTTPEncoding.java in  » Web-Server » JicarillaHTTP » org » jicarilla » http » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Server » JicarillaHTTP » org.jicarilla.http 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jicarilla.http.HTTPEncoding

HTTPEncoding
public class HTTPEncoding (Code)
This class provides basic encoding information for the HTTP 1.1 specification, RFC 2616. The HTTP specifications are published by the Internet Engineering Taskforce. Note that this class contains some documentation snippets from the mentioned standard.
author:
   Leo Simons
version:
   $Id: HTTPEncoding.java,v 1.5 2004/04/03 10:13:23 lsimons Exp $


Field Summary
final public static  char[]ALPHA
    
final public static  char[]CHAR
    
final public static  StringCONTENT_CODING
    
final public static  StringCONTENT_CODING_COMPRESS
    
final public static  StringCONTENT_CODING_DEFLATE
    
final public static  StringCONTENT_CODING_GZIP
    
final public static  StringCONTENT_CODING_IDENTITY
    
final public static  charCR
    
final public static  char[]CRLF
     carriage return and line feed characters.
final public static  char[]CTL
    
final public static  char[]DATE
     HTTP applications have historically allowed three different formats for the representation of date/time stamps.
final public static  char[]DIGIT
    
final public static  charDQ
    
final public static  StringHEADER_CONTENT_LENGTH
    
final public static  ByteBufferHEADER_CONTENT_LENGTH_BUFFER
    
final public static  StringHEADER_TRAILER
    
final public static  StringHEADER_TRANSFER_ENCODING
    
final public static  char[]HEX
     Hexadecimal numeric characters are used in several protocol elements.
final public static  charHT
    
final public static  StringISO8859_1_CONTENT_CHARSET
    
final public static  charLF
    
final public static  char[]LOALPHA
    
final public static  char[]LWS
     lineair whitespace characters.
final public static  StringMETHOD_CONNECT
    
final public static  StringMETHOD_DELETE
    
final public static  StringMETHOD_GET
    
final public static  StringMETHOD_HEAD
    
final public static  StringMETHOD_OPTIONS
    
final public static  StringMETHOD_POST
    
final public static  StringMETHOD_PUT
    
final public static  StringMETHOD_TRACE
    
final public static  intNUMBER_OF_CHARS_TO_SHIFT_ASCII_UPPER_TO_LOWER
    
final public static  intNUMBER_OF_HEX_CHARACTERS
    
final public static  intNUMBER_OF_STATUS_MSG
    
final public static  intNUMBER_OF_TEXT_CHARACTERS
    
final public static  intNUMBER_OF_TOKEN_CHARACTERS
    
final public static  intNUMBER_OF_VERSION_CHARACTERS
    
final public static  intOFFSET_OF_NORMAL_CHARACTERS_IN_ASCII
    
final public static  charSP
    
final public static  intSTATUS_100_ContinueSTATUS_101_Switching_ProtocolsSTATUS_102_ProcessingSTATUS_200_OKSTATUS_201_CreatedSTATUS_202_AcceptedSTATUS_203_Non_Authoritative_InformationSTATUS_204_No_ContentSTATUS_205_Reset_ContentSTATUS_206_Partial_ContentSTATUS_207_Multi_StatusSTATUS_300_Multiple_ChoicesSTATUS_301_Moved_PermanentlySTATUS_302_Moved_TemporarilySTATUS_303_See_OtherSTATUS_304_Not_ModifiedSTATUS_305_Use_ProxySTATUS_400_Bad_RequestSTATUS_401_UnauthorizedSTATUS_402_Payment_RequiredSTATUS_403_ForbiddenSTATUS_404_Not_FoundSTATUS_405_Method_Not_AllowedSTATUS_406_Not_AcceptableSTATUS_407_Proxy_Authentication_RequiredSTATUS_408_Request_TimeoutSTATUS_409_ConflictSTATUS_410_GoneSTATUS_411_Length_RequiredSTATUS_412_Precondition_FailedSTATUS_413_Request_Entity_Too_LargeSTATUS_414_Request_URI_Too_LargeSTATUS_415_Unsupported_Media_TypeSTATUS_416_Requested_Range_Not_SatisfiableSTATUS_417_Expectation_FailedSTATUS_422_Unprocessable_EntitySTATUS_423_LockedSTATUS_424_Failed_DependencySTATUS_500_Internal_Server_ErrorSTATUS_501_Not_ImplementedSTATUS_502_Bad_GatewaySTATUS_503_Service_UnavailableSTATUS_504_Gateway_TimeoutSTATUS_505_HTTP_Version_Not_SupportedSTATUS_507_Insufficient_Storage
    
final public static  StringSTATUS_100_MSGSTATUS_101_MSGSTATUS_102_MSGSTATUS_200_MSGSTATUS_201_MSGSTATUS_202_MSGSTATUS_203_MSGSTATUS_204_MSGSTATUS_205_MSGSTATUS_206_MSGSTATUS_207_MSGSTATUS_300_MSGSTATUS_301_MSGSTATUS_302_MSGSTATUS_303_MSGSTATUS_304_MSGSTATUS_305_MSGSTATUS_400_MSGSTATUS_401_MSGSTATUS_402_MSGSTATUS_403_MSGSTATUS_404_MSGSTATUS_405_MSGSTATUS_406_MSGSTATUS_407_MSGSTATUS_408_MSGSTATUS_409_MSGSTATUS_410_MSGSTATUS_411_MSGSTATUS_412_MSGSTATUS_413_MSGSTATUS_414_MSGSTATUS_415_MSGSTATUS_416_MSGSTATUS_417_MSGSTATUS_422_MSGSTATUS_423_MSGSTATUS_424_MSGSTATUS_500_MSGSTATUS_501_MSGSTATUS_502_MSGSTATUS_503_MSGSTATUS_504_MSGSTATUS_505_MSGSTATUS_507_MSG
    
final public static  intSTATUS_999_IO_Problem
    
final public static  StringSTATUS_999_MSG
    
final public static  String[]STATUS_MSG
    
final public static  char[]TEXT
     The TEXT rule is only used for descriptive field contents and values that are not intended to be interpreted by the message parser.
final public static  StringTRANSFER_CODING
    
final public static  StringTRANSFER_CODING_CHUNKED
    
final public static  StringTRANSFER_CODING_COMPRESS
    
final public static  StringTRANSFER_CODING_DEFLATE
    
final public static  StringTRANSFER_CODING_GZIP
    
final public static  StringTRANSFER_CODING_IDENTITY
    
final public static  char[]UPALPHA
    
final public static  StringUSASCII_CHARSET
    
final public static  char[]VERSION
     HTTP uses a "." numbering scheme to indicate versions of the protocol.
final public static  StringVERSION_10
    
final public static  StringVERSION_11
    
final public static  char[]charset
     HTTP character sets are identified by case-insensitive tokens.
final public static  char[]comment
     Comments can be included in some HTTP header fields by surrounding the comment text with parentheses.
final public static  char[]content_coding
     Content coding values indicate an encoding transformation that has been or can be applied to an entity.
final public static  char[]ctext
     Text contained in a comment.
final public static  char[]qdtext
     Text contained in a quote.
final public static  char[]quoted_pair
     The backslash character ("\") MAY be used as a single-character quoting mechanism only within quoted-string and comment constructs.
final public static  char[]quoted_string
     A string of text is parsed as a single word if it is quoted using double-quote marks.
final public static  char[]separators
     Many HTTP/1.1 header field values consist of words separated by LWS or special characters.
final public static  char[]token
     A token is any character or sequence of characters which is not a seperator or control character.
final public static  char[]transfer_coding
     Transfer-coding values are used to indicate an encoding transformation that has been, can be, or may need to be applied to an entity-body in order to ensure "safe transport" through the network.


Method Summary
final public static  intgetMajorVersion(String versionString)
    
final public static  intgetMinorVersion(String versionString)
    
final public static  booleanisControlChar(char c)
     Determine whether the specified character is a control character.
final public static  booleanisLWSChar(char c)
     Determine whether the specified character is a linear whitespace character.
final public static  booleanisMethodChar(char c)
     Determine whether the specified character is a method character.
final public static  booleanisReasonPhraseChar(char c)
     Determine whether the specified character is a reason phrase character.
final public static  booleanisSeparatorChar(char c)
     Determine whether the specified character is a separator character.
final public static  booleanisStatusCodeChar(char c)
     Determine whether the specified character is a status code character.
final public static  booleanisTextChar(char c)
     Determine whether the specified character is a text character.
final public static  booleanisTokenChar(char c)
     Determine whether the specified character is a token character.
final public static  booleanisURIChar(char c)
     Returns true if the character is allowed in a URI, false otherwise.
final public static  booleanisVersionChar(char c)
     Determine whether the specified character is a version specifier character.
final public static  booleanisVersionString(String s)
     Nearly fully compliant verification of HTTP version strings.
final public static  chartokenCharToLowerCase(char token)
    

Field Detail
ALPHA
final public static char[] ALPHA(Code)
all ASCII letters



CHAR
final public static char[] CHAR(Code)
all ASCII characters



CONTENT_CODING
final public static String CONTENT_CODING(Code)



CONTENT_CODING_COMPRESS
final public static String CONTENT_CODING_COMPRESS(Code)



CONTENT_CODING_DEFLATE
final public static String CONTENT_CODING_DEFLATE(Code)



CONTENT_CODING_GZIP
final public static String CONTENT_CODING_GZIP(Code)



CONTENT_CODING_IDENTITY
final public static String CONTENT_CODING_IDENTITY(Code)



CR
final public static char CR(Code)
carriage return



CRLF
final public static char[] CRLF(Code)
carriage return and line feed characters. HTTP/1.1 defines the sequence CR LF as the end-of-line marker for all protocol elements except the entity-body (see appendix 19.3 of RFC2616 for tolerant applications). The end-of-line marker within an entity-body is defined by its associated media type, as described in section 3.7 of RFC2616. note: doesn't encode that a new line is only defined when CR & LF appear in sequence.



CTL
final public static char[] CTL(Code)
all ASCII control characters



DATE
final public static char[] DATE(Code)
HTTP applications have historically allowed three different formats for the representation of date/time stamps. note: doesn't encode the actual requirment as to how the date is to be encoded, just lists the acceptable characters.



DIGIT
final public static char[] DIGIT(Code)
all ASCII digits



DQ
final public static char DQ(Code)
double quote (")



HEADER_CONTENT_LENGTH
final public static String HEADER_CONTENT_LENGTH(Code)



HEADER_CONTENT_LENGTH_BUFFER
final public static ByteBuffer HEADER_CONTENT_LENGTH_BUFFER(Code)



HEADER_TRAILER
final public static String HEADER_TRAILER(Code)



HEADER_TRANSFER_ENCODING
final public static String HEADER_TRANSFER_ENCODING(Code)



HEX
final public static char[] HEX(Code)
Hexadecimal numeric characters are used in several protocol elements.



HT
final public static char HT(Code)
tab



ISO8859_1_CONTENT_CHARSET
final public static String ISO8859_1_CONTENT_CHARSET(Code)
Default content encoding chatset



LF
final public static char LF(Code)
linefeed



LOALPHA
final public static char[] LOALPHA(Code)
all ASCII lowercase letters



LWS
final public static char[] LWS(Code)
lineair whitespace characters. note: doesn't encode that CR & LF may only appear once, at the beginning, and in sequence. HTTP/1.1 header field values can be folded onto multiple lines if the continuation line begins with a space or horizontal tab. All linear white space, including folding, has the same semantics as SP. A recipient MAY replace any linear white space with a single SP before interpreting the field value or forwarding the message downstream.



METHOD_CONNECT
final public static String METHOD_CONNECT(Code)



METHOD_DELETE
final public static String METHOD_DELETE(Code)



METHOD_GET
final public static String METHOD_GET(Code)



METHOD_HEAD
final public static String METHOD_HEAD(Code)



METHOD_OPTIONS
final public static String METHOD_OPTIONS(Code)



METHOD_POST
final public static String METHOD_POST(Code)



METHOD_PUT
final public static String METHOD_PUT(Code)



METHOD_TRACE
final public static String METHOD_TRACE(Code)



NUMBER_OF_CHARS_TO_SHIFT_ASCII_UPPER_TO_LOWER
final public static int NUMBER_OF_CHARS_TO_SHIFT_ASCII_UPPER_TO_LOWER(Code)



NUMBER_OF_HEX_CHARACTERS
final public static int NUMBER_OF_HEX_CHARACTERS(Code)



NUMBER_OF_STATUS_MSG
final public static int NUMBER_OF_STATUS_MSG(Code)



NUMBER_OF_TEXT_CHARACTERS
final public static int NUMBER_OF_TEXT_CHARACTERS(Code)



NUMBER_OF_TOKEN_CHARACTERS
final public static int NUMBER_OF_TOKEN_CHARACTERS(Code)



NUMBER_OF_VERSION_CHARACTERS
final public static int NUMBER_OF_VERSION_CHARACTERS(Code)



OFFSET_OF_NORMAL_CHARACTERS_IN_ASCII
final public static int OFFSET_OF_NORMAL_CHARACTERS_IN_ASCII(Code)



SP
final public static char SP(Code)
space



STATUS_100_ContinueSTATUS_101_Switching_ProtocolsSTATUS_102_ProcessingSTATUS_200_OKSTATUS_201_CreatedSTATUS_202_AcceptedSTATUS_203_Non_Authoritative_InformationSTATUS_204_No_ContentSTATUS_205_Reset_ContentSTATUS_206_Partial_ContentSTATUS_207_Multi_StatusSTATUS_300_Multiple_ChoicesSTATUS_301_Moved_PermanentlySTATUS_302_Moved_TemporarilySTATUS_303_See_OtherSTATUS_304_Not_ModifiedSTATUS_305_Use_ProxySTATUS_400_Bad_RequestSTATUS_401_UnauthorizedSTATUS_402_Payment_RequiredSTATUS_403_ForbiddenSTATUS_404_Not_FoundSTATUS_405_Method_Not_AllowedSTATUS_406_Not_AcceptableSTATUS_407_Proxy_Authentication_RequiredSTATUS_408_Request_TimeoutSTATUS_409_ConflictSTATUS_410_GoneSTATUS_411_Length_RequiredSTATUS_412_Precondition_FailedSTATUS_413_Request_Entity_Too_LargeSTATUS_414_Request_URI_Too_LargeSTATUS_415_Unsupported_Media_TypeSTATUS_416_Requested_Range_Not_SatisfiableSTATUS_417_Expectation_FailedSTATUS_422_Unprocessable_EntitySTATUS_423_LockedSTATUS_424_Failed_DependencySTATUS_500_Internal_Server_ErrorSTATUS_501_Not_ImplementedSTATUS_502_Bad_GatewaySTATUS_503_Service_UnavailableSTATUS_504_Gateway_TimeoutSTATUS_505_HTTP_Version_Not_SupportedSTATUS_507_Insufficient_Storage
final public static int STATUS_100_ContinueSTATUS_101_Switching_ProtocolsSTATUS_102_ProcessingSTATUS_200_OKSTATUS_201_CreatedSTATUS_202_AcceptedSTATUS_203_Non_Authoritative_InformationSTATUS_204_No_ContentSTATUS_205_Reset_ContentSTATUS_206_Partial_ContentSTATUS_207_Multi_StatusSTATUS_300_Multiple_ChoicesSTATUS_301_Moved_PermanentlySTATUS_302_Moved_TemporarilySTATUS_303_See_OtherSTATUS_304_Not_ModifiedSTATUS_305_Use_ProxySTATUS_400_Bad_RequestSTATUS_401_UnauthorizedSTATUS_402_Payment_RequiredSTATUS_403_ForbiddenSTATUS_404_Not_FoundSTATUS_405_Method_Not_AllowedSTATUS_406_Not_AcceptableSTATUS_407_Proxy_Authentication_RequiredSTATUS_408_Request_TimeoutSTATUS_409_ConflictSTATUS_410_GoneSTATUS_411_Length_RequiredSTATUS_412_Precondition_FailedSTATUS_413_Request_Entity_Too_LargeSTATUS_414_Request_URI_Too_LargeSTATUS_415_Unsupported_Media_TypeSTATUS_416_Requested_Range_Not_SatisfiableSTATUS_417_Expectation_FailedSTATUS_422_Unprocessable_EntitySTATUS_423_LockedSTATUS_424_Failed_DependencySTATUS_500_Internal_Server_ErrorSTATUS_501_Not_ImplementedSTATUS_502_Bad_GatewaySTATUS_503_Service_UnavailableSTATUS_504_Gateway_TimeoutSTATUS_505_HTTP_Version_Not_SupportedSTATUS_507_Insufficient_Storage(Code)



STATUS_100_MSGSTATUS_101_MSGSTATUS_102_MSGSTATUS_200_MSGSTATUS_201_MSGSTATUS_202_MSGSTATUS_203_MSGSTATUS_204_MSGSTATUS_205_MSGSTATUS_206_MSGSTATUS_207_MSGSTATUS_300_MSGSTATUS_301_MSGSTATUS_302_MSGSTATUS_303_MSGSTATUS_304_MSGSTATUS_305_MSGSTATUS_400_MSGSTATUS_401_MSGSTATUS_402_MSGSTATUS_403_MSGSTATUS_404_MSGSTATUS_405_MSGSTATUS_406_MSGSTATUS_407_MSGSTATUS_408_MSGSTATUS_409_MSGSTATUS_410_MSGSTATUS_411_MSGSTATUS_412_MSGSTATUS_413_MSGSTATUS_414_MSGSTATUS_415_MSGSTATUS_416_MSGSTATUS_417_MSGSTATUS_422_MSGSTATUS_423_MSGSTATUS_424_MSGSTATUS_500_MSGSTATUS_501_MSGSTATUS_502_MSGSTATUS_503_MSGSTATUS_504_MSGSTATUS_505_MSGSTATUS_507_MSG
final public static String STATUS_100_MSGSTATUS_101_MSGSTATUS_102_MSGSTATUS_200_MSGSTATUS_201_MSGSTATUS_202_MSGSTATUS_203_MSGSTATUS_204_MSGSTATUS_205_MSGSTATUS_206_MSGSTATUS_207_MSGSTATUS_300_MSGSTATUS_301_MSGSTATUS_302_MSGSTATUS_303_MSGSTATUS_304_MSGSTATUS_305_MSGSTATUS_400_MSGSTATUS_401_MSGSTATUS_402_MSGSTATUS_403_MSGSTATUS_404_MSGSTATUS_405_MSGSTATUS_406_MSGSTATUS_407_MSGSTATUS_408_MSGSTATUS_409_MSGSTATUS_410_MSGSTATUS_411_MSGSTATUS_412_MSGSTATUS_413_MSGSTATUS_414_MSGSTATUS_415_MSGSTATUS_416_MSGSTATUS_417_MSGSTATUS_422_MSGSTATUS_423_MSGSTATUS_424_MSGSTATUS_500_MSGSTATUS_501_MSGSTATUS_502_MSGSTATUS_503_MSGSTATUS_504_MSGSTATUS_505_MSGSTATUS_507_MSG(Code)



STATUS_999_IO_Problem
final public static int STATUS_999_IO_Problem(Code)



STATUS_999_MSG
final public static String STATUS_999_MSG(Code)



STATUS_MSG
final public static String[] STATUS_MSG(Code)



TEXT
final public static char[] TEXT(Code)
The TEXT rule is only used for descriptive field contents and values that are not intended to be interpreted by the message parser. Words of *TEXT MAY contain characters from character sets other than ISO-8859-1 only when encoded according to the rules of RFC 2047. A CRLF is allowed in the definition of TEXT only as part of a header field continuation. It is expected that the folding LWS will be replaced with a single SP before interpretation of the TEXT value.
See Also:   org.jicarilla.http.util.Iso8859_1
See Also:    http://www.ietf.org



TRANSFER_CODING
final public static String TRANSFER_CODING(Code)



TRANSFER_CODING_CHUNKED
final public static String TRANSFER_CODING_CHUNKED(Code)



TRANSFER_CODING_COMPRESS
final public static String TRANSFER_CODING_COMPRESS(Code)



TRANSFER_CODING_DEFLATE
final public static String TRANSFER_CODING_DEFLATE(Code)



TRANSFER_CODING_GZIP
final public static String TRANSFER_CODING_GZIP(Code)



TRANSFER_CODING_IDENTITY
final public static String TRANSFER_CODING_IDENTITY(Code)



UPALPHA
final public static char[] UPALPHA(Code)
all ASCII uppercase letters



USASCII_CHARSET
final public static String USASCII_CHARSET(Code)
Character set used to encode HTTP protocol elements



VERSION
final public static char[] VERSION(Code)
HTTP uses a "." numbering scheme to indicate versions of the protocol. note: doesn't encode the specific sequence of the HTTP version string.



VERSION_10
final public static String VERSION_10(Code)



VERSION_11
final public static String VERSION_11(Code)



charset
final public static char[] charset(Code)
HTTP character sets are identified by case-insensitive tokens. The complete set of tokens is defined by the IANA Character Set registry.



comment
final public static char[] comment(Code)
Comments can be included in some HTTP header fields by surrounding the comment text with parentheses. Comments are only allowed in fields containing "comment" as part of their field value definition. In all other fields, parentheses are considered part of the field value. note: doesn't encode that the string must begin with '(' and end with ')' and cannot contain ')' anywhere but as the last character.



content_coding
final public static char[] content_coding(Code)
Content coding values indicate an encoding transformation that has been or can be applied to an entity. All content-coding values are case-insensitive.



ctext
final public static char[] ctext(Code)
Text contained in a comment. Can be any TEXT except the comment boundary characters '(' and ')'.



qdtext
final public static char[] qdtext(Code)
Text contained in a quote. Can be any TEXT except the quote boundary character '"'.



quoted_pair
final public static char[] quoted_pair(Code)
The backslash character ("\") MAY be used as a single-character quoting mechanism only within quoted-string and comment constructs. note: doesn't encode that the string must consist of a backslash as the first character and any other character as the second character.



quoted_string
final public static char[] quoted_string(Code)
A string of text is parsed as a single word if it is quoted using double-quote marks. note: doesn't encode that the string must begin with '"' and end with '"', and cannot contain '"' anywhere but as the last character or when escaped by a '\', and can contain non-TEXT characters only when preceeded a '\'.



separators
final public static char[] separators(Code)
Many HTTP/1.1 header field values consist of words separated by LWS or special characters. These special characters MUST be in a quoted string to be used within a parameter value (as defined in section 3.6 of RFC2616).



token
final public static char[] token(Code)
A token is any character or sequence of characters which is not a seperator or control character.



transfer_coding
final public static char[] transfer_coding(Code)
Transfer-coding values are used to indicate an encoding transformation that has been, can be, or may need to be applied to an entity-body in order to ensure "safe transport" through the network.





Method Detail
getMajorVersion
final public static int getMajorVersion(String versionString)(Code)



getMinorVersion
final public static int getMinorVersion(String versionString)(Code)



isControlChar
final public static boolean isControlChar(char c)(Code)
Determine whether the specified character is a control character.
Parameters:
  c - the character to test true if it is, false otherwise



isLWSChar
final public static boolean isLWSChar(char c)(Code)
Determine whether the specified character is a linear whitespace character.
Parameters:
  c - the character to test true if it is, false otherwise



isMethodChar
final public static boolean isMethodChar(char c)(Code)
Determine whether the specified character is a method character.
Parameters:
  c - the character to test true if it is, false otherwise



isReasonPhraseChar
final public static boolean isReasonPhraseChar(char c)(Code)
Determine whether the specified character is a reason phrase character.
Parameters:
  c - the character to test true if it is, false otherwise



isSeparatorChar
final public static boolean isSeparatorChar(char c)(Code)
Determine whether the specified character is a separator character.
Parameters:
  c - the character to test true if it is, false otherwise



isStatusCodeChar
final public static boolean isStatusCodeChar(char c)(Code)
Determine whether the specified character is a status code character.
Parameters:
  c - the character to test true if it is, false otherwise



isTextChar
final public static boolean isTextChar(char c)(Code)
Determine whether the specified character is a text character.
Parameters:
  c - the character to test true if it is, false otherwise



isTokenChar
final public static boolean isTokenChar(char c)(Code)
Determine whether the specified character is a token character.
Parameters:
  c - the character to test true if it is, false otherwise



isURIChar
final public static boolean isURIChar(char c)(Code)
Returns true if the character is allowed in a URI, false otherwise. Note that it does allow "#" and "%", but not " "! From RFC 2396: 2.4.3. Excluded US-ASCII Characters Although they are disallowed within the URI syntax, we include here a description of those US-ASCII characters that have been excluded and the reasons for their exclusion. The control characters in the US-ASCII coded character set are not used within a URI, both because they are non-printable and because they are likely to be misinterpreted by some control mechanisms. control = The space character is excluded because significant spaces may disappear and insignificant spaces may be introduced when URI are transcribed or typeset or subjected to the treatment of word- processing programs. Whitespace is also used to delimit URI in many contexts. space = The angle-bracket "<" and ">" and double-quote (") characters are excluded because they are often used as the delimiters around URI in text documents and protocol fields. The character "#" is excluded because it is used to delimit a URI from a fragment identifier in URI references (Section 4). The percent character "%" is excluded because it is used for the encoding of escaped characters. delims = "<" | ">" | "#" | "%" | <">
Parameters:
  c - the character to test true if it is a valid URI char, false otherwise



isVersionChar
final public static boolean isVersionChar(char c)(Code)
Determine whether the specified character is a version specifier character.
Parameters:
  c - the character to test true if it is, false otherwise



isVersionString
final public static boolean isVersionString(String s)(Code)
Nearly fully compliant verification of HTTP version strings.
Parameters:
  s -



tokenCharToLowerCase
final public static char tokenCharToLowerCase(char token)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.