org.mortbay.http
Class TestRFC2616
java.lang.Object
|
+--org.mortbay.util.ThreadPool
|
+--org.mortbay.http.TestRFC2616
- All Implemented Interfaces:
- HttpListener, LifeCycle
- public class TestRFC2616
- extends ThreadPool
- implements HttpListener
Test against RFC 2616.
- Version:
- $Id: TestRFC2616.java,v 1.2 2001/10/23 12:56:02 gregwilkins Exp $
- Author:
- Greg Wilkins (gregw)
Methods inherited from class org.mortbay.util.ThreadPool |
destroy, getIdleThreads, getMaxIdleTimeMs, getMaxSize, getMaxStopTimeMs, getMaxThreads, getMinSize, getMinThreads, getName, getSize, getThreadClass, getThreads, initialize, isDestroyed, isStarted, join, run, setMaxIdleTimeMs, setMaxSize, setMaxStopTimeMs, setMaxThreads, setMinSize, setMinThreads, setName, setThreadClass, start, stop |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultTestRoot
public static final java.lang.String defaultTestRoot
testFilePrefix
public static final java.lang.String testFilePrefix
testFileSuffix
public static final java.lang.String testFileSuffix
testFileChars
public static final java.lang.String[] testFileChars
TestRFC2616
public TestRFC2616()
throws java.lang.Exception
initTestFileData
public org.mortbay.http.TestRFC2616.TestFileData[] initTestFileData(java.io.File docRoot)
throws java.io.IOException
setHttpServer
public void setHttpServer(HttpServer s)
- Specified by:
setHttpServer
in interface HttpListener
getHttpServer
public HttpServer getHttpServer()
- Specified by:
getHttpServer
in interface HttpListener
getServerSocket
public java.net.ServerSocket getServerSocket()
- Specified by:
getServerSocket
in interface HttpListener
getDefaultScheme
public java.lang.String getDefaultScheme()
- Specified by:
getDefaultScheme
in interface HttpListener
setHost
public void setHost(java.lang.String h)
- Specified by:
setHost
in interface HttpListener
getHost
public java.lang.String getHost()
- Specified by:
getHost
in interface HttpListener
setPort
public void setPort(int p)
- Specified by:
setPort
in interface HttpListener
getPort
public int getPort()
- Specified by:
getPort
in interface HttpListener
isLowOnResources
public boolean isLowOnResources()
- Specified by:
isLowOnResources
in interface HttpListener
isOutOfResources
public boolean isOutOfResources()
- Specified by:
isOutOfResources
in interface HttpListener
persistConnection
public void persistConnection(HttpConnection connection)
- Specified by:
persistConnection
in interface HttpListener
getResponses
public java.lang.String getResponses(java.lang.String request)
throws java.io.IOException
getResponses
public byte[] getResponses(byte[] request)
throws java.io.IOException
test
public static void test()
test3_3
public static void test3_3()
test3_6
public static void test3_6()
test3_9
public static void test3_9()
test4_4
public static void test4_4()
test5_2
public static void test5_2()
test8_1
public static void test8_1()
test8_2
public static void test8_2()
test9_2
public static void test9_2()
test9_4
public static void test9_4()
test9_8
public static void test9_8()
test10_2_7
public static void test10_2_7()
test10_3
public static void test10_3()
checkContentRange
public void checkContentRange(Test t,
java.lang.String tname,
java.lang.String path,
java.lang.String reqRanges,
int expectedStatus,
java.lang.String expectedRange,
java.lang.String expectedData)
test14_16
public static void test14_16()
test14_35
public static void test14_35()
test14_39
public static void test14_39()
test19_6
public static void test19_6()
customizeRequest
public void customizeRequest(HttpConnection connection,
HttpRequest request)
- Specified by:
customizeRequest
in interface HttpListener
main
public static void main(java.lang.String[] args)
Copyright © 2000 Mortbay Consulting Pty. Ltd. All Rights Reserved.