com.perforce.p4java.impl.mapbased.rpc.func.client
Class ClientSendFile

java.lang.Object
  extended by com.perforce.p4java.impl.mapbased.rpc.func.client.ClientSendFile

public class ClientSendFile
extends Object

Implements some specialised file methods for sending file data back to the Perforce server. May be refactored into other classes later when the scope of the methods here is clearer -- HR.


Field Summary
static int DEFAULT_SENDBUF_SIZE
          DEFAULT_SENDBUF_SIZE
static String TRACE_PREFIX
          TRACE_PREFIX
 
Constructor Summary
protected ClientSendFile(Properties props)
          Create a new rpc file sender
 
Method Summary
protected  RpcPacketDispatcher.RpcPacketDispatcherResult sendFile(RpcConnection rpcConnection, CommandEnv cmdEnv, Map<String,Object> resultsMap)
          Send a file's contents back to the Perforce server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRACE_PREFIX

public static final String TRACE_PREFIX
TRACE_PREFIX

See Also:
Constant Field Values

DEFAULT_SENDBUF_SIZE

public static final int DEFAULT_SENDBUF_SIZE
DEFAULT_SENDBUF_SIZE

See Also:
Constant Field Values
Constructor Detail

ClientSendFile

protected ClientSendFile(Properties props)
Create a new rpc file sender

Parameters:
props -
Method Detail

sendFile

protected RpcPacketDispatcher.RpcPacketDispatcherResult sendFile(RpcConnection rpcConnection,
                                                                 CommandEnv cmdEnv,
                                                                 Map<String,Object> resultsMap)
                                                          throws ConnectionException
Send a file's contents back to the Perforce server. Notably assumes a late model server... FIXME: digest stuff is not yet implemented -- HR. FIXME: error handling is typically nearly non-existent -- HR. FIXME: charset issues -- HR. FIXME: rework to use proper flush protocol implementation -- HR.

Parameters:
rpcConnection -
cmdEnv -
resultsMap -
Returns:
- result
Throws:
ConnectionException


Copyright © 2015 Perforce Software. All Rights Reserved.