public class PathDescriptor extends Object implements Comparable<PathDescriptor>
If autoTx is true (which is the default) then a transaction will be started each time a path matching the given path specification is requested. (the transaction is started in a filter before the JAX-RS resource is called and closed after the response is sent to the output stream). If false then no transaction handling is done. The default is to start a transaction for any path but: [^/]+/skin/.*
The value attribute is required and must be used to specify the path pattern. The path pattern is either a prefix or a regular expression. If the regex parameter is true (the default is false) then the value will be expected to be a regular expression. A prefix denotes a path starting with 'prefix'. Paths are relative to the webengine servlet (i.e. they correspond to the servlet path info in the JAX-RS servlet) - and always begin with a '/'.
Modifier and Type | Field and Description |
---|---|
protected Boolean |
autoTx |
protected PathMatcher |
matcher |
protected boolean |
regex |
protected String |
value |
Constructor and Description |
---|
PathDescriptor() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PathDescriptor o) |
PathMatcher |
createMatcher() |
boolean |
equals(Object obj) |
Boolean |
getAutoTx() |
PathMatcher |
getMatcher() |
String |
getValue() |
int |
hashCode() |
boolean |
isAutoTx(boolean defaultValue) |
boolean |
match(String path) |
String |
toString() |
protected boolean regex
protected PathMatcher matcher
public PathDescriptor()
public PathMatcher getMatcher()
public boolean isAutoTx(boolean defaultValue)
public PathMatcher createMatcher()
public int compareTo(PathDescriptor o)
compareTo
in interface Comparable<PathDescriptor>
Copyright © 2015 Nuxeo SA. All rights reserved.