/** * Generates a JavaScript reverse router. * * @param name the router's name * @param ajaxMethod which asynchronous call method the user's browser will use (e.g. "jQuery.ajax") * @param routes the reverse routes for this router * @return the router * * @deprecated Deprecated as of 2.7.0. Use {@link #create(String, String, String, JavaScriptReverseRoute...)} instead. */ @Deprecated public static JavaScript create(String name, String ajaxMethod, JavaScriptReverseRoute... routes) { return create(name, ajaxMethod, play.mvc.Http.Context.current().request().host(), routes); } // TODO:
/** * Generates a JavaScript reverse router. * * @param name the router's name * @param ajaxMethod which asynchronous call method the user's browser will use (e.g. "jQuery.ajax") * @param routes the reverse routes for this router * @return the router * * @deprecated Deprecated as of 2.7.0. Use {@link #create(String, String, String, JavaScriptReverseRoute...)} instead. */ @Deprecated public static JavaScript create(String name, String ajaxMethod, JavaScriptReverseRoute... routes) { return create(name, ajaxMethod, play.mvc.Http.Context.current().request().host(), routes); } // TODO:
/** * Generates a JavaScript reverse router. * * @param name the router's name * @param ajaxMethod which asynchronous call method the user's browser will use (e.g. "jQuery.ajax") * @param routes the reverse routes for this router * @return the router * * @deprecated Deprecated as of 2.7.0. Use {@link #create(String, String, String, JavaScriptReverseRoute...)} instead. */ @Deprecated public static JavaScript create(String name, String ajaxMethod, JavaScriptReverseRoute... routes) { return create(name, ajaxMethod, play.mvc.Http.Context.current().request().host(), routes); } // TODO:
/** * 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 absolute URL. */ public String absoluteURL(Http.Request request, boolean secure) { return absoluteURL(secure, request.host()); }
/** * Generates a JavaScript router. */ public static JavaScript javascriptRouter(String name, String ajaxMethod, play.api.routing.JavaScriptReverseRoute... routes) { return play.api.Routes.javascriptRouter( name, Scala.Option(ajaxMethod), play.mvc.Http.Context.current().request().host(), Scala.toSeq(routes) ); }
/** * 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 absolute URL. * * @param request used to identify the host and protocol that should base this absolute URL * @return the absolute URL string */ public String absoluteURL(Http.Request request) { return absoluteURL(request.secure(), request.host()); }
/** * Transform this call to an WebSocket URL. * * @param request used as the base for forming the WS url * @return the websocket url string */ public String webSocketURL(Http.Request request) { return webSocketURL(request.secure(), request.host()); }
/** * Transform this call to an absolute URL. * * @param request used to identify the host and protocol that should base this absolute URL * @return the absolute URL string */ public String absoluteURL(Http.Request request) { return absoluteURL(request.secure(), request.host()); }
/** * Transform this call to an WebSocket URL. */ public String webSocketURL(Http.Request request) { return webSocketURL(request.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 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 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 as the base for forming the WS url * @return the websocket url string */ public String webSocketURL(Http.Request request) { return webSocketURL(request.secure(), request.host()); }
/** * Transform this call to an absolute URL. * * @param request used to identify the host and protocol that should base this absolute URL * @return the absolute URL string */ public String absoluteURL(Http.Request request) { return absoluteURL(request.secure(), request.host()); }
/** * Transform this call to an absolute URL. */ public String absoluteURL(Http.Request request) { return absoluteURL(request.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 an WebSocket URL. * * @param request used as the base for forming the WS url * @return the websocket url string */ public String webSocketURL(Http.Request request) { return webSocketURL(request.secure(), request.host()); }
/** * Transform this call to an WebSocket URL. */ public String webSocketURL(Http.Request request, boolean secure) { return webSocketURL(secure, request.host()); }