final RESTfulCommand command = new RESTfulCommand(
request.getRequestLine().getUri());
final ByteBufferAllocator allocator;
if (command.getMethodName().equalsIgnoreCase(REQ_CMD_UPLOAD)) {
// file upload
allocator = new BeeByteBufferAllocator();
// should write header for content type or other parameter to pass to threaded handler
request.addHeader(REQ_TEMPFILE,
((BeeByteBufferAllocator) allocator).getTempfilename());
} else {
// standard post