Package org.eclipse.jetty.http
Class MultiPartParser
- java.lang.Object
-
- org.eclipse.jetty.http.MultiPartParser
-
public class MultiPartParser extends java.lang.Object
A parser for MultiPart content type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MultiPartParser.FieldState
static interface
MultiPartParser.Handler
static class
MultiPartParser.State
-
Constructor Summary
Constructors Constructor Description MultiPartParser(MultiPartParser.Handler handler, java.lang.String boundary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiPartParser.Handler
getHandler()
MultiPartParser.State
getState()
boolean
isState(MultiPartParser.State state)
boolean
parse(java.nio.ByteBuffer buffer, boolean last)
Parse until next Event.protected boolean
parseMimePartHeaders(java.nio.ByteBuffer buffer)
protected boolean
parseOctetContent(java.nio.ByteBuffer buffer)
void
reset()
java.lang.String
toString()
-
-
-
Field Detail
-
LOG
public static final Logger LOG
-
-
Constructor Detail
-
MultiPartParser
public MultiPartParser(MultiPartParser.Handler handler, java.lang.String boundary)
-
-
Method Detail
-
reset
public void reset()
-
getHandler
public MultiPartParser.Handler getHandler()
-
getState
public MultiPartParser.State getState()
-
isState
public boolean isState(MultiPartParser.State state)
-
parse
public boolean parse(java.nio.ByteBuffer buffer, boolean last)
Parse until next Event.- Parameters:
buffer
- the buffer to parselast
- whether this buffer contains last bit of content- Returns:
- True if an
HttpParser.RequestHandler
method was called and it returned true;
-
parseMimePartHeaders
protected boolean parseMimePartHeaders(java.nio.ByteBuffer buffer)
-
parseOctetContent
protected boolean parseOctetContent(java.nio.ByteBuffer buffer)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-