org.mockserver.mockserver
Class MockServerBuilder

java.lang.Object
  extended by org.mockserver.mockserver.MockServerBuilder

public class MockServerBuilder
extends Object

Author:
jamesdbloom

Constructor Summary
MockServerBuilder()
           
 
Method Summary
 MockServer build()
          Build an instance of the HttpProxy
 Thread buildAndReturnThread()
          Build an instance of the HttpProxy
 MockServerBuilder withHTTPPort(Integer port)
          Configure HTTP port for proxy, setting this value will ensure HTTP is supported
 MockServerBuilder withHTTPSPort(Integer securePort)
          Configure HTTP/SSL (HTTPS) port for proxy, setting this value will ensure HTTPS is supported, clients that use HTTP -> HTTPS CONNECT request also require the HTTP port to be set using HttpProxyBuilder#withHTTPPort(Integer port)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockServerBuilder

public MockServerBuilder()
Method Detail

withHTTPPort

public MockServerBuilder withHTTPPort(Integer port)
Configure HTTP port for proxy, setting this value will ensure HTTP is supported

Parameters:
port - the HTTP port to use

withHTTPSPort

public MockServerBuilder withHTTPSPort(Integer securePort)
Configure HTTP/SSL (HTTPS) port for proxy, setting this value will ensure HTTPS is supported, clients that use HTTP -> HTTPS CONNECT request also require the HTTP port to be set using HttpProxyBuilder#withHTTPPort(Integer port)

Parameters:
securePort - the HTTP/SSL (HTTPS) port to use

build

public MockServer build()
Build an instance of the HttpProxy


buildAndReturnThread

public Thread buildAndReturnThread()
Build an instance of the HttpProxy



Copyright © 2014. All rights reserved.