public final class WebUserDataPermission extends Permission implements Serializable
The name of a WebUserDataPermission (also referred to as the target name) identifies a Web resource by its context path relative URL pattern.
Permission
,
Serialized FormConstructor and Description |
---|
WebUserDataPermission(javax.servlet.http.HttpServletRequest request)
Creates a new WebUserDataPermission from the HttpServletRequest object.
|
WebUserDataPermission(String name,
String actions) |
WebUserDataPermission(String urlPattern,
String[] HTTPMethods,
String transportType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getActions() |
int |
hashCode() |
boolean |
implies(Permission permission) |
PermissionCollection |
newPermissionCollection() |
checkGuard, getName, toString
public WebUserDataPermission(javax.servlet.http.HttpServletRequest request)
request
- the HttpServletRequest object corresponding to the
Servlet operation to which the permission pertains. The permission
name is the substring of the requestURI (HttpServletRequest.getRequestURI())
that begins after the contextPath (HttpServletRequest.getContextPath()).
When the substring operation yields the string �/�, the permission is
constructed with the empty string as its name. The HTTP method component
of the permission�s actions is as obtained from HttpServletRequest.getMethod().
The TransportType component of the permission�s actions is determined
by calling HttpServletRequest.isSecure().public boolean equals(Object o)
equals
in class Permission
public String getActions()
getActions
in class Permission
public int hashCode()
hashCode
in class Permission
public boolean implies(Permission permission)
implies
in class Permission
public PermissionCollection newPermissionCollection()
newPermissionCollection
in class Permission
Copyright © 2013. All Rights Reserved.