|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.snmp.SnmpRequest
public class SnmpRequest
| Field Summary | |
|---|---|
static int |
BAD_VALUE
|
static int |
GENERAL_ERROR
|
static int |
NO_ERROR
|
static int |
NO_SUCH_NAME
|
static int |
READ_ONLY
|
static int |
TOO_BIG
|
| Constructor Summary | |
|---|---|
SnmpRequest(Connection connection,
java.util.HashMap<java.lang.String,Oid> mibMap,
OctetStringValue community)
|
|
| Method Summary | |
|---|---|
protected void |
authenticate(SnmpMessageValue req)
|
protected void |
checkVersion(SnmpMessageValue req)
|
protected SnmpMessageValue |
composeResponse(SnmpMessageValue req)
|
protected SnmpValue |
getMBean(ObjectIdentifierValue objectIdentifier)
|
protected javax.management.MBeanServer |
getMBeanServer()
|
java.util.HashMap<java.lang.String,Oid> |
getMib()
|
boolean |
handleRequest()
Handles a new connection. |
boolean |
handleResume()
Resumes processing after a wait. |
void |
init()
Initialize the connection. |
boolean |
isWaitForRead()
Return true if the connection should wait for a read before handling the request. |
void |
protocolCloseEvent()
Handles a close event when the connection is closed. |
protected void |
sendResponse(SnmpValue response)
|
void |
setVersion(int version)
|
void |
startConnection()
Called when the connection starts, i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_ERROR
public static final int TOO_BIG
public static final int NO_SUCH_NAME
public static final int BAD_VALUE
public static final int READ_ONLY
public static final int GENERAL_ERROR
| Constructor Detail |
|---|
public SnmpRequest(Connection connection,
java.util.HashMap<java.lang.String,Oid> mibMap,
OctetStringValue community)
| Method Detail |
|---|
public void init()
init in interface ServerRequestpublic boolean isWaitForRead()
isWaitForRead in interface ServerRequestpublic void startConnection()
ServerRequest
startConnection in interface ServerRequest
public boolean handleRequest()
throws java.io.IOException
handleRequest in interface ServerRequestjava.io.IOExceptionprotected final void checkVersion(SnmpMessageValue req)
protected final void authenticate(SnmpMessageValue req)
protected final void sendResponse(SnmpValue response)
throws java.io.IOException
java.io.IOExceptionprotected final SnmpMessageValue composeResponse(SnmpMessageValue req)
protected SnmpValue getMBean(ObjectIdentifierValue objectIdentifier)
protected javax.management.MBeanServer getMBeanServer()
public boolean handleResume()
throws java.io.IOException
handleResume in interface ServerRequestjava.io.IOExceptionpublic void protocolCloseEvent()
protocolCloseEvent in interface ServerRequestpublic void setVersion(int version)
public java.util.HashMap<java.lang.String,Oid> getMib()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||