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