| Modifier and Type | Method and Description |
|---|---|
static Frame |
createAck(Frame frame)
Creates a JSON frame of type
Control.Type.ACKNOWLEDGEMENT. |
static Frame |
createError(Frame origFrame,
int code,
String reason)
Creates a JSON frame of type
Control.Type.ERROR from the original Frame. |
static Frame |
createFrame(Control.Type type,
String verb,
String pack,
String sessionId,
String subSessionId,
String correlationId)
Creates a JSON frame with arguments and correlation id.
|
static Frame |
createFrame(Frame origFrame,
Control.Type type)
Creates a JSON frame based on the original frame.
|
public static Frame createFrame(Control.Type type, String verb, String pack, String sessionId, String subSessionId, String correlationId)
type - Frame typeverb - Frame verbpack - PackagesessionId - Session IdsubSessionId - SubSession IdcorrelationId - Correlation Idpublic static Frame createError(Frame origFrame, int code, String reason)
Control.Type.ERROR from the original Frame.origFrame - the original Framecode - error codereason - failure reasonpublic static Frame createAck(Frame frame)
Control.Type.ACKNOWLEDGEMENT.frame - the original framepublic static Frame createFrame(Frame origFrame, Control.Type type)
origFrame - the original frametype - the frame type