ReadHandler, which implements the miltipart message parsing logic and delegates control to a
MultipartEntryHandler, when MultipartEntry data becomes available.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private boolean | |
| private boolean | |
| private final MultipartReadHandler. | |
| private final MultipartContext | |
| private final MultipartEntry | |
| private final MultipartEntryHandler | |
| private final CompletionHandler | |
| private final MultipartEntry | |
| private final NIOInputStream | |
| private final Request | |
| private final CompletionHandler | |
| private MultipartReadHandler. |
| Access | Constructor and Description |
|---|---|
| public | MultipartReadHandler(final Request request, final MultipartEntryHandler multipartHandler, final CompletionHandler<Request> completionHandler, final MultipartContext multipartContext)
|
| public | MultipartReadHandler(final MultipartEntry parentMultipartEntry, final MultipartEntryHandler multipartHandler, final CompletionHandler<MultipartEntry> completionHandler, final MultipartContext multipartContext)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | checkMultipartMixedComplete(final CompletionHandler<MultipartEntry> multipartMixedCompletionHandler)
|
| private void | |
| private void | |
| private int | |
| private void | |
| public void | onAllDataRead()
Implements org. Invoked when all data for the current request has been read. |
| public void | onDataAvailable()
Implements org. Invoked when data is available to be read without blocking. |
| public void | onError(Throwable t)
Implements org. Invoked when an error occurs processing the request asynchronously. |
| private boolean | |
| private boolean | |
| pack-priv void | |
| private void | |
| private boolean | |
| private String |
| boundary | back to summary |
|---|---|
| private final String boundary | |
| isFinished | back to summary |
|---|---|
| private boolean isFinished | |
| isMultipartMixed | back to summary |
|---|---|
| private boolean isMultipartMixed | |
| line | back to summary |
|---|---|
| private final MultipartReadHandler. | |
| multipartContext | back to summary |
|---|---|
| private final MultipartContext multipartContext | |
| multipartEntry | back to summary |
|---|---|
| private final MultipartEntry multipartEntry | |
| multipartHandler | back to summary |
|---|---|
| private final MultipartEntryHandler multipartHandler | |
| multipartMixedCompletionHandler | back to summary |
|---|---|
| private final CompletionHandler<MultipartEntry> multipartMixedCompletionHandler | |
| multipartMixedEntry | back to summary |
|---|---|
| private final MultipartEntry multipartMixedEntry | |
| parentInputStream | back to summary |
|---|---|
| private final NIOInputStream parentInputStream | |
| request | back to summary |
|---|---|
| private final Request request | |
| requestCompletionHandler | back to summary |
|---|---|
| private final CompletionHandler<Request> requestCompletionHandler | |
| state | back to summary |
|---|---|
| private MultipartReadHandler. | |
| MultipartReadHandler | back to summary |
|---|---|
| public MultipartReadHandler(final Request request, final MultipartEntryHandler multipartHandler, final CompletionHandler<Request> completionHandler, final MultipartContext multipartContext) | |
| MultipartReadHandler | back to summary |
|---|---|
| public MultipartReadHandler(final MultipartEntry parentMultipartEntry, final MultipartEntryHandler multipartHandler, final CompletionHandler<MultipartEntry> completionHandler, final MultipartContext multipartContext) | |
| checkComplete | back to summary |
|---|---|
| private void checkComplete() | |
| checkMultipartMixedComplete | back to summary |
|---|---|
| private void checkMultipartMixedComplete(final CompletionHandler<MultipartEntry> multipartMixedCompletionHandler) | |
| checkRequestComplete | back to summary |
|---|---|
| private void checkRequestComplete(final CompletionHandler<Request> requestCompletionHandler) | |
| feedMultipartEntry | back to summary |
|---|---|
private void feedMultipartEntry() throws Exception
| |
| findEndOfHeaderName | back to summary |
|---|---|
| private int findEndOfHeaderName(final Buffer buffer, int position, final int limit) | |
| finishHeadersParsing | back to summary |
|---|---|
| private void finishHeadersParsing() | |
| onAllDataRead | back to summary |
|---|---|
| public void onAllDataRead() throws Exception Implements org. Doc from org. Invoked when all data for the current request has been read.
| |
| onDataAvailable | back to summary |
|---|---|
| public void onDataAvailable() throws Exception Implements org. Doc from org. Invoked when data is available to be read without blocking. Data must be consumed by the handler implementation before re-registering.
| |
| onError | back to summary |
|---|---|
| public void onError(Throwable t) Implements org. Doc from org. Invoked when an error occurs processing the request asynchronously.
| |
| parseHeaders | back to summary |
|---|---|
| private boolean parseHeaders() | |
| process | back to summary |
|---|---|
| private boolean process() throws Exception | |
| readLine | back to summary |
|---|---|
| pack-priv void readLine() | |
| setHeader | back to summary |
|---|---|
| private void setHeader() | |
| skipPreamble | back to summary |
|---|---|
| private boolean skipPreamble() | |
| trim | back to summary |
|---|---|
| private String trim(final Buffer buffer, int position, int limit) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| private int | |
| public boolean | |
| private boolean | |
| private boolean | |
| public void | |
| private void | |
| public String |
| couldBeBoundaryOffset | back to summary |
|---|---|
| pack-priv int couldBeBoundaryOffset | |
| isBoundary | back to summary |
|---|---|
| pack-priv boolean isBoundary | |
| isComplete | back to summary |
|---|---|
| pack-priv boolean isComplete | |
| isCrLf | back to summary |
|---|---|
| pack-priv boolean isCrLf | |
| isFinalBoundary | back to summary |
|---|---|
| pack-priv boolean isFinalBoundary | |
| len | back to summary |
|---|---|
| pack-priv int len | |
| offset | back to summary |
|---|---|
| pack-priv int offset | |
| Line | back to summary |
|---|---|
| private Line() | |
| couldBeBoundary | back to summary |
|---|---|
| private boolean couldBeBoundary() | |
| getLineTerminatorLength | back to summary |
|---|---|
| private int getLineTerminatorLength() | |
| hasContent | back to summary |
|---|---|
| public boolean hasContent() | |
| isBoundary | back to summary |
|---|---|
| private boolean isBoundary() | |
| parseBoundary | back to summary |
|---|---|
| private boolean parseBoundary() | |
| reset | back to summary |
|---|---|
| public void reset() | |
| skip | back to summary |
|---|---|
private void skip()
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final MultipartReadHandler. | |
| public static final MultipartReadHandler. | |
| public static final MultipartReadHandler. | |
| public static final MultipartReadHandler. | |
| public static final MultipartReadHandler. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static MultipartReadHandler. | |
| public static MultipartReadHandler. |
| BODY | back to summary |
|---|---|
| public static final MultipartReadHandler. | |
| PARSE_MULTIPART_ENTRY_HEADERS | back to summary |
|---|---|
| public static final MultipartReadHandler. | |
| PREAMBLE | back to summary |
|---|---|
| public static final MultipartReadHandler. | |
| RESET | back to summary |
|---|---|
| public static final MultipartReadHandler. | |
| START_BODY | back to summary |
|---|---|
| public static final MultipartReadHandler. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static MultipartReadHandler. | |
| values | back to summary |
|---|---|
| public static MultipartReadHandler. | |