|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@NotExtensible @ThreadSafety(level=INTERFACE_NOT_THREADSAFE) public interface OperationContext
This interface defines a set of methods that may be used to obtain information about an operation being processed by the server.
Method Summary | |
---|---|
java.lang.Object |
getAttachment(java.lang.String name)
Retrieves the object attached to the associated operation with the given name. |
java.lang.String |
getAuthorizationDN()
Retrieves the DN of the user as whom the request is authorized. |
ClientContext |
getClientContext()
Retrieves information about the client that requested this operation. |
long |
getConnectionID()
Retrieves the identifier that has been assigned to the associated client connection. |
InternalConnection |
getInternalRootConnection()
Retrieves an internal connection that is authenticated as a root user that is not subject to access control. |
InternalConnection |
getInternalRootConnection(boolean usePolicyFromConnection)
Retrieves an internal connection that is authenticated as a root user that is not subject to access control. |
InternalConnection |
getInternalUserConnection()
Retrieves an internal connection that is authenticated as the same user that requested this operation and may be subject to access control. |
InternalConnection |
getInternalUserConnection(boolean usePolicyFromConnection)
Retrieves an internal connection that is authenticated as the same user that requested this operation and may be subject to access control. |
int |
getMessageID()
Retrieves the message ID for this operation from the client request. |
long |
getOperationID()
Retrieves the identifier that has been assigned to this operation for the associated client connection. |
OperationType |
getOperationType()
Retrieves the operation type for this operation. |
Request |
getRequest()
Retrieves the request for the associated operation. |
ServerContext |
getServerContext()
Retrieves information about the server in which this operation is being processed. |
boolean |
isInternalOperation()
Indicates whether this operation was initiated within the server rather than by an external client. |
boolean |
isReplicationOperation()
Indicates whether this operation was initiated via replication rather than within the local server. |
boolean |
isSecure()
Indicates whether this operation was requested over a secure connection. |
java.lang.String |
toString()
Retrieves a string representation of this operation. |
Method Detail |
---|
long getConnectionID()
long getOperationID()
int getMessageID()
OperationType getOperationType()
Request getRequest()
ServerContext getServerContext()
boolean isInternalOperation()
true
if this operation was initiated within the server, or
false
if it was requested by an external client.boolean isReplicationOperation()
true
if this operation was initiated via replication, or
false
if it was initiated locally within this server.java.lang.String getAuthorizationDN()
java.lang.Object getAttachment(java.lang.String name)
name
- The case-sensitive name of the attachment to retrieve. It
must not be null
.
null
if the operation does
not have an attachment with the provided name.ClientContext getClientContext()
boolean isSecure()
true
if this operation was requested over a secure
connection, or false
if not.InternalConnection getInternalUserConnection() throws com.unboundid.ldap.sdk.LDAPException
getInternalUserConnection(boolean)
method.
com.unboundid.ldap.sdk.LDAPException
- If a problem occurs while attempting to obtain or
authenticate the connection.InternalConnection getInternalUserConnection(boolean usePolicyFromConnection) throws com.unboundid.ldap.sdk.LDAPException
usePolicyFromConnection
- If true
, the internal connection
will use the same client connection policy
as the associated client connection. If
false
, the internal connection
will use the server's default client
connection policy for internal
connections.
com.unboundid.ldap.sdk.LDAPException
- If a problem occurs while attempting to obtain or
authenticate the connection.InternalConnection getInternalRootConnection()
getInternalRootConnection(boolean)
method.
InternalConnection getInternalRootConnection(boolean usePolicyFromConnection)
usePolicyFromConnection
- If true
, the internal connection
will use the same client connection policy
as the associated client connection. If
false
, the internal connection
will use the server's default client
connection policy for internal
connections.
java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |