railo.runtime.rest
Class RestUtil
java.lang.Object
railo.runtime.rest.RestUtil
public class RestUtil
- extends Object
RestUtil
public RestUtil()
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