public abstract class AbstractCASResponseHandler extends AbstractCAResponseHandler
| Modifier and Type | Field and Description |
|---|---|
protected CAJServerContext |
context
Context instance.
|
command, dataCount, dataType, debug, description, parameter1, parameter2, payloadSize| Constructor and Description |
|---|
AbstractCASResponseHandler(CAJServerContext context,
String description) |
| Modifier and Type | Method and Description |
|---|---|
static DBR |
createDBRforReading(ProcessVariable processVariable)
Create appropriate DBR structure for reading (of PV type).
|
static DBR |
createDBRforReading(ProcessVariable processVariable,
int dataCount)
Create appropriate DBR structure for reading (of PV type).
|
static DBR |
createDBRforReading(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,
CAStatus errorStatus,
ByteBuffer previousHeader,
String message)
Send error (exception) response.
|
handleResponse, internalHandleResponse, parseHeaderprotected CAJServerContext context
public AbstractCASResponseHandler(CAJServerContext context, String description)
context - description - 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, 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 DBR createDBRforReading(ProcessVariable processVariable)
processVariable - process variable to be read.public static final DBR createDBRforReading(ProcessVariable processVariable, int dataCount)
processVariable - process variable to be read.dataCount - requested data count (returned DBR will have this count).public static final DBR createDBRforReading(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).Copyright © 2004-2020 EPICS. All Rights Reserved.