|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.web.multipart.commons.CommonsFileUploadSupport
org.jasig.portal.url.processing.ChannelRequestParameterProcessor
public class ChannelRequestParameterProcessor
Does request parameter processing on any request that does not explicitly target a portlet. Takes care of pulling out channel parameters and handling file uploads so the data can be passed into the ChannelRuntimeData for the targeted channel.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.springframework.web.multipart.commons.CommonsFileUploadSupport |
|---|
CommonsFileUploadSupport.MultipartParsingResult |
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
|
static String |
UPLOAD_STATUS
|
| Constructor Summary | |
|---|---|
ChannelRequestParameterProcessor()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Ensures the temp files from uploads are cleaned up correctly. |
protected String |
determineEncoding(HttpServletRequest request)
Determine the encoding for the given request. |
IChannelRequestParameterManager |
getChannelRequestParameterManager()
|
protected Map<String,MultipartDataSource[]> |
getMultipartDataSources(CommonsFileUploadSupport.MultipartParsingResult parsingResult)
Convert's Spring's MultipartFile objects to uPortal's MultipartDataSource objects. |
IPortletRequestParameterManager |
getPortletRequestParameterManager()
|
protected String |
getTargetChannelId(IWritableHttpServletRequest request)
Determine the targeted channel ID for the request. |
IUserInstanceManager |
getUserInstanceManager()
|
protected org.apache.commons.fileupload.FileUpload |
newFileUpload(org.apache.commons.fileupload.FileItemFactory fileItemFactory)
|
boolean |
processParameters(IWritableHttpServletRequest request,
HttpServletResponse response)
Analyze current request, process necessary URL parameters, delivering information to the appropriate components. |
void |
setChannelRequestParameterManager(IChannelRequestParameterManager channelRequestParameterManager)
|
void |
setPortletRequestParameterManager(IPortletRequestParameterManager portletRequestParameterManager)
|
void |
setUserInstanceManager(IUserInstanceManager userInstanceManager)
|
| Methods inherited from class org.springframework.web.multipart.commons.CommonsFileUploadSupport |
|---|
cleanupFileItems, getDefaultEncoding, getFileItemFactory, getFileUpload, isUploadTempDirSpecified, newFileItemFactory, parseFileItems, prepareFileUpload, setDefaultEncoding, setMaxInMemorySize, setMaxUploadSize, setUploadTempDir |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String UPLOAD_STATUS
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public ChannelRequestParameterProcessor()
| Method Detail |
|---|
public IUserInstanceManager getUserInstanceManager()
public void setUserInstanceManager(IUserInstanceManager userInstanceManager)
userInstanceManager - the userInstanceManager to setpublic IPortletRequestParameterManager getPortletRequestParameterManager()
public void setPortletRequestParameterManager(IPortletRequestParameterManager portletRequestParameterManager)
portletRequestParameterManager - the portletRequestParameterManager to setpublic IChannelRequestParameterManager getChannelRequestParameterManager()
public void setChannelRequestParameterManager(IChannelRequestParameterManager channelRequestParameterManager)
channelRequestParameterManager - the channelRequestParameterManager to set
public boolean processParameters(IWritableHttpServletRequest request,
HttpServletResponse response)
IRequestParameterProcessorfalse so that it can be called again after other
processors have been allowed to execute. Even if false is returned as much processing as possible
should happen for each pass.
processParameters in interface IRequestParameterProcessor
public void destroy()
throws Exception
destroy in interface DisposableBeanExceptionDisposableBean.destroy()protected String getTargetChannelId(IWritableHttpServletRequest request)
request - Current request.
protected org.apache.commons.fileupload.FileUpload newFileUpload(org.apache.commons.fileupload.FileItemFactory fileItemFactory)
newFileUpload in class CommonsFileUploadSupportprotected String determineEncoding(HttpServletRequest request)
The default implementation checks the request encoding, falling back to the default encoding specified for this resolver.
request - current HTTP request
null)ServletRequest.getCharacterEncoding(),
CommonsFileUploadSupport.setDefaultEncoding(java.lang.String)protected Map<String,MultipartDataSource[]> getMultipartDataSources(CommonsFileUploadSupport.MultipartParsingResult parsingResult)
parsingResult - The results of the multipart request parsing
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||