com.hazelcast.ascii.rest
Class HttpPostCommand

java.lang.Object
  extended by com.hazelcast.ascii.AbstractTextCommand
      extended by com.hazelcast.ascii.rest.HttpCommand
          extended by com.hazelcast.ascii.rest.HttpPostCommand
All Implemented Interfaces:
TextCommand, SocketReadable, SocketWritable

public class HttpPostCommand
extends HttpCommand


Field Summary
 
Fields inherited from class com.hazelcast.ascii.rest.HttpCommand
CONTENT_LENGTH, CONTENT_TYPE, CONTENT_TYPE_BINARY, CONTENT_TYPE_PLAIN_TEXT, HEADER_CHUNKED, HEADER_CONTENT_LENGTH, HEADER_CONTENT_TYPE, HEADER_EXPECT_100, RES_100, RES_200, RES_204, RES_400, RES_403, RES_404, RES_500, RES_503, response, uri
 
Fields inherited from class com.hazelcast.ascii.AbstractTextCommand
type
 
Constructor Summary
HttpPostCommand(SocketTextReader socketTextRequestReader, String uri)
           
 
Method Summary
 boolean doActualRead(ByteBuffer cb)
           
 byte[] getContentType()
           
 byte[] getData()
           
 boolean readFrom(ByteBuffer cb)
          POST /path HTTP/1.0 User-Agent: HTTPTool/1.0 Content-TextCommandType: application/x-www-form-urlencoded Content-Length: 45 byte[45]
 
Methods inherited from class com.hazelcast.ascii.rest.HttpCommand
getURI, send200, send204, send400, setResponse, setResponse, shouldReply, toString, writeTo
 
Methods inherited from class com.hazelcast.ascii.AbstractTextCommand
getRequestId, getSocketTextReader, getSocketTextWriter, getType, init, isUrgent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpPostCommand

public HttpPostCommand(SocketTextReader socketTextRequestReader,
                       String uri)
Method Detail

readFrom

public boolean readFrom(ByteBuffer cb)
POST /path HTTP/1.0 User-Agent: HTTPTool/1.0 Content-TextCommandType: application/x-www-form-urlencoded Content-Length: 45 byte[45]

Parameters:
cb -
Returns:

getData

public byte[] getData()

getContentType

public byte[] getContentType()

doActualRead

public boolean doActualRead(ByteBuffer cb)


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.