|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spago.util.PortletUtilities
Constructor Summary | |
PortletUtilities()
|
Method Summary | |
static java.lang.String |
cleanString(java.lang.String original)
Cleans a string from spaces and tabulation characters. |
static java.lang.String |
createPortletURL(HttpServletRequest aHttpServletRequest,
java.lang.String originalURL)
Starting from the original URL and the request, creates a string representing the Portlet URL. |
static java.lang.String |
createPortletURLForResource(HttpServletRequest aHttpServletRequest,
java.lang.String resourcePath)
Creates the particular portlet URL for a resource, given its path. |
static UploadedFile |
getFirstUploadedFile(PortletRequest portletRequest)
Gets the first uploaded file from a portlet request. |
static java.lang.String |
getMessage(java.lang.String code,
java.lang.String bundle)
Gets a localized message given its code and bundle information. |
static PortletRequest |
getPortletRequest()
Gets the PortletRequest object. |
static PortletResponse |
getPortletResponse()
Gets the PortletResponse object. |
static SourceBean |
getServiceRequestFromMultipartPortletRequest(PortletRequest portletRequest)
Gets the service request from a Multipart Portlet Request. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PortletUtilities()
Method Detail |
public static java.lang.String createPortletURL(HttpServletRequest aHttpServletRequest, java.lang.String originalURL)
aHttpServletRequest
- The request object at inputoriginalURL
- The starting original URL
public static java.lang.String createPortletURLForResource(HttpServletRequest aHttpServletRequest, java.lang.String resourcePath)
aHttpServletRequest
- The request object at input
public static PortletRequest getPortletRequest()
PortletRequest
object.
public static PortletResponse getPortletResponse()
PortletResponse
object.
public static SourceBean getServiceRequestFromMultipartPortletRequest(PortletRequest portletRequest)
serviceRequest
object.
portletRequest
- The input portlet request
serviceRequest
SourceBean containing the uploaded file.public static UploadedFile getFirstUploadedFile(PortletRequest portletRequest)
UploadedFile
object.
portletRequest
- The input portlet request
public static java.lang.String cleanString(java.lang.String original)
original
- The input string
public static java.lang.String getMessage(java.lang.String code, java.lang.String bundle)
code
- The message's code stringbundle
- The message's bundel string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |