org.webframe.test.web
Class BaseWebServerTests

java.lang.Object
  extended by 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:
黄国庆

Field Summary
(package private) static String host
           
protected static String HTTP
           
protected static String HTTPS
           
(package private) static int port
           
 
Constructor Summary
BaseWebServerTests()
           
 
Method Summary
protected  org.eclipse.jetty.server.Connector disposeConnector()
           
protected  String getServerHost()
           
protected  int getServerPort()
           
protected  String getServerURL()
          默认获取http协议的ServerURL
protected  String getServerURL(String protocol)
          指定URL协议类型,获取URL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

BaseWebServerTests

public BaseWebServerTests()
Method Detail

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.HTTPorg.webframe.test.web.BaseWebServerTests.HTTPS
Returns:


Copyright © 2012. All Rights Reserved.