org.jboss.aerogear.controller.router
Class DefaultRoute
java.lang.Object
org.jboss.aerogear.controller.router.DefaultRoute
- All Implemented Interfaces:
- Route
public class DefaultRoute
- extends Object
- implements Route
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
path
private final String path
targetClass
private final Class<?> targetClass
targetMethod
private final Method targetMethod
methods
private Set<RequestMethod> methods
DefaultRoute
public DefaultRoute(String path,
RequestMethod[] methods,
Class<?> targetClass,
Method targetMethod)
getMethods
public Set<RequestMethod> getMethods()
- Specified by:
getMethods in interface Route
getPath
public String getPath()
- Specified by:
getPath in interface Route
getTargetClass
public Class<?> getTargetClass()
- Specified by:
getTargetClass in interface Route
matches
public boolean matches(RequestMethod method,
String path)
- Specified by:
matches in interface Route
isPathCompatible
private boolean isPathCompatible(String path)
getTargetMethod
public Method getTargetMethod()
- Specified by:
getTargetMethod in interface Route
isParameterized
public boolean isParameterized()
- Specified by:
isParameterized in interface Route
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.