Class ClientSendFile
java.lang.Object
com.perforce.p4java.impl.mapbased.rpc.func.client.ClientSendFile
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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClientSendFile(Properties props) Create a new rpc file sender -
Method Summary
Modifier and TypeMethodDescriptionsendFile(RpcConnection rpcConnection, CommandEnv cmdEnv, Map<String, Object> resultsMap) Send a file's contents back to the Perforce server.
-
Field Details
-
TRACE_PREFIX
- See Also:
-
-
Constructor Details
-
ClientSendFile
Create a new rpc file sender- Parameters:
props- props
-
-
Method Details
-
sendFile
protected RpcPacketDispatcher.RpcPacketDispatcherResult sendFile(RpcConnection rpcConnection, CommandEnv cmdEnv, Map<String, Object> resultsMap) throws ConnectionExceptionSend 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
-