org.mockserver.mockserver
Class MockServerBuilder
java.lang.Object
org.mockserver.mockserver.MockServerBuilder
public class MockServerBuilder
- extends Object
- Author:
- jamesdbloom
|
Method Summary |
MockServer |
build()
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 |
MockServerBuilder
public MockServerBuilder()
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
Copyright © 2014. All rights reserved.