org.apache.struts.upload
クラス DiskMultipartRequestHandler

java.lang.Object
  拡張org.apache.struts.upload.DiskMultipartRequestHandler
すべての実装インタフェース:
MultipartRequestHandler

推奨されていません。 Use the Commons FileUpload based multipart handler instead. This class will be removed after Struts 1.2.

public class DiskMultipartRequestHandler
extends java.lang.Object
implements MultipartRequestHandler

This is a MultipartRequestHandler that writes file data directly to to temporary files on disk.


フィールドの概要
protected  java.util.Hashtable allElements
          推奨されていません。 A Hashtable representing all elemnents.
protected  java.util.Hashtable fileElements
          推奨されていません。 A Hashtable representing the form files uploaded.
protected static org.apache.commons.logging.Log log
          推奨されていません。 Commons Logging instance.
protected  ActionMapping mapping
          推奨されていません。 The ActionMapping instance used for this class.
protected  ActionServlet servlet
          推奨されていません。 The ActionServlet instance used for this class.
protected  java.lang.String tempDir
          推奨されていません。 The temporary directory.
protected  java.util.Hashtable textElements
          推奨されていません。 A Hashtable representing the form text input names and values.
 
インタフェース org.apache.struts.upload.MultipartRequestHandler から継承したフィールド
ATTRIBUTE_MAX_LENGTH_EXCEEDED
 
コンストラクタの概要
DiskMultipartRequestHandler()
          推奨されていません。  
 
メソッドの概要
protected  void createDiskFile(MultipartElement element)
          推奨されていません。  
protected  void createTextElement(javax.servlet.http.HttpServletRequest request, MultipartElement element)
          推奨されていません。  
 void finish()
          推奨されていません。 Calls on rollback() to delete temporary files.
 java.util.Hashtable getAllElements()
          推奨されていません。 This method returns all elements of a multipart request.
 java.util.Hashtable getFileElements()
          推奨されていません。 This method is called on to retrieve all the FormFile input elements of the request.
 ActionMapping getMapping()
          推奨されていません。 Get the ActionMapping instance for this request
protected  long getMaxSize(java.lang.String stringSize)
          推奨されていません。 Gets the maximum post data size in bytes from the string representation in the configuration file.
 ActionServlet getServlet()
          推奨されていません。 Get the ActionServlet instance
 java.util.Hashtable getTextElements()
          推奨されていません。 This method is called on to retrieve all the text input elements of the request.
 void handleRequest(javax.servlet.http.HttpServletRequest request)
          推奨されていません。 This method populates the internal hashtables with multipart request data.
protected  void retrieveTempDir(ModuleConfig moduleConfig)
          推奨されていません。 Retrieves the temporary directory from either ActionServlet, a context property, or a system property, in that order.
 void rollback()
          推奨されていません。 Delete all the files uploaded.
 void setMapping(ActionMapping mapping)
          推奨されていません。 Convienience method to set a reference to a working ActionMapping instance.
 void setServlet(ActionServlet servlet)
          推奨されていません。 Convienience method to set a reference to a working ActionServlet instance.
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

log

protected static org.apache.commons.logging.Log log
推奨されていません。 
Commons Logging instance.


servlet

protected ActionServlet servlet
推奨されていません。 
The ActionServlet instance used for this class.


mapping

protected ActionMapping mapping
推奨されていません。 
The ActionMapping instance used for this class.


fileElements

protected java.util.Hashtable fileElements
推奨されていません。 
A Hashtable representing the form files uploaded.


textElements

protected java.util.Hashtable textElements
推奨されていません。 
A Hashtable representing the form text input names and values.


allElements

protected java.util.Hashtable allElements
推奨されていません。 
A Hashtable representing all elemnents.


tempDir

protected java.lang.String tempDir
推奨されていません。 
The temporary directory.

コンストラクタの詳細

DiskMultipartRequestHandler

public DiskMultipartRequestHandler()
推奨されていません。 
メソッドの詳細

handleRequest

public void handleRequest(javax.servlet.http.HttpServletRequest request)
                   throws javax.servlet.ServletException
推奨されていません。 
This method populates the internal hashtables with multipart request data. If the request argument is an instance of MultipartRequestWrapper, the request wrapper will be populated as well.

定義:
インタフェース MultipartRequestHandler 内の handleRequest
例外:
javax.servlet.ServletException - thrown if something goes wrong

createTextElement

protected void createTextElement(javax.servlet.http.HttpServletRequest request,
                                 MultipartElement element)
推奨されていません。 

createDiskFile

protected void createDiskFile(MultipartElement element)
推奨されていません。 

getAllElements

public java.util.Hashtable getAllElements()
推奨されていません。 
インタフェース MultipartRequestHandler の記述:
This method returns all elements of a multipart request.

定義:
インタフェース MultipartRequestHandler 内の getAllElements
戻り値:
A Hashtable where the keys are input names and values are either Strings or FormFiles

getTextElements

public java.util.Hashtable getTextElements()
推奨されていません。 
インタフェース MultipartRequestHandler の記述:
This method is called on to retrieve all the text input elements of the request.

定義:
インタフェース MultipartRequestHandler 内の getTextElements
戻り値:
A Hashtable where the keys and values are the names and values of the request input parameters

getFileElements

public java.util.Hashtable getFileElements()
推奨されていません。 
インタフェース MultipartRequestHandler の記述:
This method is called on to retrieve all the FormFile input elements of the request.

定義:
インタフェース MultipartRequestHandler 内の getFileElements
戻り値:
A Hashtable where the keys are the input names of the files and the values are FormFile objects
関連項目:
FormFile

rollback

public void rollback()
推奨されていません。 
Delete all the files uploaded.

定義:
インタフェース MultipartRequestHandler 内の rollback

finish

public void finish()
推奨されていません。 
Calls on rollback() to delete temporary files.

定義:
インタフェース MultipartRequestHandler 内の finish

setServlet

public void setServlet(ActionServlet servlet)
推奨されていません。 
インタフェース MultipartRequestHandler の記述:
Convienience method to set a reference to a working ActionServlet instance.

定義:
インタフェース MultipartRequestHandler 内の setServlet

setMapping

public void setMapping(ActionMapping mapping)
推奨されていません。 
インタフェース MultipartRequestHandler の記述:
Convienience method to set a reference to a working ActionMapping instance.

定義:
インタフェース MultipartRequestHandler 内の setMapping

getServlet

public ActionServlet getServlet()
推奨されていません。 
インタフェース MultipartRequestHandler の記述:
Get the ActionServlet instance

定義:
インタフェース MultipartRequestHandler 内の getServlet

getMapping

public ActionMapping getMapping()
推奨されていません。 
インタフェース MultipartRequestHandler の記述:
Get the ActionMapping instance for this request

定義:
インタフェース MultipartRequestHandler 内の getMapping

getMaxSize

protected long getMaxSize(java.lang.String stringSize)
                   throws javax.servlet.ServletException
推奨されていません。 
Gets the maximum post data size in bytes from the string representation in the configuration file.

例外:
javax.servlet.ServletException

retrieveTempDir

protected void retrieveTempDir(ModuleConfig moduleConfig)
推奨されていません。 
Retrieves the temporary directory from either ActionServlet, a context property, or a system property, in that order.



このドキュメントは、Ja-Jakartaにより訳されました。コメントがある場合は、report@jajakarta.orgまでお願いします。
Copyright (C) 2000-2004 - Apache Software Foundation