public class JslipcResponse extends AbstractJslipcMessage
JslipcPipeServer
.Modifier and Type | Class and Description |
---|---|
static class |
JslipcResponse.JslipcCode
The code indicates the result of the operation.
|
JSLIPC_PROTOCOL_PREFIX, PARAM_ACCEPT_TYPES, PARAM_DIRECTORY, PARAM_FILE, PARAM_ROLE, PARAM_SIZE, PARAM_TYPE, SUPPORTED_PIPES
Constructor and Description |
---|
JslipcResponse(byte[] response)
Creates a JslipcResponse from its byte array representation.
|
JslipcResponse(JslipcResponse.JslipcCode code,
String message)
Creates a JslipcResponse with the given code and message.
|
JslipcResponse(String response)
Creates a JslipcResponse from its string representation.
|
Modifier and Type | Method and Description |
---|---|
JslipcResponse.JslipcCode |
getCode() |
protected String |
getHeader() |
String |
getMessage() |
protected String |
getMessageName() |
JslipcRole |
getRoleParameter() |
protected String |
parseHeader(String header)
Parses the header line of the message.
|
void |
setRoleParameter(JslipcRole role) |
equals, getFileParameter, getIntParameter, getParameter, getParameters, getProtocol, getProtocolVersion, getTypeClass, getTypeName, getTypeParameter, hashCode, hasParameter, parseMessage, setFileParameter, setIntParameter, setParameter, setTypeParameter, toBytes, toString
public JslipcResponse(byte[] response) throws IOException
IOException
AbstractJslipcMessage.toBytes()
public JslipcResponse(String response) throws IOException
IOException
AbstractJslipcMessage.toString()
public JslipcResponse(JslipcResponse.JslipcCode code, String message) throws IOException
IOException
protected String getMessageName()
getMessageName
in class AbstractJslipcMessage
protected String getHeader()
getHeader
in class AbstractJslipcMessage
protected String parseHeader(String header) throws IOException
AbstractJslipcMessage
parseHeader
in class AbstractJslipcMessage
IOException
public JslipcResponse.JslipcCode getCode()
public String getMessage()
public JslipcRole getRoleParameter()
AbstractJslipcMessage.PARAM_ROLE
.public void setRoleParameter(JslipcRole role)
role
- the role parameter to set.Copyright © 2014. All Rights Reserved.