|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
things.data.processing.rfc822.HeaderProcessorv3
things.data.processing.http.HttpHeaderProcessor
public class HttpHeaderProcessor
Processes headers for HTTP. This implementation assumes 8-bit characters throughout the header.
Version History
EPG - Initial - 12 FEB 07
Field Summary | |
---|---|
static int |
HEADER_CONTENT_LENGTH
|
static java.lang.String |
HEADER_CONTENT_LENGTH_STRING
|
static int |
HEADER_CONTENT_TYPE
|
static java.lang.String |
HEADER_CONTENT_TYPE_STRING
|
static int |
HEADER_TRANSFER_ENCODING
|
static java.lang.String |
HEADER_TRANSFER_ENCODING_STRING
|
Fields inherited from class things.data.processing.rfc822.HeaderProcessorv3 |
---|
headerBuffer, headerBufferLength, headerLineBroken, MAX_HEADER_NAME_SIZE |
Constructor Summary | |
---|---|
HttpHeaderProcessor()
|
Method Summary | |
---|---|
protected java.util.List<java.lang.String> |
complete()
Complete on a specific header. |
protected void |
declarations()
All declarations should be put here, so they are done with any initialization. |
protected void |
headersComplete()
The headers are done. |
protected void |
match(int id)
This method will be called when a header is matched. |
void |
processHeader(java.io.InputStream input,
HttpHeaders headers)
Process the header. |
protected void |
start(java.lang.String messageId)
Start on a specific header. |
protected void |
unmatch(byte[] headerBuffer,
int size)
This method will be called when a header is unmatched. |
Methods inherited from class things.data.processing.rfc822.HeaderProcessorv3 |
---|
available, clearPause, close, declare, deplete, init, isDone, isLineBroken, isPaused, markSupported, process, read, writeOriginalHeaderNameWithColon |
Methods inherited from class java.io.InputStream |
---|
mark, read, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int HEADER_CONTENT_TYPE
public static final java.lang.String HEADER_CONTENT_TYPE_STRING
public static final int HEADER_CONTENT_LENGTH
public static final java.lang.String HEADER_CONTENT_LENGTH_STRING
public static final int HEADER_TRANSFER_ENCODING
public static final java.lang.String HEADER_TRANSFER_ENCODING_STRING
Constructor Detail |
---|
public HttpHeaderProcessor() throws java.lang.Throwable
java.lang.Throwable
Method Detail |
---|
public void processHeader(java.io.InputStream input, HttpHeaders headers) throws java.lang.Throwable
input
- the source input.headers
- the headers. all header data will be written into it.
java.lang.Throwable
protected void declarations() throws java.lang.Throwable
declarations
in class HeaderProcessorv3
java.lang.Throwable
protected void start(java.lang.String messageId) throws java.lang.Throwable
start
in class HeaderProcessorv3
messageId
- the id for the message being processed. The implementation may choose to ignore it.
java.lang.Throwable
protected void unmatch(byte[] headerBuffer, int size) throws java.lang.Throwable
unmatch
in class HeaderProcessorv3
headerBuffer
- What we read about the header already.size
- how much is actually in the buffer.
java.lang.Throwable
protected void match(int id) throws java.lang.Throwable
match
in class HeaderProcessorv3
id
- The defined id.
java.lang.Throwable
protected java.util.List<java.lang.String> complete() throws java.lang.Throwable
complete
in class HeaderProcessorv3
java.lang.Throwable
protected void headersComplete() throws java.lang.Throwable
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |