Package org.eclipse.jetty.http
Class MultiPart.AbstractPartsListener
java.lang.Object
org.eclipse.jetty.http.MultiPart.AbstractPartsListener
- All Implemented Interfaces:
MultiPart.Parser.Listener
- Enclosing class:
- MultiPart
public abstract static class MultiPart.AbstractPartsListener
extends Object
implements MultiPart.Parser.Listener
A MultiPart.Parser.Listener
that emits MultiPart.Part
objects.
Subclasses implement MultiPart.Parser.Listener.onPartContent(Content.Chunk)
and onPart(String, String, HttpFields)
to create the
parts of the multipart content.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
abstract void
onPart
(String name, String fileName, HttpFields headers) Callback method invoked when aMultiPart.Part
has been parsed.void
Callback method invoked when the end of a part is parsed.void
onPartHeader
(String headerName, String headerValue) Callback method invoked when a part header is parsed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.http.MultiPart.Parser.Listener
onComplete, onFailure, onPartBegin, onPartContent, onPartHeaders, onViolation
-
Constructor Details
-
AbstractPartsListener
public AbstractPartsListener()
-
-
Method Details
-
getName
-
getFileName
-
onPartHeader
Description copied from interface:MultiPart.Parser.Listener
Callback method invoked when a part header is parsed.
- Specified by:
onPartHeader
in interfaceMultiPart.Parser.Listener
- Parameters:
headerName
- the header nameheaderValue
- the header value
-
onPartEnd
public void onPartEnd()Description copied from interface:MultiPart.Parser.Listener
Callback method invoked when the end of a part is parsed.
- Specified by:
onPartEnd
in interfaceMultiPart.Parser.Listener
-
onPart
Callback method invoked when a
MultiPart.Part
has been parsed.- Parameters:
name
- the part namefileName
- the part fileNameheaders
- the part headers
-