|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.gateway.GatewayEngineImpl
public class GatewayEngineImpl
Field Summary |
---|
Fields inherited from interface railo.runtime.gateway.GatewayEnginePro |
---|
LOGLEVEL_DEBUG, LOGLEVEL_ERROR, LOGLEVEL_FATAL, LOGLEVEL_INFO, LOGLEVEL_WARN |
Constructor Summary | |
---|---|
GatewayEngineImpl(ConfigWeb config)
|
Method Summary | |
---|---|
void |
addEntries(Config config,
Map<String,GatewayEntry> entries)
|
void |
addEntry(Config config,
GatewayEntry ge)
|
Object |
call(String cfcPath,
String id,
String functionName,
Struct arguments,
boolean cfcPeristent,
Object defaultValue)
|
Object |
callEL(String cfcPath,
String id,
String functionName,
Struct arguments,
boolean cfcPeristent,
Object defaultValue)
|
boolean |
callOneWay(String cfcPath,
String id,
String functionName,
Struct arguments,
boolean cfcPeristent)
|
void |
clear()
|
Object |
getComponent(String cfcPath,
String id)
|
Map<String,GatewayEntry> |
getEntries()
|
Object |
getHelper(String gatewayId)
get helper object |
Component |
getPersistentRemoteCFC(String id)
|
int |
getState(String gatewayId)
get the state of gateway |
boolean |
invokeListener(GatewayPro gateway,
String method,
Map data)
invoke given method on cfc listener |
boolean |
invokeListener(String gatewayId,
String method,
Map data)
|
void |
log(GatewayPro gateway,
int level,
String message)
logs message with defined logger for gateways |
void |
log(String gatewayId,
int level,
String message)
|
void |
remove(GatewayEntry ge)
|
void |
reset()
|
void |
restart(String gatewayId)
restart the gateway |
String |
sendMessage(String gatewayId,
Struct data)
send the message to the gateway |
Component |
setPersistentRemoteCFC(String id,
Component cfc)
|
void |
start(String gatewayId)
start the gateway |
void |
stop(String gatewayId)
stop the gateway |
static int |
toIntState(String state,
int defaultValue)
|
String |
toRequestURI(String cfcPath)
|
static String |
toStringState(int state,
String defaultValue)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GatewayEngineImpl(ConfigWeb config)
Method Detail |
---|
public void addEntries(Config config, Map<String,GatewayEntry> entries) throws ClassException, PageException, IOException
ClassException
PageException
IOException
public void addEntry(Config config, GatewayEntry ge) throws ClassException, PageException, IOException
ClassException
PageException
IOException
public Map<String,GatewayEntry> getEntries()
public void remove(GatewayEntry ge)
public int getState(String gatewayId) throws PageException
gatewayId
-
PageException
public Object getHelper(String gatewayId) throws PageException
gatewayId
-
PageException
public String sendMessage(String gatewayId, Struct data) throws PageException, IOException
gatewayId
- data
-
PageException
IOException
public void start(String gatewayId) throws PageException
gatewayId
-
PageException
public void stop(String gatewayId) throws PageException
gatewayId
-
PageException
public void reset()
public void clear()
public void restart(String gatewayId) throws PageException
gatewayId
-
PageException
public static int toIntState(String state, int defaultValue)
public static String toStringState(int state, String defaultValue)
public boolean invokeListener(GatewayPro gateway, String method, Map data)
GatewayEnginePro
invokeListener
in interface GatewayEnginePro
method
- method to invokedata
- arguments
public boolean invokeListener(String gatewayId, String method, Map data)
public Object callEL(String cfcPath, String id, String functionName, Struct arguments, boolean cfcPeristent, Object defaultValue)
public boolean callOneWay(String cfcPath, String id, String functionName, Struct arguments, boolean cfcPeristent) throws PageException
PageException
public Object getComponent(String cfcPath, String id) throws PageException
PageException
public Object call(String cfcPath, String id, String functionName, Struct arguments, boolean cfcPeristent, Object defaultValue) throws PageException
PageException
public String toRequestURI(String cfcPath)
public void log(GatewayPro gateway, int level, String message)
GatewayEnginePro
log
in interface GatewayEnginePro
public void log(String gatewayId, int level, String message)
public Component getPersistentRemoteCFC(String id)
public Component setPersistentRemoteCFC(String id, Component cfc)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |