org.apache.cocoon.portlet.multipart
Class MultipartActionRequest

java.lang.Object
  extended by org.apache.cocoon.portlet.multipart.MultipartActionRequest
All Implemented Interfaces:
javax.portlet.ActionRequest, javax.portlet.PortletRequest

public class MultipartActionRequest
extends Object
implements javax.portlet.ActionRequest

Portlet action request wrapper for multipart parser.

Version:
CVS $Id: MultipartActionRequest.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Vadim Gritsenko

Field Summary
 
Fields inherited from interface javax.portlet.PortletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH, USER_INFO
 
Constructor Summary
MultipartActionRequest(javax.portlet.ActionRequest request, Hashtable values)
          Create this wrapper around the given request and including the given parts.
 
Method Summary
 void cleanup()
          Cleanup eventually uploaded parts that were saved on disk
 Object get(String name)
          Method get
 Object getAttribute(String name)
          Method getAttribute
 Enumeration getAttributeNames()
          Method getAttributeNames
 String getAuthType()
          Method getAuthType
 String getCharacterEncoding()
          Method getCharacterEncoding
 int getContentLength()
          Method getContentLength
 String getContentType()
          Method getContentType
 String getContextPath()
          Method getContextPath
 InputStream getInputStream()
          Method getInputStream
 Locale getLocale()
          Method getLocale
 Enumeration getLocales()
          Method getLocales
 String getParameter(String name)
          Method getParameter
 Map getParameterMap()
           
 Enumeration getParameterNames()
          Method getParameterNames
 String[] getParameterValues(String name)
          Method getParameterValues
 javax.portlet.PortalContext getPortalContext()
           
 InputStream getPortletInputStream()
           
 javax.portlet.PortletMode getPortletMode()
           
 javax.portlet.PortletSession getPortletSession()
          Method getSession
 javax.portlet.PortletSession getPortletSession(boolean create)
          Method getSession
 javax.portlet.PortletPreferences getPreferences()
           
 Enumeration getProperties(String name)
           
 String getProperty(String name)
           
 Enumeration getPropertyNames()
           
 BufferedReader getReader()
          Method getReader
 String getRemoteUser()
          Method getRemoteUser
 String getRequestedSessionId()
          Method getRequestedSessionId
 String getResponseContentType()
           
 Enumeration getResponseContentTypes()
           
 String getScheme()
          Method getScheme
 String getServerName()
          Method getServerName
 int getServerPort()
          Method getServerPort
 Principal getUserPrincipal()
          Method getUserPrincipal
 javax.portlet.WindowState getWindowState()
           
 boolean isPortletModeAllowed(javax.portlet.PortletMode mode)
           
 boolean isRequestedSessionIdValid()
          Method isRequestedSessionIdValid
 boolean isSecure()
          Method isSecure
 boolean isUserInRole(String role)
          Method isUserInRole
 boolean isWindowStateAllowed(javax.portlet.WindowState state)
           
 void removeAttribute(String name)
          Method removeAttribute
 void setAttribute(String name, Object o)
          Method setAttribute
 void setCharacterEncoding(String enc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipartActionRequest

public MultipartActionRequest(javax.portlet.ActionRequest request,
                              Hashtable values)
Create this wrapper around the given request and including the given parts.

Method Detail

cleanup

public void cleanup()
             throws IOException
Cleanup eventually uploaded parts that were saved on disk

Throws:
IOException

get

public Object get(String name)
Method get

Parameters:
name -

getParameterNames

public Enumeration getParameterNames()
Method getParameterNames

Specified by:
getParameterNames in interface javax.portlet.PortletRequest

getParameter

public String getParameter(String name)
Method getParameter

Specified by:
getParameter in interface javax.portlet.PortletRequest
Parameters:
name -

getParameterValues

public String[] getParameterValues(String name)
Method getParameterValues

Specified by:
getParameterValues in interface javax.portlet.PortletRequest
Parameters:
name -

getAttribute

public Object getAttribute(String name)
Method getAttribute

Specified by:
getAttribute in interface javax.portlet.PortletRequest
Parameters:
name -

getAttributeNames

public Enumeration getAttributeNames()
Method getAttributeNames

Specified by:
getAttributeNames in interface javax.portlet.PortletRequest

getCharacterEncoding

public String getCharacterEncoding()
Method getCharacterEncoding

Specified by:
getCharacterEncoding in interface javax.portlet.ActionRequest

getContentLength

public int getContentLength()
Method getContentLength

Specified by:
getContentLength in interface javax.portlet.ActionRequest

getContentType

public String getContentType()
Method getContentType

Specified by:
getContentType in interface javax.portlet.ActionRequest

getInputStream

public InputStream getInputStream()
                           throws IOException
Method getInputStream

Throws:
IOException

getScheme

public String getScheme()
Method getScheme

Specified by:
getScheme in interface javax.portlet.PortletRequest

getServerName

public String getServerName()
Method getServerName

Specified by:
getServerName in interface javax.portlet.PortletRequest

getServerPort

public int getServerPort()
Method getServerPort

Specified by:
getServerPort in interface javax.portlet.PortletRequest

getReader

public BufferedReader getReader()
                         throws IOException
Method getReader

Specified by:
getReader in interface javax.portlet.ActionRequest
Throws:
IOException

setAttribute

public void setAttribute(String name,
                         Object o)
Method setAttribute

Specified by:
setAttribute in interface javax.portlet.PortletRequest
Parameters:
name -
o -

removeAttribute

public void removeAttribute(String name)
Method removeAttribute

Specified by:
removeAttribute in interface javax.portlet.PortletRequest
Parameters:
name -

getLocale

public Locale getLocale()
Method getLocale

Specified by:
getLocale in interface javax.portlet.PortletRequest

getLocales

public Enumeration getLocales()
Method getLocales

Specified by:
getLocales in interface javax.portlet.PortletRequest

isSecure

public boolean isSecure()
Method isSecure

Specified by:
isSecure in interface javax.portlet.PortletRequest

getAuthType

public String getAuthType()
Method getAuthType

Specified by:
getAuthType in interface javax.portlet.PortletRequest

getContextPath

public String getContextPath()
Method getContextPath

Specified by:
getContextPath in interface javax.portlet.PortletRequest

getRemoteUser

public String getRemoteUser()
Method getRemoteUser

Specified by:
getRemoteUser in interface javax.portlet.PortletRequest

isUserInRole

public boolean isUserInRole(String role)
Method isUserInRole

Specified by:
isUserInRole in interface javax.portlet.PortletRequest
Parameters:
role -

getUserPrincipal

public Principal getUserPrincipal()
Method getUserPrincipal

Specified by:
getUserPrincipal in interface javax.portlet.PortletRequest

getRequestedSessionId

public String getRequestedSessionId()
Method getRequestedSessionId

Specified by:
getRequestedSessionId in interface javax.portlet.PortletRequest

getPortletSession

public javax.portlet.PortletSession getPortletSession(boolean create)
Method getSession

Specified by:
getPortletSession in interface javax.portlet.PortletRequest
Parameters:
create -

getPortletSession

public javax.portlet.PortletSession getPortletSession()
Method getSession

Specified by:
getPortletSession in interface javax.portlet.PortletRequest

isRequestedSessionIdValid

public boolean isRequestedSessionIdValid()
Method isRequestedSessionIdValid

Specified by:
isRequestedSessionIdValid in interface javax.portlet.PortletRequest

getPortletInputStream

public InputStream getPortletInputStream()
                                  throws IOException
Specified by:
getPortletInputStream in interface javax.portlet.ActionRequest
Throws:
IOException

setCharacterEncoding

public void setCharacterEncoding(String enc)
                          throws UnsupportedEncodingException
Specified by:
setCharacterEncoding in interface javax.portlet.ActionRequest
Throws:
UnsupportedEncodingException

getParameterMap

public Map getParameterMap()
Specified by:
getParameterMap in interface javax.portlet.PortletRequest

getPortalContext

public javax.portlet.PortalContext getPortalContext()
Specified by:
getPortalContext in interface javax.portlet.PortletRequest

getPortletMode

public javax.portlet.PortletMode getPortletMode()
Specified by:
getPortletMode in interface javax.portlet.PortletRequest

getPreferences

public javax.portlet.PortletPreferences getPreferences()
Specified by:
getPreferences in interface javax.portlet.PortletRequest

getProperties

public Enumeration getProperties(String name)
Specified by:
getProperties in interface javax.portlet.PortletRequest

getProperty

public String getProperty(String name)
Specified by:
getProperty in interface javax.portlet.PortletRequest

getPropertyNames

public Enumeration getPropertyNames()
Specified by:
getPropertyNames in interface javax.portlet.PortletRequest

getResponseContentType

public String getResponseContentType()
Specified by:
getResponseContentType in interface javax.portlet.PortletRequest

getResponseContentTypes

public Enumeration getResponseContentTypes()
Specified by:
getResponseContentTypes in interface javax.portlet.PortletRequest

getWindowState

public javax.portlet.WindowState getWindowState()
Specified by:
getWindowState in interface javax.portlet.PortletRequest

isPortletModeAllowed

public boolean isPortletModeAllowed(javax.portlet.PortletMode mode)
Specified by:
isPortletModeAllowed in interface javax.portlet.PortletRequest

isWindowStateAllowed

public boolean isWindowStateAllowed(javax.portlet.WindowState state)
Specified by:
isWindowStateAllowed in interface javax.portlet.PortletRequest


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.