org.glassfish.grizzly.http.multipart
Class MultipartScanner

java.lang.Object
  extended by org.glassfish.grizzly.http.multipart.MultipartScanner

public class MultipartScanner
extends Object

Entry point for the multipart message processing. Initiates non-blocking, asynchronous multipart message parsing and processing.

Since:
2.0.1
Author:
Alexey Stashok, Heinrich Schuchardt

Field Summary
static String BOUNDARY_ATTR
           
 
Method Summary
static void scan(MultipartEntry multipartMixedEntry, MultipartEntryHandler partHandler, CompletionHandler<MultipartEntry> completionHandler)
          Initialize the multipart/mixed MultipartEntry processing.
static void scan(Request request, MultipartEntryHandler partHandler, CompletionHandler<Request> completionHandler)
          Initialize the multipart HTTP request processing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOUNDARY_ATTR

public static final String BOUNDARY_ATTR
See Also:
Constant Field Values
Method Detail

scan

public static void scan(Request request,
                        MultipartEntryHandler partHandler,
                        CompletionHandler<Request> completionHandler)
Initialize the multipart HTTP request processing.

Parameters:
request - the multipart HTTP request.
partHandler - the MultipartEntryHandler, which is responsible for processing multipart entries.
completionHandler - CompletionHandler, which is invoked after multipart Request has been processed, or error occurred.

scan

public static void scan(MultipartEntry multipartMixedEntry,
                        MultipartEntryHandler partHandler,
                        CompletionHandler<MultipartEntry> completionHandler)
Initialize the multipart/mixed MultipartEntry processing.

Parameters:
multipartMixedEntry - the multipart/mixed MultipartEntry.
partHandler - the MultipartEntryHandler, which is responsible for processing multipart sub-entries.
completionHandler - CompletionHandler, which is invoked after multipart/mixed MultipartEntry has been processed, or error occurred.


Copyright © 2013 Oracle Corporation. All Rights Reserved.