| java.lang.Object org.kuali.core.util.WebUtils
WebUtils | public class WebUtils (Code) | | General helper methods for handling requests.
|
Method Summary | |
public static String | generateTabKey(String tabTitle) Generates a String from the title that can be used as a Map key. | public static String | getTabState(KualiForm form, String tabKey) JSTL function to return the tab state of the tab from the form. | public static void | incrementTabIndex(KualiForm form, String tabKey) | public static void | logRequestContents(Logger logger, Level level, HttpServletRequest request) | public static String | parseMethodToCall(HttpServletRequest request) Checks for methodToCall parameter, and picks off the value using set dot notation. | public static void | saveMimeInputStreamAsFile(HttpServletResponse response, String contentType, InputStream inStream, String fileName, int fileSize) A file that is not of type text/plain or text/html can be output through the response using this method. | public static void | saveMimeOutputStreamAsFile(HttpServletResponse response, String contentType, ByteArrayOutputStream byteArrayOutputStream, String fileName) A file that is not of type text/plain or text/html can be output through the response using this method. |
generateTabKey | public static String generateTabKey(String tabTitle)(Code) | | Generates a String from the title that can be used as a Map key.
Parameters: tabTitle - |
getTabState | public static String getTabState(KualiForm form, String tabKey)(Code) | | JSTL function to return the tab state of the tab from the form.
Parameters: form - Parameters: tabKey - |
logRequestContents | public static void logRequestContents(Logger logger, Level level, HttpServletRequest request)(Code) | | Iterates through and logs (at the given level) all attributes and parameters of the given request onto the given Logger
Parameters: request - Parameters: logger - |
parseMethodToCall | public static String parseMethodToCall(HttpServletRequest request)(Code) | | Checks for methodToCall parameter, and picks off the value using set dot notation. Handles the problem of image submits.
Parameters: request - methodToCall String |
saveMimeInputStreamAsFile | public static void saveMimeInputStreamAsFile(HttpServletResponse response, String contentType, InputStream inStream, String fileName, int fileSize) throws IOException(Code) | | A file that is not of type text/plain or text/html can be output through the response using this method.
Parameters: response - Parameters: contentType - Parameters: outStream - Parameters: fileName - |
saveMimeOutputStreamAsFile | public static void saveMimeOutputStreamAsFile(HttpServletResponse response, String contentType, ByteArrayOutputStream byteArrayOutputStream, String fileName) throws IOException(Code) | | A file that is not of type text/plain or text/html can be output through the response using this method.
Parameters: response - Parameters: contentType - Parameters: outStream - Parameters: fileName - |
|
|