Top Description Fields Constructors Methods
org.glassfish.grizzly.http.multipart

public Class MultipartScanner

extends Object
Class Inheritance
Imports
java.util.HashMap, .Map, java.util.logging.Level, .Logger, org.glassfish.grizzly.CompletionHandler, .Grizzly, org.glassfish.grizzly.http.io.NIOInputStream, org.glassfish.grizzly.http.server.Request

Entry point for the multipart message processing. Initiates non-blocking, asynchronous multipart message parsing and processing.
Authors
Alexey Stashok, Heinrich Schuchardt
Since
2.0.1

Field Summary

Modifier and TypeField and Description
public static final String
private static final Logger
pack-priv static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
scan(final Request
the multipart HTTP request.
request
,
final MultipartEntryHandler
the MultipartEntryHandler, which is responsible for processing multipart entries.
partHandler
,
final CompletionHandler<Request>
CompletionHandler, which is invoked after multipart Request has been processed, or error occurred.
completionHandler
)

Initialize the multipart HTTP request processing.

public static void
scan(final MultipartEntry
the multipart/mixed MultipartEntry.
multipartMixedEntry
,
final MultipartEntryHandler
the MultipartEntryHandler, which is responsible for processing multipart sub-entries.
partHandler
,
final CompletionHandler<MultipartEntry>
CompletionHandler, which is invoked after multipart/mixed MultipartEntry has been processed, or error occurred.
completionHandler
)

Initialize the multipart/mixed MultipartEntry processing.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BOUNDARY_ATTRback to summary
public static final String BOUNDARY_ATTR
LOGGERback to summary
private static final Logger LOGGER
MULTIPART_CONTENT_TYPEback to summary
pack-priv static final String MULTIPART_CONTENT_TYPE

Constructor Detail

MultipartScannerback to summary
private MultipartScanner()

Method Detail

scanback to summary
public static void scan(final Request request, final MultipartEntryHandler partHandler, final CompletionHandler<Request> completionHandler)

Initialize the multipart HTTP request processing.

Parameters
request:Request

the multipart HTTP request.

partHandler:MultipartEntryHandler

the MultipartEntryHandler, which is responsible for processing multipart entries.

completionHandler:CompletionHandler<Request>

CompletionHandler, which is invoked after multipart Request has been processed, or error occurred.

scanback to summary
public static void scan(final MultipartEntry multipartMixedEntry, final MultipartEntryHandler partHandler, final CompletionHandler<MultipartEntry> completionHandler)

Initialize the multipart/mixed MultipartEntry processing.

Parameters
multipartMixedEntry:MultipartEntry

the multipart/mixed MultipartEntry.

partHandler:MultipartEntryHandler

the MultipartEntryHandler, which is responsible for processing multipart sub-entries.

completionHandler:CompletionHandler<MultipartEntry>

CompletionHandler, which is invoked after multipart/mixed MultipartEntry has been processed, or error occurred.