|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tomcat.util.compat.JdkCompat org.apache.tomcat.util.compat.Jdk14Compat
See JdkCompat. This is an extension of that class for Jdk1.4 support.
Field Summary |
Fields inherited from class org.apache.tomcat.util.compat.JdkCompat |
JAVA_1_0, JAVA_1_1, JAVA_1_2, JAVA_1_3, JAVA_1_4, JAVA_1_5 |
Constructor Summary | |
protected |
Jdk14Compat()
Default no-arg constructor |
Method Summary | |
void |
chainException(java.lang.Throwable wrapper,
java.lang.Throwable wrapped)
Chains the wrapped throwable to the wrapper throwable. |
long |
getMaxMemory()
Return the maximum amount of memory the JVM will attempt to use. |
java.lang.String |
getPartialServletStackTrace(java.lang.Throwable t)
Print out a partial servlet stack trace (truncating at the last occurrence of javax.servlet.). |
java.net.ServerSocket |
getUnboundSocket(javax.net.ServerSocketFactory ssf)
Obtain an unbound socket from the ServerSocketFactory. |
java.net.URL |
getURI(java.io.File file)
Return the URI for the given file. |
java.lang.String[] |
split(java.lang.String path,
java.lang.String pat)
Splits a string into it's components. |
Methods inherited from class org.apache.tomcat.util.compat.JdkCompat |
getJavaVersion, getJdkCompat, isJava14, isJava15, isJava2 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Jdk14Compat()
Method Detail |
public java.net.URL getURI(java.io.File file) throws java.net.MalformedURLException
getURI
in class JdkCompat
file
- The file to wrap into URI
java.net.MalformedURLException
- Doh ;)public long getMaxMemory()
getMaxMemory
in class JdkCompat
public java.lang.String getPartialServletStackTrace(java.lang.Throwable t)
getPartialServletStackTrace
in class JdkCompat
public java.lang.String[] split(java.lang.String path, java.lang.String pat)
JdkCompat
split
in class JdkCompat
path
- String to splitpat
- Pattern to split at
public void chainException(java.lang.Throwable wrapper, java.lang.Throwable wrapped)
chainException
in class JdkCompat
wrapper
- The wrapper throwablewrapped
- The throwable to be wrappedpublic java.net.ServerSocket getUnboundSocket(javax.net.ServerSocketFactory ssf) throws java.io.IOException
getUnboundSocket
in class JdkCompat
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |