Refine search
/** * Transform this call to an absolute URL. * * @param secure true if the absolute URL should use HTTPS protocol instead of HTTP * @param host the absolute URL's domain * @return the absolute URL string */ public String absoluteURL(boolean secure, String host) { return "http" + (secure ? "s" : "") + "://" + host + this.url() + this.appendFragment(); }
@Override public String toString() { return this.path(); }
/** * Transform this call to an WebSocket URL. * * @param host the host for the absolute URL. * @param secure true if it should be a wss rather than ws URL * @return the url string */ public String webSocketURL(boolean secure, String host) { return "ws" + (secure ? "s" : "") + "://" + host + this.url(); }
/** * Transform this call to an absolute URL. * * @param request used to identify the host that should base this absolute URL * @param secure true if the absolute URL should use HTTPS protocol * @return the absolute URL string */ public String absoluteURL(Http.Request request, boolean secure) { return absoluteURL(secure, request.host()); }
/** * Transform this call to an WebSocket URL. * * @param request used to identify the host for the absolute URL * @param secure true if it should be a wss rather than ws URL * @return the websocket URL string */ public String webSocketURL(Http.Request request, boolean secure) { return webSocketURL(secure, request.host()); }
/** * Transform this call to a relative path. * @param requestHeader used to identify the current URL to make this Call relative to. * @return the relative path string */ public String relativeTo(Http.RequestHeader requestHeader) { return this.relativeTo(requestHeader.path()); }
/** * Transform this call to an WebSocket URL. * * @param host the host for the absolute URL. * @param secure true if it should be a wss rather than ws URL * @return the url string */ public String webSocketURL(boolean secure, String host) { return "ws" + (secure ? "s" : "") + "://" + host + this.url(); }
/** * Transform this call to an absolute URL. * * @param request used to identify the host that should base this absolute URL * @param secure true if the absolute URL should use HTTPS protocol * @return the absolute URL string */ public String absoluteURL(Http.Request request, boolean secure) { return absoluteURL(secure, request.host()); }
/** * Transform this call to an WebSocket URL. */ public String webSocketURL(Http.Request request, boolean secure) { return webSocketURL(secure, request.host()); }
/** * Transform this call to a relative path. * @param requestHeader used to identify the current URL to make this Call relative to. * @return the relative path string */ public String relativeTo(Http.RequestHeader requestHeader) { return this.relativeTo(requestHeader.path()); }
/** * Transform this call to an absolute URL. * * @param secure true if the absolute URL should use HTTPS protocol instead of HTTP * @param host the absolute URL's domain * @return the absolute URL string */ public String absoluteURL(boolean secure, String host) { return "http" + (secure ? "s" : "") + "://" + host + this.url() + this.appendFragment(); }