aerogear-controller 1.0.0.Alpha

org.jboss.aerogear.controller.router
Class RouteDescriptor

java.lang.Object
  extended by org.jboss.aerogear.controller.router.RouteDescriptor
All Implemented Interfaces:
RouteBuilder.OnMethods, RouteBuilder.TargetEndpoint

public class RouteDescriptor
extends Object
implements RouteBuilder.OnMethods, RouteBuilder.TargetEndpoint


Nested Class Summary
private static class RouteDescriptor.MyMethodInterceptor
           
 
Field Summary
private  Object[] args
           
private  RequestMethod[] methods
           
private  String path
           
private  Class<?> targetClass
           
private  Method targetMethod
           
 
Constructor Summary
RouteDescriptor(String path)
           
 
Method Summary
 RequestMethod[] getMethods()
           
 String getPath()
           
 Class<?> getTargetClass()
           
 Method getTargetMethod()
           
 RouteBuilder.TargetEndpoint on(RequestMethod... methods)
           
<T> T
to(Class<T> clazz)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

path

private final String path

targetMethod

private Method targetMethod

args

private Object[] args

methods

private RequestMethod[] methods

targetClass

private Class<?> targetClass
Constructor Detail

RouteDescriptor

public RouteDescriptor(String path)
Method Detail

on

public RouteBuilder.TargetEndpoint on(RequestMethod... methods)
Specified by:
on in interface RouteBuilder.OnMethods

to

public <T> T to(Class<T> clazz)
Specified by:
to in interface RouteBuilder.TargetEndpoint

getPath

public String getPath()

getMethods

public RequestMethod[] getMethods()

getTargetMethod

public Method getTargetMethod()

getTargetClass

public Class<?> getTargetClass()

toString

public String toString()
Overrides:
toString in class Object

aerogear-controller 1.0.0.Alpha

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