public class JslipcRequest extends AbstractJslipcMessage
JslipcPipeClient
.Modifier and Type | Class and Description |
---|---|
static class |
JslipcRequest.JslipcCommand |
JSLIPC_PROTOCOL_PREFIX, PARAM_ACCEPT_TYPES, PARAM_DIRECTORY, PARAM_FILE, PARAM_ROLE, PARAM_SIZE, PARAM_TYPE, SUPPORTED_PIPES
Constructor and Description |
---|
JslipcRequest(byte[] request)
Creates a JslipcRequest from its byte array representation.
|
JslipcRequest(JslipcRequest.JslipcCommand command)
Creates a JslipcRequest with the given commad.
|
JslipcRequest(String request)
Creates a JslipcRequest from its string representation.
|
Modifier and Type | Method and Description |
---|---|
List<Class<? extends JslipcPipe>> |
getAcceptTypes() |
JslipcRequest.JslipcCommand |
getCommand() |
protected String |
getHeader() |
protected String |
getMessageName() |
protected String |
parseHeader(String header)
Parses the header line of the request.
|
void |
setAcceptTypes(Class<? extends JslipcPipe>... acceptedTypes)
Sets the pipe types to accept.
|
equals, getFileParameter, getIntParameter, getParameter, getParameters, getProtocol, getProtocolVersion, getTypeClass, getTypeName, getTypeParameter, hashCode, hasParameter, parseMessage, setFileParameter, setIntParameter, setParameter, setTypeParameter, toBytes, toString
public JslipcRequest(byte[] request) throws IOException
IOException
AbstractJslipcMessage.toBytes()
public JslipcRequest(String request) throws IOException
IOException
AbstractJslipcMessage.toString()
public JslipcRequest(JslipcRequest.JslipcCommand command) throws IOException
IOException
protected String getMessageName()
getMessageName
in class AbstractJslipcMessage
protected String getHeader()
getHeader
in class AbstractJslipcMessage
protected String parseHeader(String header) throws IOException
parseHeader
in class AbstractJslipcMessage
header
- IOException
public JslipcRequest.JslipcCommand getCommand()
public void setAcceptTypes(Class<? extends JslipcPipe>... acceptedTypes)
acceptedTypes
- public List<Class<? extends JslipcPipe>> getAcceptTypes()
Copyright © 2014. All Rights Reserved.