public class ServletUtils
extends java.lang.Object
Constructor and Description |
---|
ServletUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
doNotFound(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static void |
finalizeResponse(java.io.OutputStreamWriter outputWriter,
java.lang.String output) |
static void |
finalizeResponse(java.io.OutputStreamWriter outputWriter,
java.lang.StringBuilder output) |
static java.util.Map<java.lang.String,java.lang.String> |
getRequestParams(javax.servlet.http.HttpServletRequest request) |
static java.io.OutputStreamWriter |
prepareResponse(javax.servlet.http.HttpServletResponse response) |
static void |
sendResponse(javax.servlet.http.HttpServletResponse resp,
java.lang.String result) |
static java.lang.String |
urlDecode(java.lang.String s)
Url-decodes data after possible encoding for transport
|
static java.lang.String |
urlEncode(java.lang.String s)
Url-encodes data to make it safe for HTTP transport
|
static boolean |
validURL(javax.servlet.http.HttpServletRequest request) |
public static void sendResponse(javax.servlet.http.HttpServletResponse resp, java.lang.String result) throws java.io.IOException
java.io.IOException
public static java.io.OutputStreamWriter prepareResponse(javax.servlet.http.HttpServletResponse response) throws java.io.IOException
java.io.IOException
public static void finalizeResponse(java.io.OutputStreamWriter outputWriter, java.lang.String output) throws java.io.IOException
java.io.IOException
public static void finalizeResponse(java.io.OutputStreamWriter outputWriter, java.lang.StringBuilder output) throws java.io.IOException
java.io.IOException
public static boolean validURL(javax.servlet.http.HttpServletRequest request)
public static void doNotFound(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
public static java.lang.String urlEncode(java.lang.String s)
s
- data to be encoded for HTTP transportpublic static java.lang.String urlDecode(java.lang.String s)
s
- data to be decoded from HTTP requestpublic static java.util.Map<java.lang.String,java.lang.String> getRequestParams(javax.servlet.http.HttpServletRequest request) throws java.io.IOException
java.io.IOException
Copyright © 2004-2014 The YAWL Foundation.