org.acegisecurity.util
public final class FilterInvocationUtils extends java.lang.Object
FilterInvocation
s usable within Acegi Security.The generated
FilterInvocation
objects are not intended for use with AbstractSecurityInterceptor
subclasses. Instead they are generally used by WebInvocationPrivilegeEvaluator
.
Modifier and Type | Method and Description |
---|---|
static FilterInvocation |
create(java.lang.String uri)
Creates a
FilterInvocation for the specified Uri . |
static FilterInvocation |
create(java.lang.String contextPath,
java.lang.String uri)
Creates a
FilterInvocation for the specified contextPath and Uri . |
public static FilterInvocation create(java.lang.String contextPath, java.lang.String uri)
FilterInvocation
for the specified contextPath
and Uri
.
Note the normal subclasses of AbstractFilterInvocationDefinitionSource
disregard the
contextPath
when evaluating which secure object metadata applies to a given
FilterInvocation
, so generally the contextPath
is unimportant unless you are using a
custom FilterInvocationDefinitionSource
.contextPath
- the contextPath
that will be contained within the
FilterInvocation
HttpServletRequest
uri
- the URI of the request, such as /foo/default.jsp
FilterInvocation
(never null
)java.lang.UnsupportedOperationException
- DOCUMENT ME!public static FilterInvocation create(java.lang.String uri)
FilterInvocation
for the specified Uri
. The contextPath
is set to a default value.uri
- the URI of the request, such as /foo/default.jsp
FilterInvocation
(never null
)Copyright © 2004-2014 Interface21, Inc. All Rights Reserved.