public class InternalOperationContext extends DOServerOperationContext
InternalRepository.  The methods in this class are dictated by server code; there are some methods that may be removed in the future by both the server and this API.| Constructor and Description | 
|---|
InternalOperationContext(Main serverMain,
                        Caller caller,
                        java.lang.String objectId,
                        java.lang.String operationId,
                        HeaderSet parameters)
Constructs this context. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
authenticateCaller()
Requests verification of the callers identity. 
 | 
boolean | 
authenticateCredential(java.lang.String credentialId)
Verify that this client has been granted a credential by the identified entity. 
 | 
java.lang.String | 
getCallerID()
Returns the identity of the caller. 
 | 
java.net.InetAddress | 
getClientAddress()  | 
java.lang.Object | 
getConnectionMapping(java.lang.Object mappingKey)
Returns the object from the connection-level information table that had
 previously been used as the mappingData parameter for a call to
 setConnectionMapping with the given mappingKey on the same connection. 
 | 
java.lang.String[] | 
getCredentialIDs()
Returns a list of unverified IDs that the client claims as credentials. 
 | 
DOClient | 
getDOClientWithForwardedAuthentication(java.lang.String callerId)
Return a DOClient instance that forwards any authentication challenges back to
 the DOP client on the other end of this connection. 
 | 
HeaderSet | 
getOperationHeaders()
Returns the set of headers that were included with the operation request 
 | 
java.lang.String | 
getOperationID()
Returns the operation that the caller attempted to invoke. 
 | 
java.lang.String | 
getServerID()
Returns the identity of this repository service 
 | 
StorageProxy | 
getStorage()
Returns on object that allows operators to access the storage
 system for the current object. 
 | 
java.lang.String | 
getTargetObjectID()
Returns the object on which the caller is invoke the operation. 
 | 
void | 
performOperation(java.lang.String serverId,
                java.lang.String newObjectId,
                java.lang.String newOperationId,
                HeaderSet params,
                java.io.InputStream input,
                java.io.OutputStream output)
Performs the specified operation with the identity of the caller, or as 
 the container repository if the forwarding operations are configured to use
 the repository's own identity for forwarded operations. 
 | 
void | 
setConnectionMapping(java.lang.Object mappingKey,
                    java.lang.Object mappingData)
Inserts an object into the connection-level information table. 
 | 
getLogEntry, toStringpublic InternalOperationContext(Main serverMain, Caller caller, java.lang.String objectId, java.lang.String operationId, HeaderSet parameters)
serverMain - the server we are running incaller - information about the callerobjectId - the target of the operationoperationId - the operation to performparameters - parameters of the operationpublic java.net.InetAddress getClientAddress()
getClientAddress in class DOServerOperationContextpublic java.lang.String getCallerID()
DOOperationContextpublic boolean authenticateCaller()
DOOperationContextpublic java.lang.String[] getCredentialIDs()
DOOperationContextpublic boolean authenticateCredential(java.lang.String credentialId)
DOOperationContextpublic java.lang.Object getConnectionMapping(java.lang.Object mappingKey)
DOOperationContextpublic void setConnectionMapping(java.lang.Object mappingKey,
                        java.lang.Object mappingData)
DOOperationContextpublic java.lang.String getTargetObjectID()
DOOperationContextpublic java.lang.String getServerID()
DOOperationContextpublic java.lang.String getOperationID()
DOOperationContextpublic HeaderSet getOperationHeaders()
DOOperationContextpublic StorageProxy getStorage()
DOOperationContextpublic DOClient getDOClientWithForwardedAuthentication(java.lang.String callerId)
DOServerOperationContextgetDOClientWithForwardedAuthentication in class DOServerOperationContextpublic void performOperation(java.lang.String serverId,
                    java.lang.String newObjectId,
                    java.lang.String newOperationId,
                    HeaderSet params,
                    java.io.InputStream input,
                    java.io.OutputStream output)
                      throws DOException
DOOperationContextDOException