public abstract class OServerPluginAbstract extends Object implements OServerPlugin
Modifier and Type | Field and Description |
---|---|
protected boolean |
enabled |
Constructor and Description |
---|
OServerPluginAbstract() |
Modifier and Type | Method and Description |
---|---|
void |
config(OServer oServer,
OServerParameterConfiguration[] iParams)
Configures the handler.
|
Object |
getContent(String iURL) |
void |
onAfterClientRequest(OClientConnection iConnection,
byte iRequestType)
Callback invoked after a client request is processed.
|
void |
onBeforeClientRequest(OClientConnection iConnection,
byte iRequestType)
Callback invoked before a client request is processed.
|
void |
onClientConnection(OClientConnection iConnection)
Callback invoked when a client connection begins.
|
void |
onClientDisconnection(OClientConnection iConnection)
Callback invoked when a client connection ends.
|
void |
onClientError(OClientConnection iConnection,
Throwable iThrowable)
Callback invoked when a client connection has errors.
|
void |
sendShutdown() |
void |
shutdown() |
void |
startup() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onSocketAccepted, onSocketDestroyed
public void sendShutdown()
sendShutdown
in interface OServerPlugin
public void config(OServer oServer, OServerParameterConfiguration[] iParams)
OServerPlugin
config
in interface OServerPlugin
public void onClientConnection(OClientConnection iConnection)
OServerPlugin
onClientConnection
in interface OServerPlugin
public void onClientDisconnection(OClientConnection iConnection)
OServerPlugin
onClientDisconnection
in interface OServerPlugin
public void onBeforeClientRequest(OClientConnection iConnection, byte iRequestType)
OServerPlugin
onBeforeClientRequest
in interface OServerPlugin
public void onAfterClientRequest(OClientConnection iConnection, byte iRequestType)
OServerPlugin
onAfterClientRequest
in interface OServerPlugin
public void onClientError(OClientConnection iConnection, Throwable iThrowable)
OServerPlugin
onClientError
in interface OServerPlugin
iThrowable
- Throwable instance receivedpublic Object getContent(String iURL)
getContent
in interface OServerPlugin
Copyright © 2009–2020 OrientDB. All rights reserved.