Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
HttpRequestWildcardFilter |
|
| 0.0;0 |
1 | /* | |
2 | * $Id: HttpRequestWildcardFilter.java 19191 2010-08-25 21:05:23Z tcarlson $ | |
3 | * -------------------------------------------------------------------------------------- | |
4 | * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com | |
5 | * | |
6 | * The software in this package is published under the terms of the CPAL v1.0 | |
7 | * license, a copy of which has been included with this distribution in the | |
8 | * LICENSE.txt file. | |
9 | */ | |
10 | ||
11 | package org.mule.transport.http.filters; | |
12 | ||
13 | import org.mule.api.MuleMessage; | |
14 | import org.mule.routing.filters.WildcardFilter; | |
15 | import org.mule.transport.http.HttpConnector; | |
16 | ||
17 | /** | |
18 | * <code>HttpRequestWildcardFilter</code> filters out wildcard URL expressions. You | |
19 | * can use a comma-separated list of URL patterns such as "*.gif, *blah*". | |
20 | */ | |
21 | public class HttpRequestWildcardFilter extends WildcardFilter | |
22 | { | |
23 | ||
24 | public HttpRequestWildcardFilter() | |
25 | { | |
26 | 0 | super(); |
27 | 0 | } |
28 | ||
29 | public HttpRequestWildcardFilter(String pattern) | |
30 | { | |
31 | 0 | super(pattern); |
32 | 0 | } |
33 | ||
34 | @Override | |
35 | public boolean accept(MuleMessage message) | |
36 | { | |
37 | 0 | Object requestProperty = message.getInboundProperty(HttpConnector.HTTP_REQUEST_PROPERTY); |
38 | 0 | return super.accept(requestProperty); |
39 | } | |
40 | ||
41 | } |