| java.lang.Object org.geoserver.ows.util.ResponseUtils
ResponseUtils | public class ResponseUtils (Code) | | Utility class performing operations related to http respones.
author: Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org |
Method Summary | |
public static String | appendPath(String url, String path) Appends a path tpo a url.
This method checks url to see if the appended path requires a '/' to be
prepended.
Parameters: url - The base url. Parameters: path - The path to be appended to the url. | public static String | appendQueryString(String url, String queryString) Appends a query string to a url.
This method checks url to see if the appended query string requires a '?' or
'&' to be prepended.
Parameters: url - The base url. Parameters: queryString - The query string to be appended, should not contain the '?' character. | public static String | encodeXML(String inData) Parses the passed string, and encodes the special characters (used in
xml for special purposes) with the appropriate codes. | public static String | stripQueryString(String url) Strips the query string off a request url.
Parameters: url - The url. | public static void | writeEscapedString(Writer writer, String string) Writes string into writer, escaping &, ', ", <, and >
with the XML excape strings. |
appendPath | public static String appendPath(String url, String path)(Code) | | Appends a path tpo a url.
This method checks url to see if the appended path requires a '/' to be
prepended.
Parameters: url - The base url. Parameters: path - The path to be appended to the url. The full url with the path appended.TODO: remove this and replace with Requetss.appendContextPath |
appendQueryString | public static String appendQueryString(String url, String queryString)(Code) | | Appends a query string to a url.
This method checks url to see if the appended query string requires a '?' or
'&' to be prepended.
Parameters: url - The base url. Parameters: queryString - The query string to be appended, should not contain the '?' character. A full url with the query string appended.TODO: remove this and replace with Requetss.appendQueryString |
encodeXML | public static String encodeXML(String inData)(Code) | | Parses the passed string, and encodes the special characters (used in
xml for special purposes) with the appropriate codes. e.g. '<' is
changed to '<'
Parameters: inData - The string to encode into xml. the encoded string. Returns null, if null is passed as argument |
stripQueryString | public static String stripQueryString(String url)(Code) | | Strips the query string off a request url.
Parameters: url - The url. The original minus the query string. |
writeEscapedString | public static void writeEscapedString(Writer writer, String string) throws IOException(Code) | | Writes string into writer, escaping &, ', ", <, and >
with the XML excape strings.
|
|
|