| org.w3c.www.mime.MimeHeaderHolder
All known Subclasses: org.w3c.www.mime.MimeHeaders, org.w3c.www.http.HttpMessage, org.w3c.jigsaw.frames.CGIHeaderHolder,
MimeHeaderHolder | public interface MimeHeaderHolder (Code) | | |
Method Summary | |
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 parsed. |
notifyBeginParsing | public boolean notifyBeginParsing(MimeParser parser) throws MimeParserException, 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: MimeParserException - if the parsing failed 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 parsed.
Parameters: name - The name of the encountered header. Parameters: buf - The byte buffer containing the value. Parameters: off - Offset of the header value in the above buffer. Parameters: len - Length of the value in the above header. exception: MimeParserException - if the parsing failed |
|
|