/** * Gets the protocol that should be used to render the url * * @param url * url being rendered * @return the protocol or {@code null} if none is set */ protected String resolveProtocol(final Url url) { return choose(url.getProtocol(), baseUrl.getProtocol(), request.getClientUrl() .getProtocol()); }
/** * Gets port that should be used to render the url * * @param url * url being rendered * @return port or {@code null} if none is set */ protected Integer resolvePort(final Url url) { return choose(url.getPort(), baseUrl.getPort(), request.getClientUrl().getPort()); }
/** * Gets the host name that should be used to render the url * * @param url * url being rendered * @return the host name or {@code null} if none is set */ protected String resolveHost(final Url url) { return choose(url.getHost(), baseUrl.getHost(), request.getClientUrl().getHost()); }
/** * Gets port that should be used to render the url * * @param url * url being rendered * @return port or {@code null} if none is set */ protected Integer resolvePort(final Url url) { return choose(url.getPort(), baseUrl.getPort(), request.getClientUrl().getPort()); }
/** * Gets the host name that should be used to render the url * * @param url * url being rendered * @return the host name or {@code null} if none is set */ protected String resolveHost(final Url url) { return choose(url.getHost(), baseUrl.getHost(), request.getClientUrl().getHost()); }
/** * Gets the protocol that should be used to render the url * * @param url * url being rendered * @return the protocol or {@code null} if none is set */ protected String resolveProtocol(final Url url) { return choose(url.getProtocol(), baseUrl.getProtocol(), request.getClientUrl() .getProtocol()); }