Class ClientSendFile
- java.lang.Object
-
- com.perforce.p4java.impl.mapbased.rpc.func.client.ClientSendFile
-
public class ClientSendFile extends java.lang.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
Fields Modifier and Type Field Description static java.lang.String
TRACE_PREFIX
-
Constructor Summary
Constructors Modifier Constructor Description protected
ClientSendFile(java.util.Properties props)
Create a new rpc file sender
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RpcPacketDispatcher.RpcPacketDispatcherResult
sendFile(RpcConnection rpcConnection, CommandEnv cmdEnv, java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Send a file's contents back to the Perforce server.
-
-
-
Field Detail
-
TRACE_PREFIX
public static final java.lang.String TRACE_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
sendFile
protected RpcPacketDispatcher.RpcPacketDispatcherResult sendFile(RpcConnection rpcConnection, CommandEnv cmdEnv, java.util.Map<java.lang.String,java.lang.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
- rpcConnectioncmdEnv
- cmdEnvresultsMap
- resultsMap- Returns:
- - result
- Throws:
ConnectionException
- on error
-
-