|
Oracle Security Developer Tools Crypto Java API Reference 10g (10.1.4.0.1) B28171-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.util.HttpUtils
Utility functions for convenience in HTTP processing.
Constructor Summary | |
HttpUtils() |
Method Summary | |
static void |
parseHeaderStream(java.io.InputStream is, java.util.Hashtable headers, java.util.Vector keys) Reads HTTP headers from the given input stream, parses them and puts the resulting keys and values into the given Hashtable and Vector objects. |
static java.lang.String |
readCanonicalLine(java.io.InputStream in) |
static boolean |
requiresSingleValue(java.lang.String header) Checks whether the given HTTP header is required to have at most one value in a single message. |
static java.lang.String |
toTitleCase(java.lang.String s) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HttpUtils()
Method Detail |
public static java.lang.String readCanonicalLine(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static java.lang.String toTitleCase(java.lang.String s)
public static void parseHeaderStream(java.io.InputStream is, java.util.Hashtable headers, java.util.Vector keys) throws java.io.IOException
is
- An input stream positioned at the beginning of the headers.headers
- A hashtable to contain the parsed header keys and values.keys
- A vector to contain the parsed header keys (to preserve the order of the headers). If null
, the order in which the headers were read is lost.java.io.IOException
public static boolean requiresSingleValue(java.lang.String header)
header
- The string name of the HTTP header to check.true
if the given header must have at most one value; false
if the header may have more than one value, or if the header is unrecognized.
|
Oracle Security Developer Tools Crypto Java API Reference 10g (10.1.4.0.1) B28171-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |