public class Util
extends java.lang.Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
checkRegex(java.util.regex.Matcher m,
boolean isMatched) |
static java.lang.String |
dropSuffixFrom(java.lang.String s,
java.util.regex.Pattern suffixPattern) |
static java.lang.String |
getMemoryReport() |
static boolean |
matchesSuffixPattern(java.lang.String s,
java.util.regex.Pattern suffixPattern) |
static void |
printMemoryReport(java.io.PrintWriter pw) |
static void |
printSystemProperties(java.io.PrintWriter pw)
************************************************************************
|
static void |
sendSystemProperties(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.io.PrintStream ps)
************************************************************************
Default handler for OPeNDAP status requests; not publically availableInChunk,
used only for debugging
|
static void |
sendSystemProperties(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.io.PrintWriter pw)
************************************************************************
Default handler for OPeNDAP status requests; not publically availableInChunk,
used only for debugging
|
static java.lang.String |
uriInfo(java.net.URI uri) |
static java.lang.String |
urlInfo(java.net.URL url) |
public static void printSystemProperties(java.io.PrintWriter pw) throws java.lang.Exception
pw
- The PrintWriter to which the system properties should be
written.java.io.IOException
- When things go poorly.java.lang.Exception
public static void sendSystemProperties(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.io.PrintWriter pw) throws java.lang.Exception
request
- The client's HttpServletRequest
request
object.response
- The server's HttpServletResponse
response
object.pw
- The server's HttpServletResponse
response
object.java.io.IOException
- When things go poorly.java.lang.Exception
public static void printMemoryReport(java.io.PrintWriter pw)
public static java.lang.String getMemoryReport()
public static void sendSystemProperties(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.io.PrintStream ps) throws java.lang.Exception
request
- The client's HttpServletRequest
request
object.response
- The server's HttpServletResponse
response
object.ps
- The server's HttpServletResponse
response
object.java.io.IOException
- When things go poorly.java.lang.Exception
public static java.lang.String urlInfo(java.net.URL url)
public static java.lang.String uriInfo(java.net.URI uri)
public static java.lang.String checkRegex(java.util.regex.Matcher m, boolean isMatched)
public static java.lang.String dropSuffixFrom(java.lang.String s, java.util.regex.Pattern suffixPattern)
public static boolean matchesSuffixPattern(java.lang.String s, java.util.regex.Pattern suffixPattern)