com.scooterframework.web.route
Class RestRoute

java.lang.Object
  extended by com.scooterframework.web.route.Route
      extended by com.scooterframework.web.route.RegularRoute
          extended by com.scooterframework.web.route.RestRoute

public class RestRoute
extends RegularRoute

RestRoute class


Field Summary
 
Fields inherited from class com.scooterframework.web.route.Route
action, allowed_formats, allowed_methods, controller, controllerClass, dynamicAction, dynamicController, dynamicFormat, format, id, name, namespace, pathPrefix, requirements, singular, urlPattern
 
Constructor Summary
protected RestRoute()
           
  RestRoute(java.lang.String name, java.util.Properties p)
           
 
Method Summary
 java.lang.String getModel()
           
 java.lang.String getResourceName()
          Returns the name of the resource which generates the route.
 RouteInfo getRouteInfo(RequestInfo requestInfo)
           
 java.lang.String getRouteType()
           
protected  boolean isAllowedFormat(java.lang.String fmat)
           
protected  void setModel(java.lang.String model)
           
protected  void setResourceName(java.lang.String resourceName)
           
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class com.scooterframework.web.route.RegularRoute
isRouteFor
 
Methods inherited from class com.scooterframework.web.route.Route
allowedFormats, allowedMethods, copy, getAction, getAllowedFormats, getAllowedMethods, getController, getControllerClass, getControllerClassName, getFormat, getId, getModel, getModelClassName, getName, getNamespace, getPathPrefix, getPathSegments, getRequiredFieldPositions, getRequirements, getScreenURL, getScreenURLPattern, getSingular, getURLPattern, getURLSegment, getViewPath, hasFormat, isAllowedFieldValue, isAllowedMethod, parsePath, populateProperties, populateRequiredFields, segmentCount, validateMethods, validation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RestRoute

protected RestRoute()

RestRoute

public RestRoute(java.lang.String name,
                 java.util.Properties p)
Method Detail

getRouteInfo

public RouteInfo getRouteInfo(RequestInfo requestInfo)
Overrides:
getRouteInfo in class Route

getRouteType

public java.lang.String getRouteType()
Overrides:
getRouteType in class RegularRoute

isAllowedFormat

protected boolean isAllowedFormat(java.lang.String fmat)
Overrides:
isAllowedFormat in class Route

getModel

public java.lang.String getModel()

setModel

protected void setModel(java.lang.String model)

getResourceName

public java.lang.String getResourceName()
Returns the name of the resource which generates the route.

Returns:
resource name

setResourceName

protected void setResourceName(java.lang.String resourceName)

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class Route
Returns:
String