|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.apache.struts.upload.MultipartElement
This class represents an element in a multipart request.
It has a few methods for determining * whether or not the element is a
String or a file, and methods to retrieve the data of the aforementioned
element. Text input elements have a null content type,
files have a non-null content type.
| フィールドの概要 | |
protected java.lang.String |
contentType
推奨されていません。 The content type of this element. |
protected byte[] |
data
推奨されていません。 This should never be used. |
protected java.io.File |
file
推奨されていません。 The element's data represented in a (possibly temporary) file. |
protected java.lang.String |
fileName
推奨されていません。 The element's filename, null for text elements. |
protected boolean |
isFile
推奨されていません。 Whether or not this element is a file. |
protected java.lang.String |
name
推奨されていません。 The element name. |
protected java.lang.String |
value
推奨されていません。 The element's text value, null for file elements |
| コンストラクタの概要 | |
MultipartElement(java.lang.String name,
java.lang.String value)
推奨されていません。 Constructor for a text element. |
|
MultipartElement(java.lang.String name,
java.lang.String fileName,
java.lang.String contentType,
java.io.File file)
推奨されていません。 Constructor for a file element. |
|
| メソッドの概要 | |
java.lang.String |
getContentType()
推奨されていません。 Retrieve the content type. |
java.io.File |
getFile()
推奨されていません。 Get the File that holds the data for this element. |
java.lang.String |
getFileName()
推奨されていません。 Retrieve the filename, can return null
for text elements. |
java.lang.String |
getName()
推奨されていません。 Retrieve the name. |
java.lang.String |
getValue()
推奨されていません。 Returns the value of this multipart element. |
boolean |
isFile()
推奨されていません。 Is this element a file. |
void |
setContentType(java.lang.String contentType)
推奨されていません。 Set the content type. |
void |
setFile(java.io.File file)
推奨されていません。 Set the file that represents this element. |
void |
setFileName(java.lang.String fileName)
推奨されていません。 Set the file name for this element. |
void |
setName(java.lang.String name)
推奨されていません。 Set the name for this element. |
void |
setValue(java.lang.String value)
推奨されていません。 |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
protected java.lang.String contentType
protected byte[] data
protected java.io.File file
protected java.lang.String name
protected java.lang.String fileName
protected java.lang.String value
protected boolean isFile
| コンストラクタの詳細 |
public MultipartElement(java.lang.String name,
java.lang.String fileName,
java.lang.String contentType,
java.io.File file)
name - The form name of the elementfileName - The file name of the element if this element is a filecontentType - The content type of the element if a filefile - The (possibly temporary) file representing this element if
it's a file
public MultipartElement(java.lang.String name,
java.lang.String value)
name - The name of the elementvalue - The value of the element| メソッドの詳細 |
public java.lang.String getContentType()
public java.io.File getFile()
public java.lang.String getName()
public java.lang.String getFileName()
null
for text elements.
public java.lang.String getValue()
null
otherwisepublic void setFile(java.io.File file)
public void setFileName(java.lang.String fileName)
public void setName(java.lang.String name)
public void setContentType(java.lang.String contentType)
public boolean isFile()
public void setValue(java.lang.String value)
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||