| 1 | |
package org.webslinger.rules; |
| 2 | |
|
| 3 | |
import java.io.IOException; |
| 4 | |
import javax.servlet.ServletRequest; |
| 5 | |
|
| 6 | |
import org.webslinger.PathContext; |
| 7 | |
import org.webslinger.Webslinger; |
| 8 | |
|
| 9 | 0 | public abstract class AbstractPathValue extends AbstractValue<PathContext> { |
| 10 | |
public AbstractPathValue(int id) { |
| 11 | 0 | super(id); |
| 12 | 0 | } |
| 13 | |
|
| 14 | |
public AbstractPathValue(Rules p, int id) { |
| 15 | 43 | super(p, id); |
| 16 | 43 | } |
| 17 | |
|
| 18 | |
public abstract PathContext getValue(ServletRequest request, Webslinger top) throws IOException; |
| 19 | |
|
| 20 | |
public PathContext getFirstValue(ServletRequest request, Webslinger top) throws IOException { |
| 21 | 0 | return getValue(request, top); |
| 22 | |
} |
| 23 | |
} |