|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object php.java.servlet.ServletUtil
public class ServletUtil
Miscellaneous servlet functions.
Method Summary | |
---|---|
static java.lang.String |
getHeaders(java.lang.StringBuffer buf,
java.util.Enumeration enumeration)
|
static int |
getLocalPort(javax.servlet.ServletRequest req)
Only for internal use. |
static int |
getMBeanProperty(java.lang.String pattern,
java.lang.String property)
Return an mbean property. |
static java.lang.String |
getRealPath(javax.servlet.ServletContext context2,
java.lang.String pathInfoCGI)
Identical to context2.getRealPath(pathInfoCGI). |
static java.io.OutputStream |
getServletOutputStream(javax.servlet.http.HttpServletResponse response)
|
static boolean |
isJavaBridgeWc(java.lang.String contextPath)
|
static java.lang.String |
nullsToBlanks(java.lang.String s)
|
static java.lang.String |
nullsToString(java.lang.String couldBeNull,
java.lang.String subForNulls)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String getRealPath(javax.servlet.ServletContext context2, java.lang.String pathInfoCGI)
context2
- The servlet context.pathInfoCGI
- may be "" or "/" for example.
public static int getLocalPort(javax.servlet.ServletRequest req)
req
- The servlet request
public static boolean isJavaBridgeWc(java.lang.String contextPath)
public static java.lang.String nullsToBlanks(java.lang.String s)
public static java.lang.String nullsToString(java.lang.String couldBeNull, java.lang.String subForNulls)
public static java.lang.String getHeaders(java.lang.StringBuffer buf, java.util.Enumeration enumeration)
public static java.io.OutputStream getServletOutputStream(javax.servlet.http.HttpServletResponse response) throws java.io.IOException
java.io.IOException
public static int getMBeanProperty(java.lang.String pattern, java.lang.String property)
Util.getMBeanProperty("*:type=ThreadPool,name=http*", "maxThreads")
or
Util.getMBeanProperty("*:ServiceModule=*,J2EEServer=*,name=JettyWebConnector,j2eeType=*", "maxThreads");
pattern
- the pattern stringproperty
- the property key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |