| java.lang.Object org.araneaframework.http.util.ServletUtil
ServletUtil | abstract public class ServletUtil (Code) | | Utility methods for Aranea framework running inside a servlet container. Includes
functions for rendering JSP pages and direct access to HttpServletResponse
and HttpServletRequest .
author: "Toomas Römer" author: Jevgeni Kabanov (ekabanov at araneaframework dot org) author: Alar Kvell (alar@araneaframework.org) |
Inner Class :public static class StringAdapterResourceBundle extends ResourceBundle | |
Method Summary | |
public static javax.servlet.jsp.jstl.fmt.LocalizationContext | buildLocalizationContext(Environment env) | public static Environment | getEnvironment(ServletRequest req) | public static HttpInputData | getInputData(ServletRequest req) | public static HttpOutputData | getOutputData(ServletRequest req) | public static HttpServletRequest | getRequest(InputData input) | public static HttpServletResponse | getResponse(OutputData output) | public static void | include(String filePath, Environment env, OutputData output) Includes the jsp specified by filePath using the the request and response streams
of the output. | public static void | include(String filePath, ApplicationWidget widget, OutputData output) Includes the jsp specified by filePath using the the request and response streams
of the output. | public static void | include(String filePath, ApplicationWidget widget, HttpServletRequest req, HttpServletResponse res) | public static void | include(String filePath, Environment env, HttpServletRequest req, HttpServletResponse res) | public static void | includeRelative(String filePath, Environment env, OutputData output) Includes the jsp specified by file using the the request and response streams
of the output. | public static void | publishModel(InputData input, String name, Object model) | public static void | setRequest(InputData input, HttpServletRequest req) | public static void | setResponse(OutputData output, HttpServletResponse res) |
LOCALIZATION_CONTEXT_KEY | final public static String LOCALIZATION_CONTEXT_KEY(Code) | | since: 1.1 |
UIWIDGET_KEY | final public static String UIWIDGET_KEY(Code) | | since: 1.1 |
buildLocalizationContext | public static javax.servlet.jsp.jstl.fmt.LocalizationContext buildLocalizationContext(Environment env)(Code) | | since: 1.1 |
include | public static void include(String filePath, Environment env, OutputData output) throws Exception(Code) | | Includes the jsp specified by filePath using the the request and response streams
of the output. The pathname must begin with a "/" and is interpreted as relative to
the current context root. The context root in the env under the key ServletContext.class
is used.
|
include | public static void include(String filePath, ApplicationWidget widget, OutputData output) throws Exception(Code) | | Includes the jsp specified by filePath using the the request and response streams
of the output. The pathname must begin with a "/" and is interpreted as relative to
the current context root. The context root in the env under the key ServletContext.class
is used.
Widget is made available to JSP, so contextWidget tag can be used.
since: 1.1 |
includeRelative | public static void includeRelative(String filePath, Environment env, OutputData output) throws Exception(Code) | | Includes the jsp specified by file using the the request and response streams
of the output. The pathname specified may be relative, although it cannot extend
outside the current servlet context. If the path begins with a "/" it is interpreted
as relative to the current context root.
|
|
|