/** * Something like http://localhost:8080/ * * Will contain trailing slash! * @return */ public String getServerAddress() { return ninjaTestServer.getServerAddress(); }
/** * @see #getBaseUrl() */ @Deprecated public String getServerAddress() { return ninjaTestServer.getServerAddress(); }
/** * @deprecated Does not include a configured context path as part of this * uri. Also returns a uri with a trailing '/', while its more common to * build a uri as (baseUri + "/path") since "/path" is what an href looks * like in html. * @see #getServerUrl() * @see #getBaseUrl() */ @Deprecated public URI getServerAddressAsUri() { try { return new URI(getServerAddress()); } catch (URISyntaxException e) { // should not be able to happen... return null; } }