public final class ActionUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_SERVLET_MAPPING |
static java.lang.String |
ERROR_FORWARD |
static java.lang.String |
LOGIN_FORWARD |
static java.lang.String |
MISSING_PARAMETER_ERROR_KEY |
static java.lang.String |
OBJECTID_REQUIRED_IN_3DDASHBOARD |
static java.lang.String |
UNEXPECTED_ERROR_KEY |
Modifier and Type | Method and Description |
---|---|
static com.technia.tvc.struts.action.ActionForward |
findErrorForward(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext ctx,
com.technia.tvc.struts.action.ActionMapping mapping) |
static com.technia.tvc.struts.action.ActionForward |
findForward(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext ctx,
com.technia.tvc.struts.action.ActionMapping mapping,
java.lang.String name) |
static com.technia.tvc.struts.action.ActionForward |
findLoginForward(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext ctx,
com.technia.tvc.struts.action.ActionMapping mapping) |
static void |
forward(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext ctx,
com.technia.tvc.struts.action.ActionForward forward) |
static void |
forward(javax.servlet.jsp.PageContext pageContext,
com.technia.tvc.struts.action.ActionForward forward) |
static void |
forwardToAction(javax.servlet.jsp.PageContext pc,
java.lang.String path)
Forward the request to the specified action.
|
static void |
forwardToAction(javax.servlet.ServletContext sc,
javax.servlet.ServletRequest req,
javax.servlet.ServletResponse resp,
java.lang.String path)
Forward the request to the specified action.
|
static javax.servlet.RequestDispatcher |
getActionRequestDispatcher(javax.servlet.ServletContext sc,
java.lang.String path)
Returns a request dispatched to the specified action.
|
static java.lang.String |
getActionURL(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext ctx,
java.lang.String path)
Deprecated.
Deprecated since 6.1.0
|
static java.lang.String |
getActionURL(javax.servlet.http.HttpServletRequest request,
javax.servlet.ServletContext ctx,
java.lang.String path,
boolean absolute)
Deprecated.
Deprecated since 6.1.0
|
static java.lang.String |
getActionURL(javax.servlet.http.HttpServletRequest request,
java.lang.String path)
Returns an absolute URL to the specified action.
|
static java.lang.String |
getActionURL(javax.servlet.http.HttpServletRequest request,
java.lang.String path,
boolean absolute)
Returns an absolute or relative URL to the specified action.
|
static java.lang.String |
getActionURL(javax.servlet.jsp.PageContext pageContext,
java.lang.String path)
Returns an absolute URL to the specified action.
|
static java.lang.String |
getActionURL(javax.servlet.jsp.PageContext pageContext,
java.lang.String path,
boolean absolute)
Returns an absolute or relative URL to the specified action.
|
static java.lang.String |
getActionURL(java.lang.String path) |
static matrix.db.Context |
getContext(javax.servlet.http.HttpServletRequest request) |
static com.technia.tvc.struts.action.ActionMapping |
getMapping(javax.servlet.http.HttpServletRequest request) |
static java.lang.String |
getServletMapping()
Returns the servlet mapping.
|
static java.lang.String |
getServletMapping(javax.servlet.ServletContext ctx)
Deprecated.
Deprecated since 6.1.0
|
static boolean |
isLoggedIn(javax.servlet.http.HttpServletRequest request) |
public static final java.lang.String ERROR_FORWARD
public static final java.lang.String LOGIN_FORWARD
public static final java.lang.String UNEXPECTED_ERROR_KEY
public static final java.lang.String MISSING_PARAMETER_ERROR_KEY
public static final java.lang.String OBJECTID_REQUIRED_IN_3DDASHBOARD
public static final java.lang.String DEFAULT_SERVLET_MAPPING
public static matrix.db.Context getContext(javax.servlet.http.HttpServletRequest request) throws TVCException
TVCException
public static boolean isLoggedIn(javax.servlet.http.HttpServletRequest request)
public static com.technia.tvc.struts.action.ActionForward findForward(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext ctx, com.technia.tvc.struts.action.ActionMapping mapping, java.lang.String name)
public static com.technia.tvc.struts.action.ActionForward findErrorForward(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext ctx, com.technia.tvc.struts.action.ActionMapping mapping)
public static com.technia.tvc.struts.action.ActionForward findLoginForward(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext ctx, com.technia.tvc.struts.action.ActionMapping mapping)
public static void forward(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext ctx, com.technia.tvc.struts.action.ActionForward forward) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public static void forward(javax.servlet.jsp.PageContext pageContext, com.technia.tvc.struts.action.ActionForward forward) throws javax.servlet.ServletException, java.io.IOException
javax.servlet.ServletException
java.io.IOException
public static com.technia.tvc.struts.action.ActionMapping getMapping(javax.servlet.http.HttpServletRequest request)
@Deprecated public static java.lang.String getServletMapping(javax.servlet.ServletContext ctx)
getServletMapping()
public static java.lang.String getServletMapping()
public static java.lang.String getActionURL(javax.servlet.jsp.PageContext pageContext, java.lang.String path)
public static java.lang.String getActionURL(javax.servlet.jsp.PageContext pageContext, java.lang.String path, boolean absolute)
@Deprecated public static java.lang.String getActionURL(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext ctx, java.lang.String path)
getActionURL(HttpServletRequest, String)
public static java.lang.String getActionURL(javax.servlet.http.HttpServletRequest request, java.lang.String path)
@Deprecated public static java.lang.String getActionURL(javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext ctx, java.lang.String path, boolean absolute)
public static java.lang.String getActionURL(javax.servlet.http.HttpServletRequest request, java.lang.String path, boolean absolute)
request
- The request that holds information on the current context
path, host, port, etc.path
- The path to the action (without servlet mapping).absolute
- Whether the URL should be absolute or not.public static java.lang.String getActionURL(java.lang.String path)
path
- The path.public static javax.servlet.RequestDispatcher getActionRequestDispatcher(javax.servlet.ServletContext sc, java.lang.String path)
sc
- The servlet context in which the TVC servlet is deployed.path
- The path to the action (without servlet-mapping).public static void forwardToAction(javax.servlet.ServletContext sc, javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp, java.lang.String path) throws java.io.IOException, javax.servlet.ServletException
sc
- The servlet context in which the TVC servlet is deployed.req
- The request to forward.resp
- The response to forward.path
- The path to the action (without servlet mapping).java.io.IOException
- If an IO error occurs.javax.servlet.ServletException
- If a servlet error occurs.public static void forwardToAction(javax.servlet.jsp.PageContext pc, java.lang.String path) throws java.io.IOException, javax.servlet.ServletException
pc
- The current page context.path
- The path to the action (without servlet mapping).java.io.IOException
- If an IO error occurs.javax.servlet.ServletException
- If a servlet error occurs.Copyright ? Technia AB. All Rights Reserved.