| java.lang.Object org.w3c.www.http.HttpMessage org.w3c.www.http.HttpEntityMessage org.w3c.www.http.HttpRequestMessage
All known Subclasses: org.w3c.jigsaw.http.Request, org.w3c.www.protocol.http.Request,
H_ACCEPT | public static int H_ACCEPT(Code) | | |
H_ACCEPT_CHARSET | public static int H_ACCEPT_CHARSET(Code) | | |
H_ACCEPT_ENCODING | public static int H_ACCEPT_ENCODING(Code) | | |
H_ACCEPT_LANGUAGE | public static int H_ACCEPT_LANGUAGE(Code) | | |
H_AUTHORIZATION | public static int H_AUTHORIZATION(Code) | | |
H_EXPECT | public static int H_EXPECT(Code) | | |
H_FROM | public static int H_FROM(Code) | | |
H_HOST | public static int H_HOST(Code) | | |
H_IF_MATCH | public static int H_IF_MATCH(Code) | | |
H_IF_MODIFIED_SINCE | public static int H_IF_MODIFIED_SINCE(Code) | | |
H_IF_NONE_MATCH | public static int H_IF_NONE_MATCH(Code) | | |
H_IF_RANGE | public static int H_IF_RANGE(Code) | | |
H_IF_UNMODIFIED_SINCE | public static int H_IF_UNMODIFIED_SINCE(Code) | | |
H_MAX_FORWARDS | public static int H_MAX_FORWARDS(Code) | | |
H_PROXY_AUTHORIZATION | public static int H_PROXY_AUTHORIZATION(Code) | | |
H_RANGE | public static int H_RANGE(Code) | | |
H_REFERER | public static int H_REFERER(Code) | | |
H_TE | public static int H_TE(Code) | | |
H_USER_AGENT | public static int H_USER_AGENT(Code) | | |
method | protected String method(Code) | | The method to execute on the target resource.
|
proxy | protected URL proxy(Code) | | The proxy to use for that request, if any.
|
url | protected URL url(Code) | | The target resource, identified by its URL.
|
HttpRequestMessage | public HttpRequestMessage()(Code) | | |
getAccept | public HttpAccept[] getAccept()(Code) | | Get this request accept list.
A list of Accept clauses encoded as an array of HttpAcceptinstances, or null if undefined. |
getAcceptCharset | public HttpAcceptCharset[] getAcceptCharset()(Code) | | Get the list of accepted charsets for this request.
The list of accepted languages encoded as an array ofinstances of HttpAcceptCharset, or null if undefined. |
getAcceptEncoding | public HttpAcceptEncoding[] getAcceptEncoding()(Code) | | Get the list of accepted encodings.
A list of token describing the accepted encodings, or null if undefined. |
getAcceptLanguage | public HttpAcceptLanguage[] getAcceptLanguage()(Code) | | Get the list of accepted languages for this request.
The list of accepted languages encoded as an array ofinstances of HttpAcceptLanguage, or null ifundefined. |
getAuthorization | public HttpCredential getAuthorization()(Code) | | Get the authorization associated with this request.
An instance of HttpCredential of nullif undefined. |
getExpect | public String getExpect()(Code) | | Get this request's Expect header value.
This header as a String. |
getFrom | public String getFrom()(Code) | | Get the originator (from header value) of the request.
The originator description, as a String, or null if undefined. |
getHost | public String getHost()(Code) | | Get the host header.
The host header, encoded as a String, or nullif undefined. |
getIfMatch | public HttpEntityTag[] getIfMatch()(Code) | | Get the conditional matching set of entity tags.
An array of HttpEntityTag instances, or nullif undefined. |
getIfModifiedSince | public long getIfModifiedSince()(Code) | | Get the if-modified-since conditional.
A long, giving the If-Modified-Since date value as the numberof milliseconds since Java epoch, or -1 if undefined. |
getIfNoneMatch | public HttpEntityTag[] getIfNoneMatch()(Code) | | Get the conditional none matching entity tags.
An entity tag list, encoded as an array of HttpEntityTag, ornull if undefined. |
getIfRange | public HttpEntityTag getIfRange()(Code) | | Get the if-range conditional if any.
Warning: This API doesn't accept If-Range header that
contains date value (if you want to discuss why, send me email)
An HttpEntityTag instance, or null if that header is not defined. |
getIfUnmodifiedSince | public long getIfUnmodifiedSince()(Code) | | Get the if unmodified since conditional date.
The date encoded as a long number of milliseconds sinceJava runtime epoch, or -1 if undefined. |
getMaxForwards | public int getMaxForwards()(Code) | | Get the maximum allowed count of hops for the request.
An integer giving the number of hops, or -1if undefined. |
getMaxStale | public int getMaxStale()(Code) | | Get the max-stale directive value of the cache control
header.
The max-stale value, as a number of seconds, or -1 if undefined. |
getMethod | public String getMethod()(Code) | | Get this request's method.
The request method, as a String. |
getMinFresh | public int getMinFresh()(Code) | | Get the min-fresh directive value of the cache control
header.
The min-fresh value, as a number of seconds, or -1 if undefined. |
getProxy | public URL getProxy()(Code) | | Get the proxy to use for that request.
The proxy's URL, or null if none is set. |
getProxyAuthorization | public HttpCredential getProxyAuthorization()(Code) | | Get the authorization associated with this request.
An instance of HttpCredential of nullif undefined. |
getRange | public HttpRange[] getRange()(Code) | | Get the ranges queried by this request.
A list of ranges, encoded as an array of HttpRange instanceor null if undefined. |
getReferer | public String getReferer()(Code) | | Get the referer of the request.
A String encoding the referer (generally an URL), ornull if undefined. |
getTE | public HttpAcceptEncoding[] getTE()(Code) | | Get the list of restricted transfer encodings.
A list of token describing the restreicted TE, or null if undefined. |
getURL | public URL getURL()(Code) | | Get this request's target URI.
This will only return the absolute path of the requested resource, even
if the actual request came with the full path as an URI.
An URL instance, or null if undefined. |
getUserAgent | public String getUserAgent()(Code) | | Get the user agent String.
The user agent description, as a String, or null if undefined. |
hasAuthorization | public boolean hasAuthorization()(Code) | | Does this request has some specific authorization infos.
A boolean. |
hasProxy | public boolean hasProxy()(Code) | | Will this request use a proxy when executed ?
A boolean. |
notifyEndParsing | public void notifyEndParsing(MimeParser parser) throws HttpParserException, IOException(Code) | | All the headers have been parsed, take any appropriate actions.
Here we will verify that the request is HTTP/1.1 compliant
for the Host header.
Parameters: parser - The Mime parser. exception: MimeParserException - if the parsing failed exception: IOException - if an IO error occurs. |
setAccept | public void setAccept(HttpAccept accepts)(Code) | | Set the list of accept clauses attached to this request.
Parameters: accepts - The list of accept clauses encoded as an arrayof HttpAccept instances, or null to reset the value. |
setAcceptCharset | public void setAcceptCharset(HttpAcceptCharset charsets)(Code) | | Set the list of accepted charsets for this request.
Parameters: charsets - The list of accepted charsets, encoded as an arrayof HttpAcceptCharset instances, or null to resetthe value. |
setAcceptEncoding | public void setAcceptEncoding(HttpAcceptEncoding encoding)(Code) | | Set the list of accepted encodings.
Parameters: encodings - The list of accepted encodings, as an array,of HttpAcceptEncoding or null to reset the value. |
setAcceptLanguage | public void setAcceptLanguage(HttpAcceptCharset langs)(Code) | | Set the list of accepted languages for this request.
Parameters: langs - The list of accepted languages, encoded as an arrayof HttpAcceptLanguage instances, or null to resetvalue. |
setAuthorization | public void setAuthorization(HttpCredential credentials)(Code) | | Set the authorization associated with this request.
Parameters: credentials - The credentials to attach to this request, ornull to reset the value. |
setExpect | public void setExpect(String expect)(Code) | | Set this request's Expect header.
Parameters: exp - The value of the header (ex: "100-continue". |
setFrom | public void setFrom(String from)(Code) | | Set the originator of this request.
Parameters: from - The description of the originator, as an email address,or null to reset the value. |
setHost | public void setHost(String host)(Code) | | Set the host header value.
Parameters: host - The String representing the target host of the request,or null to reset the value. |
setIfMatch | public void setIfMatch(HttpEntityTag etags)(Code) | | Set the conditional matching set of entity tags.
Parameters: etags - An array of HttpEntityTag, one per item in the set, ornull to reset the header value. |
setIfModifiedSince | public void setIfModifiedSince(long ims)(Code) | | Set the if-modified-since conditional.
Parameters: ims - The date of last modification, as the number of millisecondssince Java epoch, or -1 to reset the value. |
setIfNoneMatch | public void setIfNoneMatch(HttpEntityTag etags)(Code) | | Set the conditional none matching entity tags.
Parameters: etags - An array of HttpEntityTag, one per item in the set,or null to reset the value. |
setIfRange | public void setIfRange(HttpEntityTag etag)(Code) | | Set the if-range header value.
Parameters: etag - The contional etag, or null to resetprevious setting. |
setIfUnmodifiedSince | public void setIfUnmodifiedSince(long date)(Code) | | Set the if-unmodified-since conditional date.
Parameters: date - The date, encoded as the number of milliseconds sinceJava epoch, or -1 to reset value. |
setMaxForwards | public void setMaxForwards(int hops)(Code) | | Set the maximum allowed count of hops for that request.
Parameters: hops - The hops count, or -1 to reset value. |
setMaxStale | public void setMaxStale(int maxstale)(Code) | | Set the max-stale directive value.
Parameters: maxstale - A number of seconds giving the allowed drift fora resource that is no more valid, or -1 to resetthe value. |
setMethod | public void setMethod(String method)(Code) | | Set this request's method.
Parameters: mth - The request method. |
setMinFresh | public void setMinFresh(int minfresh)(Code) | | Set the min-fresh directive value of the cache control
header.
Parameters: minfresh - The min-fresh value, in seconds, or -1to reset value. |
setProxy | public void setProxy(URL proxy)(Code) | | Set the proxy to use for that request.
Parameters: proxy - The proxy's URL, or null to reset value. |
setProxyAuthorization | public void setProxyAuthorization(HttpCredential credentials)(Code) | | Set the proxy authorization associated with that request.
Parameters: credentials - The credentials, or null toreset the value. |
setRange | public void setRange(HttpRange ranges)(Code) | | Set the ranges queried by this request.
Parameters: ranges - The list of ranges, encoded as an array of instancesof HttpRange, or null to reset the value. |
setReferer | public void setReferer(String referer)(Code) | | Set the referer of this request.
Parameters: referer - The referer of the request, or nullto reset the value. |
setTE | public void setTE(HttpAcceptEncoding encoding)(Code) | | Set the list of restricted transfer encodings
Parameters: encodings - The list of accepted encodings, as an array,of HttpAcceptEncoding or null to reset the value. |
setURL | public void setURL(URL url)(Code) | | Set this request URI.
The provided URI should only include the absolute path of the target
request, see the setHost method for how to set the actual
host of the target resource.
Parameters: url - The target URL of the request, as an URL instance. |
setUserAgent | public void setUserAgent(String ua)(Code) | | Set the user agent description header.
Parameters: ua - The description of the user agent emiting the request, ornull to reset the value. |
startEmit | protected void startEmit(OutputStream out, int what) throws IOException(Code) | | This message is about to be emited, emit the request-line first !
Parameters: out - The output stream to emit the request to. exception: IOException - If some IO error occured while emiting therequest. |
Methods inherited from org.w3c.www.http.HttpMessage | public void addConnection(String name)(Code)(Java Doc) public void addNoCache(String name)(Code)(Java Doc) public void addPragma(String name)(Code)(Java Doc) public void addProxyConnection(String name)(Code)(Java Doc) public void addTransferEncoding(String name)(Code)(Java Doc) public void addVia(String via)(Code)(Java Doc) public boolean checkNoStore()(Code)(Java Doc) public boolean checkOnlyIfCached()(Code)(Java Doc) public void delState(String name)(Code)(Java Doc) public void dump(OutputStream out)(Code)(Java Doc) public void emit(OutputStream out) throws IOException(Code)(Java Doc) public void emit(OutputStream out, int what) throws IOException(Code)(Java Doc) protected void emitHeaders(OutputStream out, int what) throws IOException(Code)(Java Doc) protected void endEmit(OutputStream out, int what) throws IOException(Code)(Java Doc) public Enumeration enumerateHeaderDescriptions(boolean all)(Code)(Java Doc) public Enumeration enumerateHeaderDescriptions()(Code)(Java Doc) protected synchronized String generateExtNamespace()(Code)(Java Doc) public String getCManExtHeader(String ext, String header)(Code)(Java Doc) public String getCOptExtHeader(String ext, String header)(Code)(Java Doc) public HttpCacheControl getCacheControl()(Code)(Java Doc) public HttpMessage getClone()(Code)(Java Doc) public String[] getConnection()(Code)(Java Doc) public HttpCookieList getCookie()(Code)(Java Doc) public long getDate()(Code)(Java Doc) public HttpMessage getDeeperClone()(Code)(Java Doc) public long getEmitDate()(Code)(Java Doc) public String getExtHeader(String ext, String header)(Code)(Java Doc) public HttpExtList getExtList(String id)(Code)(Java Doc) public Dictionary getExtensionHeaders(HttpExt ext)(Code)(Java Doc) public HeaderValue getHeaderValue(String name, HeaderValue def)(Code)(Java Doc) final public HeaderValue getHeaderValue(String name)(Code)(Java Doc) final public HeaderValue getHeaderValue(int idx)(Code)(Java Doc) public HeaderValue getHeaderValue(HeaderDescription d)(Code)(Java Doc) public HttpExtList getHttpCManExtDecl()(Code)(Java Doc) public HttpExtList getHttpCOptExtDecl()(Code)(Java Doc) public HttpExtList getHttpManExtDecl()(Code)(Java Doc) public HttpExtList getHttpOptExtDecl()(Code)(Java Doc) public short getMajorVersion()(Code)(Java Doc) public String getManExtHeader(String ext, String header)(Code)(Java Doc) public int getMaxAge()(Code)(Java Doc) public short getMinorVersion()(Code)(Java Doc) public String[] getNoCache()(Code)(Java Doc) public String getOptExtHeader(String ext, String header)(Code)(Java Doc) public String[] getPragma()(Code)(Java Doc) public HttpBag getProtocol()(Code)(Java Doc) public HttpBag getProtocolInfo()(Code)(Java Doc) public HttpBag getProtocolQuery()(Code)(Java Doc) public HttpBag getProtocolRequest()(Code)(Java Doc) public String[] getProxyConnection()(Code)(Java Doc) public int getSMaxAge()(Code)(Java Doc) public HttpSetCookieList getSetCookie()(Code)(Java Doc) public Object getState(String name)(Code)(Java Doc) public Enumeration getStateNames()(Code)(Java Doc) public String[] getTrailer()(Code)(Java Doc) public String[] getTransferEncoding()(Code)(Java Doc) public String[] getUpgrade()(Code)(Java Doc) public String getValue(String name)(Code)(Java Doc) public String getValue(HeaderDescription d)(Code)(Java Doc) public String getVersion()(Code)(Java Doc) public String[] getVia()(Code)(Java Doc) public boolean hasConnection(String tok)(Code)(Java Doc) public boolean hasHeader(String name)(Code)(Java Doc) public boolean hasHeader(int idx)(Code)(Java Doc) public boolean hasPragma(String pragma)(Code)(Java Doc) public boolean hasProxyConnection(String tok)(Code)(Java Doc) public boolean hasState(String name)(Code)(Java Doc) public boolean hasTransferEncoding(String encoding)(Code)(Java Doc) public boolean notifyBeginParsing(MimeParser parser) throws HttpParserException, IOException(Code)(Java Doc) public void notifyEndParsing(MimeParser parser) throws HttpParserException, IOException(Code)(Java Doc) public void notifyHeader(String name, byte buf, int off, int len)(Code)(Java Doc) final public static void registerExtHeader(String name, String cls)(Code)(Java Doc) final protected static void registerHeader(String name, String cls)(Code)(Java Doc) final protected static void registerHeader(String name, String c, int i)(Code)(Java Doc) public void removeHeader(String name)(Code)(Java Doc) final public void removeHeader(int idx)(Code)(Java Doc) public void setCacheControl(HttpCacheControl control)(Code)(Java Doc) public void setConnection(String tokens)(Code)(Java Doc) public void setCookie(HttpCookieList cookie)(Code)(Java Doc) public void setDate(long date)(Code)(Java Doc) public void setEnd2EndExtensionAcknowledgmentHeader()(Code)(Java Doc) public synchronized void setExtensionHeader(HttpExt ext, String name, String value)(Code)(Java Doc) public void setHeaderValue(String name, HeaderValue value)(Code)(Java Doc) public void setHeaderValue(HeaderDescription d, HeaderValue v)(Code)(Java Doc) final public void setHeaderValue(int idx, HeaderValue value)(Code)(Java Doc) public void setHopByHopExtensionAcknowledgmentHeader()(Code)(Java Doc) public void setHttpCManExtDecl(HttpExtList exts)(Code)(Java Doc) public void setHttpCOptExtDecl(HttpExtList exts)(Code)(Java Doc) public void setHttpExtDecl(HttpExtList exts)(Code)(Java Doc) public void setHttpManExtDecl(HttpExtList exts)(Code)(Java Doc) public void setHttpOptExtDecl(HttpExtList exts)(Code)(Java Doc) public void setMaxAge(int maxage)(Code)(Java Doc) protected void setNamespaces(HttpExtList extl)(Code)(Java Doc) public void setNoCache(String nocache)(Code)(Java Doc) public void setNoCache()(Code)(Java Doc) public void setNoStore(boolean onoff)(Code)(Java Doc) public void setOnlyIfCached(boolean onoff)(Code)(Java Doc) public void setPragma(String tokens)(Code)(Java Doc) public void setProtocol(HttpBag bag)(Code)(Java Doc) public void setProtocolInfo(HttpBag bag)(Code)(Java Doc) public void setProtocolQuery(HttpBag bag)(Code)(Java Doc) public void setProtocolRequest(HttpBag bag)(Code)(Java Doc) public void setProxyConnection(String tokens)(Code)(Java Doc) public void setSMaxAge(int smaxage)(Code)(Java Doc) public void setSetCookie(HttpSetCookieList setcookie)(Code)(Java Doc) public void setState(String name, Object value)(Code)(Java Doc) public void setTrailer(String trailers)(Code)(Java Doc) public void setTransferEncoding(String tokens)(Code)(Java Doc) public void setUpgrade(String products)(Code)(Java Doc) public void setValue(String name, String strval)(Code)(Java Doc) public void setVia(String vias)(Code)(Java Doc) protected void startEmit(OutputStream out, int what) throws IOException(Code)(Java Doc)
|
|
|