src/main/java/ch/rasc/embeddedtc/EmbeddedTomcat.java
public EmbeddedTomcat setContextPath(String contextPath) {

		if (contextPath == null
				|| !contextPath.equals("") && !contextPath.startsWith("/")) {
			throw new IllegalArgumentException(
					"contextPath must be the empty string \"\" or a path starting with /");
		}

		this.contextPath = contextPath;
		return this;
	}
public EmbeddedTomcat setContextPath(String contextPath) {

		if (contextPath == null
				|| !contextPath.equals("") && !contextPath.startsWith("/")) {
			throw new IllegalArgumentException(
					"contextPath must be the empty string \"\" or a path starting with /");
		}

		this.contextPath = contextPath;
		return this;
	}
public EmbeddedTomcat setContextPath ( String contextPath ) { if ( contextPath == null || ! contextPath . equals ( "" ) && ! contextPath . startsWith ( "/" ) ) { throw new IllegalArgumentException ( "contextPath must be the empty string \"\" or a path starting with /" ) ; } this . contextPath = contextPath ; return this ; }
Sets the contextPath for the webapplication

@param contextPath The new contextPath. Has to start with / or is the empty ""
string
@return The embedded Tomcat
Sets the contextPath for the webapplication