| |
|
| java.lang.Object org.w3c.www.http.HttpMessage org.w3c.www.http.HttpEntityMessage org.w3c.www.http.HttpReplyMessage org.w3c.jigsaw.http.Reply
All known Subclasses: org.w3c.jigsaw.webdav.DAVReply,
Constructor Summary | |
public | Reply(Client client) Create a new Reply instance for the given client. | public | Reply(Client client, Request request, short major, short minor, int status) Create a new reply for the given client. |
chunkable | protected Boolean chunkable(Code) | | Should this reply be chunked ?
If so, the reply should prepare itself to send back theappropriate transfer encoding header, and return true, otherwise it should just returnfalse. |
infilters | protected int infilters(Code) | | |
is_proxy | protected boolean is_proxy(Code) | | Is this reply a proxy reply.
|
Reply | public Reply(Client client)(Code) | | Create a new Reply instance for the given client.
Parameters: client - The client to who this reply is directed. |
Reply | public Reply(Client client, Request request, short major, short minor, int status)(Code) | | Create a new reply for the given client.
Parameters: client - The client ot who the reply is directed. |
canChunkTransfer | public boolean canChunkTransfer()(Code) | | |
emit | public void emit(OutputStream out, int what) throws IOException(Code) | | Parameters: out - The output stream to emit the message to. Parameters: what - (fixme doc) exception: IOException - If the message couldn't be emited to the given stream, due to IO errors. |
getContentType | public MimeType getContentType()(Code) | | Get the entity MIME type.
An HttpMimeType object describing the entity's type, or null if udefined. |
getInputFileDescriptor | public FileDescriptor getInputFileDescriptor()(Code) | | |
getOutputStream | public synchronized OutputStream getOutputStream(boolean doEmit) throws IOException(Code) | | Get the reply output stream.
Parameters: doEmit - Emit that reply before giving out the output stream. An OutputStream instance. exception: IOException - If the output stream could not get opened. |
getOutputStream | public OutputStream getOutputStream() throws IOException(Code) | | Get that reply output stream.
The reply is first emitted to the stream, and the opened stream
is returned back to the caller.
An OutputStream instance. exception: IOException - If the output stream could not get opened. |
hasContentLength | public boolean hasContentLength()(Code) | | |
hasContentType | public boolean hasContentType()(Code) | | |
hasStream | public boolean hasStream()(Code) | | |
isDynamic | public boolean isDynamic()(Code) | | is is dynamic or not?
|
keepProxyConnection | public boolean keepProxyConnection()(Code) | | |
openStream | public InputStream openStream()(Code) | | Open this reply body stream.
This is used to send the reply body back to the client.
An InputStream containing the reply body, which is dumpedback to the client. |
setContent | public void setContent(String msg, String encoding)(Code) | | Set this reply content.
This method allows to set the reply content to a simple String instance.
Parameters: msg - The reply content. encoding, the encoding of the reply |
setContent | public void setContent(String msg)(Code) | | Set this reply content.
This method allows to set the reply content to a simple String instance.
encoding will be by default "ISO8859_1"
Parameters: msg - The reply content. |
setDynamic | public void setDynamic(boolean dyn)(Code) | | set the reply to be a reply for dynamic content
Parameters: a - boolean, true if the reply is generated by a dynamic |
setKeepConnection | public void setKeepConnection(boolean onoff)(Code) | | |
setProxy | public void setProxy(boolean onoff)(Code) | | Mark this reply as being a proxy reply.
|
setProxyConnection | public void setProxyConnection(String value)(Code) | | |
setStream | public void setStream(org.w3c.jigsaw.html.HtmlGenerator g)(Code) | | Sets the reply stream to the given HtmlGenerator stream.
Parameters: g - The HtmlGenerator whose output is to be used as the reply body. |
tryKeepConnection | public boolean tryKeepConnection()(Code) | | |
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)
|
|
|
|