站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.1.7 cr1 API 英文版文档

MultipartRequest (JBoss Seam API Documentation) - JBoss Seam 1.1.7 cr1 API 英文版文档


org.jboss.seam.web
Class MultipartRequest

java.lang.Object
  extended by javax.servlet.ServletRequestWrapper
      extended by javax.servlet.http.HttpServletRequestWrapper
          extended by org.jboss.seam.web.MultipartRequest
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public class MultipartRequest
extends javax.servlet.http.HttpServletRequestWrapper

Request wrapper for supporting multipart requests, used for file uploading.

Author:
Shane Bryzak

Field Summary
static String WWW_FORM_URLENCODED_TYPE
           
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
MultipartRequest(javax.servlet.http.HttpServletRequest request, boolean createTempFiles, int maxRequestSize)
           
 
Method Summary
 String getContentType()
           
 byte[] getFileBytes(String name)
           
 String getFileContentType(String name)
           
 InputStream getFileInputStream(String name)
           
 String getFileName(String name)
           
 int getFileSize(String name)
           
 String getParameter(String name)
           
 Map getParameterMap()
           
 Enumeration getParameterNames()
           
 String[] getParameterValues(String name)
           
 
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole
 
Methods inherited from class javax.servlet.ServletRequestWrapper
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.ServletRequest
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
 

Field Detail

WWW_FORM_URLENCODED_TYPE

public static final String WWW_FORM_URLENCODED_TYPE
See Also:
Constant Field Values
Constructor Detail

MultipartRequest

public MultipartRequest(javax.servlet.http.HttpServletRequest request,
                        boolean createTempFiles,
                        int maxRequestSize)
Method Detail

getParameterNames

public Enumeration getParameterNames()
Specified by:
getParameterNames in interface javax.servlet.ServletRequest
Overrides:
getParameterNames in class javax.servlet.ServletRequestWrapper

getFileBytes

public byte[] getFileBytes(String name)

getFileInputStream

public InputStream getFileInputStream(String name)

getFileContentType

public String getFileContentType(String name)

getFileName

public String getFileName(String name)

getFileSize

public int getFileSize(String name)

getParameter

public String getParameter(String name)
Specified by:
getParameter in interface javax.servlet.ServletRequest
Overrides:
getParameter in class javax.servlet.ServletRequestWrapper

getParameterValues

public String[] getParameterValues(String name)
Specified by:
getParameterValues in interface javax.servlet.ServletRequest
Overrides:
getParameterValues in class javax.servlet.ServletRequestWrapper

getParameterMap

public Map getParameterMap()
Specified by:
getParameterMap in interface javax.servlet.ServletRequest
Overrides:
getParameterMap in class javax.servlet.ServletRequestWrapper

getContentType

public String getContentType()
Specified by:
getContentType in interface javax.servlet.ServletRequest
Overrides:
getContentType in class javax.servlet.ServletRequestWrapper