|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cosylab.epics.caj.impl.handlers.AbstractCAResponseHandler
com.cosylab.epics.caj.cas.handlers.AbstractCASResponseHandler
public abstract class AbstractCASResponseHandler
| Field Summary | |
|---|---|
protected CAJServerContext |
context
Context instance. |
| Fields inherited from class com.cosylab.epics.caj.impl.handlers.AbstractCAResponseHandler |
|---|
command, dataCount, dataType, debug, description, parameter1, parameter2, payloadSize |
| Constructor Summary | |
|---|---|
AbstractCASResponseHandler(CAJServerContext context,
String description)
|
|
| Method Summary | |
|---|---|
static gov.aps.jca.dbr.DBR |
createDBRforReading(gov.aps.jca.cas.ProcessVariable processVariable)
Create appropriate DBR structure for reading (of PV type). |
static gov.aps.jca.dbr.DBR |
createDBRforReading(gov.aps.jca.cas.ProcessVariable processVariable,
int dataCount)
Create appropriate DBR structure for reading (of PV type). |
static gov.aps.jca.dbr.DBR |
createDBRforReading(gov.aps.jca.cas.ProcessVariable processVariable,
short dataType,
int dataCount)
Create appropriate DBR structure for reading (of PV type). |
static String |
extractString(ByteBuffer buffer,
int start,
int maxSize,
boolean setToEnd)
Extract string from payload. |
protected void |
sendException(Transport transport,
int cid,
gov.aps.jca.CAStatus errorStatus,
ByteBuffer previousHeader,
String message)
Send error (exception) response. |
| Methods inherited from class com.cosylab.epics.caj.impl.handlers.AbstractCAResponseHandler |
|---|
handleResponse, internalHandleResponse, parseHeader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CAJServerContext context
| Constructor Detail |
|---|
public AbstractCASResponseHandler(CAJServerContext context,
String description)
context - description - | Method Detail |
|---|
public static final String extractString(ByteBuffer buffer,
int start,
int maxSize,
boolean setToEnd)
buffer - buffer to use.start - buffer offset to use, if negative current buffer position will be usedmaxSize - maximum payload size reserved for string.setToEnd - set to the end of string flag (after zero char)
protected void sendException(Transport transport,
int cid,
gov.aps.jca.CAStatus errorStatus,
ByteBuffer previousHeader,
String message)
transport - transport to use.cid - channel ID.errorStatus - error status.previousHeader - header of the request messages causing this error.message - string message, can be null.public static final gov.aps.jca.dbr.DBR createDBRforReading(gov.aps.jca.cas.ProcessVariable processVariable)
processVariable - process variable to be read.
public static final gov.aps.jca.dbr.DBR createDBRforReading(gov.aps.jca.cas.ProcessVariable processVariable,
int dataCount)
processVariable - process variable to be read.dataCount - requested data count (returned DBR will have this count).
public static final gov.aps.jca.dbr.DBR createDBRforReading(gov.aps.jca.cas.ProcessVariable processVariable,
short dataType,
int dataCount)
processVariable - process variable to be read.dataType - data type requested from client (not necessary equals to PV type)dataCount - requested data count (returned DBR will have this count).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||