| java.lang.Object biz.hammurapi.web.ActionsBase
All known Subclasses: biz.hammurapi.web.analysis.AnalysisActions, biz.hammurapi.web.statemachine.StateMachineActions, biz.hammurapi.xbank.ActionsBase, biz.hammurapi.web.process.ProcessActions, biz.hammurapi.web.FileActions, biz.hammurapi.web.diagrameditor.DiagramActions, biz.hammurapi.web.MetadataActions, biz.hammurapi.web.security.ActionsBase, biz.hammurapi.web.menu.HelpActions, biz.hammurapi.web.menu.MenuActions, biz.hammurapi.web.interaction.InterActions,
ActionsBase | public class ActionsBase (Code) | | This class contains convenience methods for action classes.
author: Pavel Vlasov |
Inner Class :public static class ErrorMessage implements DomSerializable | |
Method Summary | |
protected static Object | getGlobal(HttpServletRequest request, String name) | protected Menu | getMatched(HttpServletRequest request) | protected Menu | getMenu(HttpServletRequest request) | public static String | getReferrer(HttpServletRequest request) Returns value of "_referrer" request parameter. | protected Object | getRemoted(HttpServletRequest request, HttpServletResponse response, String name) Returns object for remote method invocation. | protected String | getUid() | protected boolean | hasPermission(HttpServletRequest request, Class clazz, String action) | protected static boolean | includeThisInPath(HttpServletRequest request) | public void | invoke(HttpServletRequest request, HttpServletResponse response) | public static boolean | isBlank(String str) | public void | java(HttpServletRequest request, HttpServletResponse response, ActionServlet servlet) Executes java script passed in "java" parameter, writes output to response stream. | public DomSerializable | request2xml(HttpServletRequest request, HttpServletResponse response) Serializes request to XML. | protected void | setReferrer(HttpServletRequest request, Attributable target) | public Object | sql(HttpServletRequest request, HttpServletResponse response, ActionServlet servlet) Executes sql script passed in "sql" parameter. |
REFERRER_HEADER | final protected static String REFERRER_HEADER(Code) | | |
compositeDomSerializer | final protected static CompositeDomSerializer compositeDomSerializer(Code) | | |
converter | public static CompositeConverter converter(Code) | | Converter for Web types.
|
getReferrer | public static String getReferrer(HttpServletRequest request)(Code) | | Returns value of "_referrer" request parameter. If parameter is not set
then returns value of referer header.
Parameters: request - |
getRemoted | protected Object getRemoted(HttpServletRequest request, HttpServletResponse response, String name)(Code) | | Returns object for remote method invocation. Default implementation delegates to request context.
Parameters: request - Parameters: response - Parameters: name - |
request2xml | public DomSerializable request2xml(HttpServletRequest request, HttpServletResponse response)(Code) | | Serializes request to XML. This aciton is useful for pages
which don't require any information from back-end, but require
request parameters and other request info for rendering.
Parameters: request - Parameters: response - Parameters: servlet - |
|
|