org.webframe.test.web
Class BaseWebServerTests
java.lang.Object
org.webframe.test.web.BaseWebServerTests
- Direct Known Subclasses:
- BaseHttpClientTests
public class BaseWebServerTests
- extends Object
- Version:
- $Id: codetemplates.xml,v 1.1 2009/09/07 08:48:12 Exp $ Create: 2011-12-31 上午09:59:09
- Author:
- 黄国庆
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HTTP
protected static final String HTTP
- See Also:
- Constant Field Values
HTTPS
protected static final String HTTPS
- See Also:
- Constant Field Values
port
static int port
host
static String host
BaseWebServerTests
public BaseWebServerTests()
disposeConnector
protected org.eclipse.jetty.server.Connector disposeConnector()
getServerPort
protected int getServerPort()
getServerHost
protected String getServerHost()
getServerURL
protected String getServerURL()
- 默认获取http协议的ServerURL
- Returns:
getServerURL
protected String getServerURL(String protocol)
- 指定URL协议类型,获取URL
- Parameters:
protocol - org.webframe.test.web.BaseWebServerTests.HTTP 或
org.webframe.test.web.BaseWebServerTests.HTTPS
- Returns:
Copyright © 2012. All Rights Reserved.