Class RequestFilter
- java.lang.Object
-
- org.camunda.bpm.webapp.impl.security.filter.RequestFilter
-
public class RequestFilter extends java.lang.Object
A request matcher that matches uris compatible to the JAX-RS syntax and extracts the arguments on match.
Example uris:/some/url/{param1}/{param2}/{param3:.*}
/some/url/{param1:foo}/.*
- Author:
- Daniel Meyer, nico.rehwaldt
-
-
Constructor Summary
Constructors Constructor Description RequestFilter(java.lang.String pattern, java.lang.String applicationPath, java.lang.String... methods)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isMethodMatched(java.lang.String requestMethod)
java.util.Map<java.lang.String,java.lang.String>
match(java.lang.String requestMethod, java.lang.String requestUri)
protected java.util.Map<java.lang.String,java.lang.String>
matchRequestUri(java.lang.String requestUri)
protected void
setPattern(java.lang.String pattern, java.lang.String applicationPath)
Sets the uri pattern for this matcher
-
-
-
Method Detail
-
match
public java.util.Map<java.lang.String,java.lang.String> match(java.lang.String requestMethod, java.lang.String requestUri)
-
isMethodMatched
protected boolean isMethodMatched(java.lang.String requestMethod)
-
matchRequestUri
protected java.util.Map<java.lang.String,java.lang.String> matchRequestUri(java.lang.String requestUri)
-
setPattern
protected final void setPattern(java.lang.String pattern, java.lang.String applicationPath)
Sets the uri pattern for this matcher- Parameters:
pattern
-
-
-