public class WCS
extends java.lang.Object
Constructor and Description |
---|
WCS() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
deploy(ICS ics,
java.lang.String site,
java.lang.String user,
java.lang.String pass)
Deploy
|
static java.lang.String |
dispatch(ICS ics,
java.lang.String clazz)
Dispatch requests
|
static Config |
getConfig(ICS ics)
Load the config for the current site
|
static Env |
getEnv(ICS ics,
java.lang.String className)
Load an env class initializing it with an ICS
|
static java.lang.String |
getProperty(java.lang.String name)
Return a property configured in setup
|
static Router |
getRouter(ICS ics)
Return a router for the site.
|
static java.lang.String |
normalizeSiteName(java.lang.String site)
Normalize Site name
|
static Call |
route(ICS ics,
java.lang.String site,
java.lang.String path,
java.lang.String query)
Dispatch requests
|
static java.lang.String |
tmp()
Generate an unique temporary var name.
|
public static java.lang.String normalizeSiteName(java.lang.String site)
public static java.lang.String getProperty(java.lang.String name)
name
- public static java.lang.String dispatch(ICS ics, java.lang.String clazz)
ics
- clazz
- public static java.lang.String deploy(ICS ics, java.lang.String site, java.lang.String user, java.lang.String pass)
ics
- site
- user
- pass
- public static Call route(ICS ics, java.lang.String site, java.lang.String path, java.lang.String query) throws java.lang.Exception
ics
- clazz
- java.lang.Exception
public static Router getRouter(ICS ics)
site
- public static Config getConfig(ICS ics)
site
- public static Env getEnv(ICS ics, java.lang.String className)
site
- public static java.lang.String tmp()