|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.util.mvc.utils.MVCUtils
public final class MVCUtils
Utils for MVC components
| Field Summary | |
|---|---|
static String |
PARAMETER_ACTION
|
static String |
PARAMETER_PAGE
|
static String |
PARAMETER_VIEW
|
| Method Summary | |
|---|---|
static void |
addDownloadHeaderToResponse(javax.servlet.http.HttpServletResponse response,
String strFilename,
String strContentType)
Add download headers to the response |
static Method |
findActionAnnotedMethod(javax.servlet.http.HttpServletRequest request,
Method[] methods)
Find the method that provide a given action |
static Method |
findDefaultViewMethod(Method[] methods)
Find the method that provide the default view |
static Method |
findViewAnnotedMethod(javax.servlet.http.HttpServletRequest request,
Method[] methods)
Find the method that provide a given view |
static String |
getAction(javax.servlet.http.HttpServletRequest request)
Get the action parameter or any parameter with the prefix 'action_' |
static org.apache.log4j.Logger |
getLogger()
Return the MVC logger |
static String |
getView(javax.servlet.http.HttpServletRequest request)
Get the view parameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PARAMETER_VIEW
public static final String PARAMETER_ACTION
public static final String PARAMETER_PAGE
| Method Detail |
|---|
public static String getView(javax.servlet.http.HttpServletRequest request)
request - The HTTP request
public static String getAction(javax.servlet.http.HttpServletRequest request)
request - The HTTP request
public static Method findViewAnnotedMethod(javax.servlet.http.HttpServletRequest request,
Method[] methods)
request - The HTTP requestmethods - The methods list
public static Method findActionAnnotedMethod(javax.servlet.http.HttpServletRequest request,
Method[] methods)
request - The HTTP requestmethods - The methods list
public static Method findDefaultViewMethod(Method[] methods)
methods - The methods list
public static void addDownloadHeaderToResponse(javax.servlet.http.HttpServletResponse response,
String strFilename,
String strContentType)
response - The responsestrFilename - The name of the file to downloadstrContentType - The content type of the downloaded filepublic static org.apache.log4j.Logger getLogger()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||