org.camunda.bpm.webapp.impl.security.filter
Class RequestFilter

java.lang.Object
  extended by org.camunda.bpm.webapp.impl.security.filter.RequestFilter

public class RequestFilter
extends 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

Field Summary
protected  String[] methods
           
protected  Pattern pattern
           
 
Constructor Summary
RequestFilter(String pattern, String... methods)
           
 
Method Summary
protected  boolean isMethodMatched(String requestMethod)
           
 Map<String,String> match(String requestMethod, String requestUri)
           
protected  Map<String,String> matchRequestUri(String requestUri)
           
protected  void setPattern(String pattern)
          Sets the uri pattern for this matcher
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

methods

protected String[] methods

pattern

protected Pattern pattern
Constructor Detail

RequestFilter

public RequestFilter(String pattern,
                     String... methods)
Method Detail

match

public Map<String,String> match(String requestMethod,
                                String requestUri)

isMethodMatched

protected boolean isMethodMatched(String requestMethod)

matchRequestUri

protected Map<String,String> matchRequestUri(String requestUri)

setPattern

protected final void setPattern(String pattern)
Sets the uri pattern for this matcher

Parameters:
pattern -


Copyright © 2018 camunda services GmbH. All rights reserved.