public final class WicketComponentExtensions extends Object
| Constructor and Description |
|---|
WicketComponentExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static void |
disableCaching(org.apache.wicket.request.http.WebResponse response)
Disables caching from a WebPage.
|
static String |
getContextPath(org.apache.wicket.protocol.http.WebApplication application)
Deprecated.
|
static org.apache.wicket.behavior.Behavior |
getHeaderContributorForFavicon()
Gets the header contributor for favicon.
|
static HttpServletRequest |
getHttpServletRequest()
Gets the http servlet request.
|
static HttpServletRequest |
getHttpServletRequest(org.apache.wicket.request.Request request)
Gets the http servlet request.
|
static HttpServletResponse |
getHttpServletResponse()
Gets the http servlet response.
|
static HttpServletResponse |
getHttpServletResponse(org.apache.wicket.request.Response response)
Gets the http servlet response.
|
static String |
getIpAddress()
Gets the ip address.
|
static String |
getParameter(org.apache.wicket.request.Request request,
String parameterName)
Deprecated.
|
static String |
getParameter(String parameterName)
Deprecated.
use instead
PageParametersExtensions.getParameter(String) |
static Map<String,String[]> |
getParameterMap()
Deprecated.
use instead
PageParametersExtensions.getParameterMap() |
static Map<String,String[]> |
getParameterMap(org.apache.wicket.request.Request request)
Deprecated.
|
static String |
getRemoteAddr()
Gets the remote addr.
|
static String |
getRequestURL()
Gets the request url.
|
static boolean |
isHttps()
Checks if the current request has the scheme 'https'.
|
static boolean |
isSecure(org.apache.wicket.Component component)
Checks if the given component has as parent a page that is annotated with
RequireHttps. |
static void |
setAccessControlHeader(org.apache.wicket.request.http.WebResponse response)
Sets the access control header.
|
static void |
setSecurityHeaders(org.apache.wicket.request.http.WebResponse response)
Sets the security headers.
|
static String |
toAbsolutePath(String relativePagePath)
Helper method for the migration from wicket-version 1.5.x to 6.x.
|
static org.apache.wicket.request.mapper.parameter.PageParameters |
toPageParameters(Map<String,String> parameters)
Deprecated.
use instead
PageParametersExtensions.toPageParameters(Map) |
public static void disableCaching(org.apache.wicket.request.http.WebResponse response)
protected void setHeaders(WebResponse response) {
WicketComponentUtils.disableCaching(response);
}
response - the response@Deprecated public static String getContextPath(org.apache.wicket.protocol.http.WebApplication application)
ApplicationExtensions.getContextPath(WebApplication)application - the WebApplicationpublic static org.apache.wicket.behavior.Behavior getHeaderContributorForFavicon()
public static HttpServletRequest getHttpServletRequest()
public static HttpServletRequest getHttpServletRequest(org.apache.wicket.request.Request request)
request - the requestpublic static HttpServletResponse getHttpServletResponse()
public static HttpServletResponse getHttpServletResponse(org.apache.wicket.request.Response response)
response - the responsepublic static String getIpAddress()
@Deprecated public static String getParameter(org.apache.wicket.request.Request request, String parameterName)
PageParametersExtensions.getParameter(Request, String)request - the requestparameterName - the parameter name@Deprecated public static String getParameter(String parameterName)
PageParametersExtensions.getParameter(String)parameterName - the parameter name@Deprecated public static Map<String,String[]> getParameterMap()
PageParametersExtensions.getParameterMap()@Deprecated public static Map<String,String[]> getParameterMap(org.apache.wicket.request.Request request)
PageParametersExtensions.getParameterMap(Request)request - the requestpublic static String getRemoteAddr()
public static String getRequestURL()
public static boolean isHttps()
public static boolean isSecure(org.apache.wicket.Component component)
RequireHttps.component - the component to checkpublic static void setAccessControlHeader(org.apache.wicket.request.http.WebResponse response)
response - the response to set the header.public static void setSecurityHeaders(org.apache.wicket.request.http.WebResponse response)
response - the new security headerspublic static String toAbsolutePath(String relativePagePath)
relativePagePath - the relative page path@Deprecated public static org.apache.wicket.request.mapper.parameter.PageParameters toPageParameters(Map<String,String> parameters)
PageParametersExtensions.toPageParameters(Map)PageParameters object.parameters - the Map with the parameters to set.PageParametersCopyright © 2010–2015 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.