public Servlet(String name, String contextRoot) { if (name == null) { throw new IllegalArgumentException("name must not be null"); } if (contextRoot == null) { throw new IllegalArgumentException("contextRoot must not be null"); } this.name = name; this.contextRoot = cleanContextRoot(contextRoot); }
public Servlet(String name, String contextRoot) { if (name == null) { throw new IllegalArgumentException("name must not be null"); } if (contextRoot == null) { throw new IllegalArgumentException("contextRoot must not be null"); } this.name = name; this.contextRoot = cleanContextRoot(contextRoot); }