|
|||||||||
| Atavism Version 2018.1 | AGIS API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatavism.server.engine.EnginePlugin
atavism.server.plugins.FlashPolicyPlugin
public class FlashPolicyPlugin
The FlashPolicy plugin serves up the flash policy file to the client.
| Nested Class Summary | |
|---|---|
protected class |
FlashPolicyPlugin.FlashPolicyJMX
|
static interface |
FlashPolicyPlugin.FlashPolicyJMXMBean
|
| Field Summary | |
|---|---|
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
|
| Fields inherited from interface atavism.msgsys.MessageCallback |
|---|
NO_FLAGS, RESPONSE_EXPECTED |
| Constructor Summary | |
|---|---|
FlashPolicyPlugin()
The FlashPolicyPlugin constructor tells the underlying engine that it is, in fact, the flash policy plugin. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface atavism.msgsys.MessageCallback |
|---|
handleMessage |
| Field Detail |
|---|
protected 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
| Constructor Detail |
|---|
public FlashPolicyPlugin()
onActivate()| Method Detail |
|---|
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)
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||