railo.runtime.rest
Class RestUtil

java.lang.Object
  extended by railo.runtime.rest.RestUtil

public class RestUtil
extends Object


Constructor Summary
RestUtil()
           
 
Method Summary
static boolean isMatch(PageContext pc, Mapping mapping, Resource res)
           
static int matchPath(Struct variables, Path[] restPath, String[] callerPath)
          check if caller path match the cfc path
static void release(Mapping[] mappings)
           
static void setStatus(PageContext pc, int status, String msg)
           
static String[] splitPath(String path)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestUtil

public RestUtil()
Method Detail

splitPath

public static String[] splitPath(String path)

matchPath

public static int matchPath(Struct variables,
                            Path[] restPath,
                            String[] callerPath)
check if caller path match the cfc path

Parameters:
variables -
restPath -
callerPath -
Returns:
match until which index of the given cfc path, returns -1 if there is no match

setStatus

public static void setStatus(PageContext pc,
                             int status,
                             String msg)

release

public static void release(Mapping[] mappings)

isMatch

public static boolean isMatch(PageContext pc,
                              Mapping mapping,
                              Resource res)


Copyright © 2012 Railo