| java.lang.Object org.cougaar.core.servlet.ServletUtil
ServletUtil | final public class ServletUtil (Code) | | Utility methods that may assist in writing Servlets.
|
Inner Class :public interface ParamVisitor | |
encodeForHTML | final public static String encodeForHTML(String s)(Code) | | Encode a String for HTML.
The String should only be one line (i.e. no CRLFs).
Converts:
& to &
< to <
> to >
|
encodeForJava | final public static String encodeForJava(String s)(Code) | | Encode a String for Java.
Converts:
" to \\\"
\ to \\
CRLF to \\n
Can be used to create javascript pages.
|
getEncodedAgentName | public static String getEncodedAgentName(HttpServletRequest request)(Code) | | Get the "/$name" encoded Agent name from the request path.
|
parseParams | public static void parseParams(ParamVisitor vis, HttpServletRequest req) throws IOException(Code) | | Simplify the parsing of URL parameters.
See Also: ParamVisitor See Also: inner-class defined at the end of this class |
parseParams | public static void parseParams(ParamVisitor vis, Map m)(Code) | | Given a Map of (name, value) pairs, call back
to the given ParamVisitor 's "setParam(name,value)"
method.
See Also: ParamVisitor See Also: inner-class defined at the end of this class |
|
|