Changeset 1536:1908eed4414a
- Timestamp:
- 10/22/10 15:59:59 (3 years ago)
- Author:
- Jean-Guilhem Rouel <jean-gui@…>
- Branch:
- default
- Message:
-
Ticket #109 Allow to perform checks depending on the request type (URL, upload, direct)
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r960
|
r1536
|
|
| 62 | 62 | <xs:enumeration value="xpath"></xs:enumeration> |
| 63 | 63 | <xs:enumeration value="mimetype"></xs:enumeration> |
| | 64 | <xs:enumeration value="method"></xs:enumeration> |
| 64 | 65 | </xs:restriction> |
| 65 | 66 | </xs:simpleType> |
-
|
r1337
|
r1536
|
|
| 5 | 5 | public enum EnumCondType { |
| 6 | 6 | |
| 7 | | XPATH("xpath"), MIMETYPE("mimetype"), PARAMETER("parameter"); |
| | 7 | XPATH("xpath"), MIMETYPE("mimetype"), PARAMETER("parameter"), METHOD("method"); |
| 8 | 8 | |
| 9 | 9 | private final String sValue; |
-
|
r1337
|
r1536
|
|
| 67 | 67 | case XPATH: |
| 68 | 68 | return new XPathCond(); |
| | 69 | case METHOD: |
| | 70 | return new MethodCond(); |
| 69 | 71 | default: |
| 70 | 72 | return null; |