public class FlashPolicyPlugin extends EnginePlugin implements TcpAcceptCallback
| Modifier and Type | Class and Description |
|---|---|
protected class |
FlashPolicyPlugin.FlashPolicyJMX |
static interface |
FlashPolicyPlugin.FlashPolicyJMXMBean |
EnginePlugin.DeleteHook, EnginePlugin.DeleteSubObjHook, EnginePlugin.GenerateSubObjectHook, EnginePlugin.GetPropertyMessage, EnginePlugin.GetPropertyNamesMessage, EnginePlugin.LoadHook, EnginePlugin.LoadSubObjHook, EnginePlugin.PluginActivateHook, EnginePlugin.PluginStateMessage, EnginePlugin.SaveHook, EnginePlugin.SaveSubObjHook, EnginePlugin.SetPropertyMessage, EnginePlugin.SubObjData, EnginePlugin.TransferFilter, EnginePlugin.TransferObjectMessage, EnginePlugin.UnloadHook, EnginePlugin.UnloadSubObjHook| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
DEFAULT_POLICY |
protected int |
DEFAULT_PORT |
static int |
idleTimeout
Player idle timeout in seconds.
|
protected static Logger |
log |
protected java.lang.String |
policy |
protected java.lang.String |
POLICY_REQUEST_STRING |
protected java.nio.ByteBuffer |
policyBuffer |
protected int |
port |
protected TcpServer |
tcpServer |
DevMode, dumpAllThreadSubscription, dumpAllThreadSubscriptionLock, lock, MSG_TYPE_DUMP_ALL_THREAD_STACKS, MSG_TYPE_GET_PROPERTY, MSG_TYPE_GET_PROPERTY_NAMES, MSG_TYPE_PLUGIN_STATE, MSG_TYPE_RELOAD_TEMPLATES, MSG_TYPE_SET_PROPERTY, MSG_TYPE_SET_PROPERTY_NONBLOCK, MSG_TYPE_TRANSFER_OBJECT, pluginStateSubscription, propertySubscription, selectionFilter, selectionSubscription, subObjectSubscriptionNO_FLAGS, RESPONSE_EXPECTED| Constructor and Description |
|---|
FlashPolicyPlugin()
The FlashPolicyPlugin constructor tells the underlying engine that it
is, in fact, the flash policy plugin.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
createMBeanInstance()
Return JMX MBean instance object.
|
void |
onActivate()
onActivate() is the real startup method.
|
void |
onTcpAccept(java.nio.channels.SocketChannel sc)
Read a request from our connection, and if it is well-formed, send
the current policy.
|
protected void |
setPolicy(java.lang.String policy) |
activate, createSubscription, getHookManager, getName, getObjectLockManager, getObjectProperties, getObjectProperties, getObjectProperty, getObjectPropertyNames, getPercentCPULoad, getPluginAvailable, getPluginInfo, getPluginNamespaces, getPluginState, getPluginStatus, getPluginType, getPropertyImpl, getPropertyNamesImpl, getStatusMap, handleMessage, handleMessageImpl, logDepsOutstanding, processKeysAndValues, registerActivateHook, registerDeleteHook, registerLoadHook, registerPluginNamespace, registerPluginNamespaces, registerPluginNamespaces, registerPluginNamespaces, registerSaveHook, registerTransferHook, registerUnloadHook, ReloadTemplates, sendSubObjectResponse, sendSubObjectResponse, sendSubObjectResponse, setName, setObjectProperties, setObjectProperties, setObjectProperties, setObjectPropertiesNoResponse, setObjectPropertiesNoResponse, setObjectPropertiesNoResponse, setObjectProperty, setObjectPropertyNoResponse, setPercentCPULoad, setPluginAvailable, setPluginInfo, setPluginType, setPropertyImpl, transferObjectprotected final java.lang.String DEFAULT_POLICY
protected final int DEFAULT_PORT
protected final java.lang.String POLICY_REQUEST_STRING
protected TcpServer tcpServer
protected int port
protected java.lang.String policy
protected java.nio.ByteBuffer policyBuffer
protected static final Logger log
public static int idleTimeout
public FlashPolicyPlugin()
onActivate()public void onActivate()
onActivate in class EnginePluginregisterHooks(),
EventCallback#doWorkprotected java.lang.Object createMBeanInstance()
createMBeanInstance in class EnginePluginpublic void onTcpAccept(java.nio.channels.SocketChannel sc)
onTcpAccept in interface TcpAcceptCallbackprotected void setPolicy(java.lang.String policy)