org.mockserver.cli
Class Main

java.lang.Object
  extended by org.mockserver.cli.Main

public class Main
extends Object

Author:
jamesdbloom

Field Summary
static String PROXY_PORT_KEY
           
static String PROXY_REMOTE_HOST_KEY
           
static String PROXY_REMOTE_PORT_KEY
           
static String SERVER_PORT_KEY
           
static String USAGE
           
 
Constructor Summary
Main()
           
 
Method Summary
static void main(String... arguments)
          Run the MockServer directly providing the parseArguments for the server and httpProxyBuilder as the only input parameters (if not provided the server port defaults to 8080 and the httpProxyBuilder is not started).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER_PORT_KEY

public static final String SERVER_PORT_KEY
See Also:
Constant Field Values

PROXY_PORT_KEY

public static final String PROXY_PORT_KEY
See Also:
Constant Field Values

PROXY_REMOTE_PORT_KEY

public static final String PROXY_REMOTE_PORT_KEY
See Also:
Constant Field Values

PROXY_REMOTE_HOST_KEY

public static final String PROXY_REMOTE_HOST_KEY
See Also:
Constant Field Values

USAGE

public static final String USAGE
Constructor Detail

Main

public Main()
Method Detail

main

public static void main(String... arguments)
Run the MockServer directly providing the parseArguments for the server and httpProxyBuilder as the only input parameters (if not provided the server port defaults to 8080 and the httpProxyBuilder is not started).

Parameters:
arguments - the entries are in pairs: - "-serverPort" followed by the server port if not provided the MockServer is not started, - "-proxyPort" followed by the proxy port if not provided the Proxy is not started, - "-proxyRemotePort" followed by the proxyRemotePort port, - "-proxyRemoteHost" followed by the proxyRemoteHost port


Copyright © 2017. All rights reserved.