Method Summary |
|
public static HttpAccept | makeAccept(MimeType type, double quality) Create an Accept header clause.
Parameters: type - The MIME type that you will accept. Parameters: quality - The quality you are willing to set to that MIME type. |
public static HttpAccept | makeAccept(MimeType type) Create an Accept header clause.
This will be assigned the default 1.0 quality.
Parameters: type - The MIME type that you will accept. |
public static HttpAcceptCharset | makeAcceptCharset(String charset, double quality) Build an Accept-Charset header clause.
Parameters: charset - The accepted charset. Parameters: quality - The quality under which this charset is accepted. |
public static HttpAcceptCharset | makeAcceptCharset(String charset) Build an Accept-Charset header clause.
Uses the default 1.0 quality.
Parameters: charset - The accepted charset. |
public static HttpAcceptCharsetList | makeAcceptCharsetList(HttpAcceptCharset charsets) Build a list of accepted charset for the Accept-Charset
header.
Parameters: charsets - A list of accepted charsets, encoded as an arrayor null to create an empty list. |
public static HttpAcceptEncoding | makeAcceptEncoding(String enc, double quality) Build an Accept-Encoding header clause.
Parameters: enc - The accepted encoding. Parameters: quality - The quality at which this encoding is accepted. |
public static HttpAcceptEncoding | makeAcceptEncoding(String enc) Build an Accept-Encoding header clause.
Uses the default 1.0 quality.
Parameters: enc - The accepted encoding. |
public static HttpAcceptEncodingList | makeAcceptEncodingList(HttpAcceptEncoding encs) Build a list of accept encoding clauses for the Accept-Encoding
header. |
public static HttpAcceptLanguage | makeAcceptLanguage(String lang, double quality) Build an Accept-Language header clause.
Parameters: lang - The accepted language. Parameters: quality - The quality at which this language is accepted. |
public static HttpAcceptLanguage | makeAcceptLanguage(String lang) Build an Accept-Language header clause.
Uses the default 1.0 quality.
Parameters: lang - The accepted language. |
public static HttpAcceptLanguageList | makeAcceptLanguageList(HttpAcceptLanguage langs) Build a list of accept language clauses for the Accept-Language
header. |
public static HttpAcceptList | makeAcceptList(HttpAccept accepts) Build a list of accept clause, ready for the Accept header.
Parameters: accepts - The various accept clauses, as build through calls tomakeAccept and gathered in an array, or null to create an empty list. |
public static HttpBag | makeBag(String name) Build a empty bag instance.
Bags are used in PEP and PICS.
Parameters: name - The name of the bag to construct. |
public static HttpCacheControl | makeCacheControl() Build an empty cache control directive. |
public static HttpChallenge | makeChallenge(String scheme) Build a challenge requesting authorization from a client.
Parameters: scheme - The scheme used by that challenge. |
public static HttpContentRange | makeContentRange(String unit, int firstpos, int lastpos, int length) Build the description of a HTTP content range.
Parameters: unit - The unit of that range. Parameters: firstpos - The first position of that range (can be -1 to indicate a postfix range. Parameters: lastpost - The last position of that range (can be -1 to indicate a prefix range). Parameters: length - The full length of the entity from which that range wastaken. |
public static HttpCookie | makeCookie(String name, String value) Build a single cookie value.
Parameters: name - The name of that cookie. Parameters: value - The value of that cookie. |
public static HttpCookieList | makeCookieList(HttpCookie cookies) Build a list of cookies out of a set of cookies.
Parameters: cookies - The cookies to be added to the list, may benull to create an empty list. |
public static HttpCredential | makeCredential(String scheme) Build credential informations.
Parameters: scheme - The scheme for that credentials. |
public static HttpDate | makeDate(long date) Build an HTTP date object.
Parameters: date - The date, given in milliseconds since Java epoch. |
public static HttpDate | makeDate() Build an HTTP date object representing the current time. |
public static HttpEntityTag | makeETag(boolean isWeak, String tag) Build an entity tag object.
Parameters: isWeak - Is this a weak entity tag. Parameters: tag - The tag encoded as a String. |
public static HttpEntityTagList | makeETagList(HttpEntityTag tags) Build an entity tag list.
Parameters: tags - A list of enetity tags, encoded as an array, or null to create an empty list. |
public static HttpInteger | makeInteger(int i) Build a wrapper for an HTTP integer.
Parameters: i - The integer to wrap for HTTP transportation. |
public static HttpMimeType | makeMimeType(MimeType type) Build a wrapper for a MIME type suitable for HTTP transportation.
Parameters: type - The MIME type to wrap. |
public static HttpRange | makeRange(String unit, int firstpos, int lastpos) Build an object representing an HTTP range.
Parameters: unit - The units in which that byte range is measured. Parameters: firstpos - The first position of requested byte range. Parameters: lastpos - The last position of requested byte range. |
public static HttpRangeList | makeRangeList(HttpRange ranges) Build a list of ranges.
Parameters: ranges - A list of ranges, encoded as an array, or null to create an empty list. |
public static HttpSetCookie | makeSetCookie(String name, String value) Build a set cookie clause for the Set-Cookie header.
Parameters: name - The name of the cookie we are requesting to be set. Parameters: value - It's value. |
public static HttpSetCookieList | makeSetCookieList(HttpSetCookie setcookies) Build a list of set cookies commands.
Parameters: setcookies - A list of set cookie commands, encoded as anarray, or null to build an empty list. |
public static HttpString | makeString(String str) Build a wrapper for a String, for HTTP transportation.
Parameters: str - The String (or token) to wrap. |
public static HttpTokenList | makeStringList(String list) Build a list of strings.
Parameters: list - The list of strings, encoded as an array, or null to create an empty list. |
public static HttpTokenList | makeStringList(String item) Build a list of one string.
Parameters: item - The item to be added to the list. |
public static HttpWarning | makeWarning(int status, String agent, String text) Build an HTTP Warning object.
Parameters: status - The warning status code. Parameters: agent - The agent generating that warning. Parameters: text - The text for the warning. |
public static HttpWarning | makeWarning(int status) Build an HTTP Warning object.
Parameters: status - The warning status code. |
public static HttpWarningList | makeWarningList(HttpWarning warnings) Build a list of warnings for the Warning header.
Parameters: warnings - A list of warning encoded as an array, or null to get an empty list. |
public static HttpAccept | parseAccept(String strval) Build an accept object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpAcceptCharset | parseAcceptCharset(String strval) Build an accept charset object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpAcceptCharsetList | parseAcceptCharsetList(String strval) Build an accept charset list object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpAcceptEncoding | parseAcceptEncoding(String strval) Build an accept encoding object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpAcceptEncodingList | parseAcceptEncodingList(String strval) Build an accept encoding list object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpAcceptLanguage | parseAcceptLanguage(String strval) Build an accept language object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpAcceptLanguageList | parseAcceptLanguageList(String strval) Build an accept language list object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpAcceptList | parseAcceptList(String strval) Build an accept list object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpBag | parseBag(String strval) Build a bag object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpCacheControl | parseCacheControl(String strval) Build a cache control object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpChallenge | parseChallenge(String strval) Build a challenge object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpContentRange | parseContentRange(String strval) Build a content range object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpCookieList | parseCookieList(String strval) Build a cookie list object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpCredential | parseCredential(String strval) Build a credential object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpDate | parseDate(String strval) Build a date object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpEntityTag | parseETag(String strval) Build an entity tag object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpEntityTagList | parseEntityTagList(String strval) Build an entity tag list object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpInteger | parseInteger(String strval) Build an integer object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpMimeType | parseMimeType(String strval) Build an MIME type object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpRange | parseRange(String strval) Build a range object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpRangeList | parseRangeList(String strval) Build a list of ranges object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpSetCookieList | parseSetCookieList(String strval) Build a list of set cookies object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpString | parseString(String strval) Build a String object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpTokenList | parseTokenList(String strval) Build a list of string object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpWarning | parseWarning(String strval) Build a warning object by parsing the given string.
Parameters: strval - The String to parse. |
public static HttpWarningList | parseWarningList(String strval) Build a list of warnings object by parsing the given string.
Parameters: strval - The String to parse. |