Class MultiPartParser

java.lang.Object
org.eclipse.jetty.server.MultiPartParser

public class MultiPartParser extends Object
A parser for MultiPart content type.
See Also:
  • Field Details

    • LOG

      public static final org.slf4j.Logger LOG
  • Constructor Details

  • Method Details

    • 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(ByteBuffer buffer, boolean last)
      Parse until next Event.
      Parameters:
      buffer - the buffer to parse
      last - 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(ByteBuffer buffer)
    • parseOctetContent

      protected boolean parseOctetContent(ByteBuffer buffer)
    • toString

      public String toString()
      Overrides:
      toString in class Object