org.yawlfoundation.yawl.engine.interfce
Class ServletUtils

java.lang.Object
  extended by org.yawlfoundation.yawl.engine.interfce.ServletUtils

public class ServletUtils
extends Object

Author:
Lachlan Aldred Date: 22/01/2004 Time: 14:14:02

Constructor Summary
ServletUtils()
           
 
Method Summary
static void doNotFound(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
static void finalizeResponse(OutputStreamWriter outputWriter, String output)
           
static void finalizeResponse(OutputStreamWriter outputWriter, StringBuilder output)
           
static Map<String,String> getRequestParams(javax.servlet.http.HttpServletRequest request)
           
static OutputStreamWriter prepareResponse(javax.servlet.http.HttpServletResponse response)
           
static String urlDecode(String s)
          Url-decodes data after possible encoding for transport
static String urlEncode(String s)
          Url-encodes data to make it safe for HTTP transport
static boolean validURL(javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletUtils

public ServletUtils()
Method Detail

prepareResponse

public static OutputStreamWriter prepareResponse(javax.servlet.http.HttpServletResponse response)
                                          throws IOException
Throws:
IOException

finalizeResponse

public static void finalizeResponse(OutputStreamWriter outputWriter,
                                    String output)
                             throws IOException
Throws:
IOException

finalizeResponse

public static void finalizeResponse(OutputStreamWriter outputWriter,
                                    StringBuilder output)
                             throws IOException
Throws:
IOException

validURL

public static boolean validURL(javax.servlet.http.HttpServletRequest request)

doNotFound

public static void doNotFound(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)

urlEncode

public static String urlEncode(String s)
Url-encodes data to make it safe for HTTP transport

Parameters:
s - data to be encoded for HTTP transport
Returns:
encoded data

urlDecode

public static String urlDecode(String s)
Url-decodes data after possible encoding for transport

Parameters:
s - data to be decoded from HTTP request
Returns:
decoded data

getRequestParams

public static Map<String,String> getRequestParams(javax.servlet.http.HttpServletRequest request)
                                           throws IOException
Throws:
IOException


Copyright © 2004-2012 The YAWL Foundation.