com.oreilly.servlet.multipart
Class Part

java.lang.Object
  extended by com.oreilly.servlet.multipart.Part
Direct Known Subclasses:
FilePart, ParamPart

public abstract class Part
extends java.lang.Object

A Part is an abstract upload part which represents an INPUT form element in a multipart/form-data form submission.

Version:
1.0, 2000/10/27, initial revision
Author:
Geoff Soutter
See Also:
FilePart, ParamPart

Method Summary
 java.lang.String getName()
          Returns the name of the form element that this Part corresponds to.
 boolean isFile()
          Returns true if this Part is a FilePart.
 boolean isParam()
          Returns true if this Part is a ParamPart.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

public java.lang.String getName()
Returns the name of the form element that this Part corresponds to.

Returns:
the name of the form element that this Part corresponds to.

isFile

public boolean isFile()
Returns true if this Part is a FilePart.

Returns:
true if this is a FilePart.

isParam

public boolean isParam()
Returns true if this Part is a ParamPart.

Returns:
true if this is a ParamPart.