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 javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Gets the http servlet request.
|
static javax.servlet.http.HttpServletRequest |
getHttpServletRequest(org.apache.wicket.request.Request request)
Gets the http servlet request.
|
static javax.servlet.http.HttpServletResponse |
getHttpServletResponse()
Gets the http servlet response.
|
static javax.servlet.http.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 |
setDefaultSecurityHeaders(org.apache.wicket.request.http.WebResponse response)
Sets the security headers.
|
static void |
setSecurityAccessControlHeader(org.apache.wicket.request.http.WebResponse response)
Sets the security headers for the category access control.
|
static void |
setSecurityCachingHeaders(org.apache.wicket.request.http.WebResponse response)
Sets the security headers for the category Caching.
|
static void |
setSecurityContentHeaders(org.apache.wicket.request.http.WebResponse response)
Sets the security headers for the category Content.
|
static void |
setSecurityCookieHeaders(org.apache.wicket.request.http.WebResponse response)
Sets the security headers for the category Caching.
|
static void |
setSecurityFramingHeaders(org.apache.wicket.request.http.WebResponse response)
Sets the security headers for the category framing.
|
static void |
setSecurityTransportHeaders(org.apache.wicket.request.http.WebResponse response)
Sets the security headers for the category Transport.
|
static void |
setSecurityXSSHeaders(org.apache.wicket.request.http.WebResponse response)
Sets the security headers for the category XSS.
|
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) {
WicketComponentExtensions.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 javax.servlet.http.HttpServletRequest getHttpServletRequest()
public static javax.servlet.http.HttpServletRequest getHttpServletRequest(org.apache.wicket.request.Request request)
request - the requestpublic static javax.servlet.http.HttpServletResponse getHttpServletResponse()
public static javax.servlet.http.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 setDefaultSecurityHeaders(org.apache.wicket.request.http.WebResponse response)
response - the new security headerspublic static void setSecurityAccessControlHeader(org.apache.wicket.request.http.WebResponse response)
response - the response to set the header.public static void setSecurityCachingHeaders(org.apache.wicket.request.http.WebResponse response)
response - the response to set the security headerspublic static void setSecurityContentHeaders(org.apache.wicket.request.http.WebResponse response)
response - the response to set the security headerspublic static void setSecurityCookieHeaders(org.apache.wicket.request.http.WebResponse response)
response - the response to set the security headerspublic static void setSecurityFramingHeaders(org.apache.wicket.request.http.WebResponse response)
response - the response to set the security headerspublic static void setSecurityTransportHeaders(org.apache.wicket.request.http.WebResponse response)
response - the response to set the security headerspublic static void setSecurityXSSHeaders(org.apache.wicket.request.http.WebResponse response)
response - the response to set the 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–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.