aerogear-controller 1.0.0.Alpha

org.jboss.aerogear.controller.router
Class DefaultRoute

java.lang.Object
  extended by org.jboss.aerogear.controller.router.DefaultRoute
All Implemented Interfaces:
Route

public class DefaultRoute
extends Object
implements Route


Field Summary
private  Set<RequestMethod> methods
           
private  String path
           
private  Class<?> targetClass
           
private  Method targetMethod
           
 
Constructor Summary
DefaultRoute(String path, RequestMethod[] methods, Class<?> targetClass, Method targetMethod)
           
 
Method Summary
 Set<RequestMethod> getMethods()
           
 String getPath()
           
 Class<?> getTargetClass()
           
 Method getTargetMethod()
           
 boolean isParameterized()
           
private  boolean isPathCompatible(String path)
           
 boolean matches(RequestMethod method, String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

path

private final String path

targetClass

private final Class<?> targetClass

targetMethod

private final Method targetMethod

methods

private Set<RequestMethod> methods
Constructor Detail

DefaultRoute

public DefaultRoute(String path,
                    RequestMethod[] methods,
                    Class<?> targetClass,
                    Method targetMethod)
Method Detail

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

aerogear-controller 1.0.0.Alpha

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.