public class AbstractNioMultipartListener extends Object implements NioMultipartParserListener
NioMultipartParserListener providing empty implementation of all the callbacks.
| Constructor and Description |
|---|
AbstractNioMultipartListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onAllPartsFinished()
Called when all the parts have been read.
|
void |
onError(String message,
Throwable cause)
Called if an error occurs during the multipart parsing.
|
void |
onNestedPartFinished()
Called when a nested part has completed.
|
void |
onNestedPartStarted(Map<String,List<String>> headersFromParentPart)
Called when the parser is about to start a nested multipart.
|
void |
onPartFinished(org.synchronoss.cloud.nio.stream.storage.StreamStorage partBodyStreamStorage,
Map<String,List<String>> headersFromPart)
Called when a part has been parsed.
|
public void onPartFinished(org.synchronoss.cloud.nio.stream.storage.StreamStorage partBodyStreamStorage,
Map<String,List<String>> headersFromPart)
NioMultipartParserListenerCalled when a part has been parsed.
onPartFinished in interface NioMultipartParserListenerpartBodyStreamStorage - The StreamStorage from where the part body can be read.headersFromPart - The part headers.public void onAllPartsFinished()
NioMultipartParserListenerCalled when all the parts have been read.
onAllPartsFinished in interface NioMultipartParserListenerpublic void onNestedPartStarted(Map<String,List<String>> headersFromParentPart)
NioMultipartParserListenerCalled when the parser is about to start a nested multipart.
onNestedPartStarted in interface NioMultipartParserListenerheadersFromParentPart - The headers from the parent part.public void onNestedPartFinished()
NioMultipartParserListenerCalled when a nested part has completed.
onNestedPartFinished in interface NioMultipartParserListenerpublic void onError(String message, Throwable cause)
NioMultipartParserListenerCalled if an error occurs during the multipart parsing.
onError in interface NioMultipartParserListenermessage - The error messagecause - The error cause or null if there is no cause.Copyright © 2017. All rights reserved.