| java.lang.Object org.w3c.jigsaw.frames.CGIHeaderHolder
CGIHeaderHolder | class CGIHeaderHolder implements MimeHeaderHolder(Code) | | Parsing the CGI output - The CGIHeaderHolder, to hold CGI headers.
|
Method Summary | |
public Enumeration | enumerateHeaders() Enumerate the headers defined by the holder. | public InputStream | getInputStream() Get the remaining output of the stream. | public String | getLocation() Get the location header value emited by the script. | public String | getStatus() Get the status emited by the script. | public String | getValue(String name) Get any header value (except status and location).
Parameters: name - The name of the header to fetch. | public boolean | notifyBeginParsing(MimeParser parser) The parsing is now about to start, take any appropriate action.
This hook can return a true boolean value to enforce
the MIME parser into transparent mode (eg the parser will not
try to parse any headers.
This hack is primarily defined for HTTP/0.9 support, it might
also be usefull for other hacks.
Parameters: parser - The Mime parser. | public void | notifyEndParsing(MimeParser parser) All the headers have been parsed, take any appropriate actions. | public void | notifyHeader(String name, byte buf, int off, int len) A new header has been emited by the script. |
enumerateHeaders | public Enumeration enumerateHeaders()(Code) | | Enumerate the headers defined by the holder.
A enumeration of header names, or null if noheader is defined. |
getInputStream | public InputStream getInputStream()(Code) | | Get the remaining output of the stream.
This should be called only once header parsing is done.
|
getLocation | public String getLocation()(Code) | | Get the location header value emited by the script.
|
getStatus | public String getStatus()(Code) | | Get the status emited by the script.
|
getValue | public String getValue(String name)(Code) | | Get any header value (except status and location).
Parameters: name - The name of the header to fetch. The string value of requested header, or nullif header was not defined. |
notifyBeginParsing | public boolean notifyBeginParsing(MimeParser parser) throws IOException(Code) | | The parsing is now about to start, take any appropriate action.
This hook can return a true boolean value to enforce
the MIME parser into transparent mode (eg the parser will not
try to parse any headers.
This hack is primarily defined for HTTP/0.9 support, it might
also be usefull for other hacks.
Parameters: parser - The Mime parser. A boolean true if the MimeParser shouldn'tcontinue the parsing, false otherwise. exception: IOException - if an IO error occurs. |
notifyEndParsing | public void notifyEndParsing(MimeParser parser) throws IOException(Code) | | All the headers have been parsed, take any appropriate actions.
Parameters: parser - The Mime parser. exception: IOException - if an IO error occurs. |
notifyHeader | public void notifyHeader(String name, byte buf, int off, int len) throws MimeParserException(Code) | | A new header has been emited by the script.
If the script is not an NPH, then it must at least
emit one header, so we are safe here, although people may not be safe
against the spec.
Parameters: name - The header name. Parameters: buf - The header bytes. Parameters: off - The begining of the value bytes in above buffer. Parameters: len - The length of the value bytes in above buffer. exception: MimeParserException - if parsing failed. |
|
|