|
All LDAP Classes Internal LDAP Classes |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.ldap.asn1.ASN1Object
com.novell.ldap.asn1.ASN1Structured
com.novell.ldap.asn1.ASN1Sequence
com.novell.ldap.rfc2251.RfcLDAPMessage
Represents an LDAP Message.
LDAPMessage ::= SEQUENCE { messageID MessageID, protocolOp CHOICE { bindRequest BindRequest, bindResponse BindResponse, unbindRequest UnbindRequest, searchRequest SearchRequest, searchResEntry SearchResultEntry, searchResDone SearchResultDone, searchResRef SearchResultReference, modifyRequest ModifyRequest, modifyResponse ModifyResponse, addRequest AddRequest, addResponse AddResponse, delRequest DelRequest, delResponse DelResponse, modDNRequest ModifyDNRequest, modDNResponse ModifyDNResponse, compareRequest CompareRequest, compareResponse CompareResponse, abandonRequest AbandonRequest, extendedReq ExtendedRequest, extendedResp ExtendedResponse }, controls [0] Controls OPTIONAL }
Field Summary | |
private RfcControls |
controls
|
private ASN1Object |
op
|
private LDAPMessage |
requestMessage
|
Fields inherited from class com.novell.ldap.asn1.ASN1Sequence |
TAG |
Fields inherited from class com.novell.ldap.asn1.ASN1Structured |
|
Fields inherited from class com.novell.ldap.asn1.ASN1Object |
|
Constructor Summary | |
|
RfcLDAPMessage(ASN1Decoder dec,
java.io.InputStream in,
int len)
Will decode an RfcLDAPMessage directly from an InputStream. |
(package private) |
RfcLDAPMessage(ASN1Object[] origContent,
RfcRequest origRequest,
java.lang.String dn,
java.lang.String filter,
boolean reference)
Create an RfcLDAPMessage by copying the content array |
|
RfcLDAPMessage(ASN1Sequence op)
Create an RfcLDAPMessage using the specified LDAP Response. |
|
RfcLDAPMessage(ASN1SequenceOf op)
Create an RfcLDAPMessage using the specified LDAP Response when the return type is a ASN1SequenceOf . |
|
RfcLDAPMessage(ASN1Sequence op,
RfcControls controls)
Create an RfcLDAPMessage response from input parameters. |
|
RfcLDAPMessage(RfcRequest op)
Create an RfcLDAPMessage using the specified LDAP Request. |
|
RfcLDAPMessage(RfcRequest op,
RfcControls controls)
Create an RfcLDAPMessage request from input parameters. |
Method Summary | |
java.lang.Object |
dupMessage(java.lang.String dn,
java.lang.String filter,
boolean reference)
Duplicate this message, replacing base dn, filter, and scope if supplied |
RfcControls |
getControls()
Returns the optional Controls for this RfcLDAPMessage. |
int |
getMessageID()
Returns this RfcLDAPMessage's messageID as an int. |
RfcRequest |
getRequest()
Returns the request associated with this RfcLDAPMessage. |
java.lang.String |
getRequestDN()
Returns the dn of the request, may be null |
LDAPMessage |
getRequestingMessage()
returns the original request in this message |
ASN1Object |
getResponse()
Returns the response associated with this RfcLDAPMessage. |
int |
getType()
Returns this RfcLDAPMessage's message type |
boolean |
isRequest()
|
void |
setRequestingMessage(LDAPMessage msg)
sets the original request in this message |
Methods inherited from class com.novell.ldap.asn1.ASN1Sequence |
toString |
Methods inherited from class com.novell.ldap.asn1.ASN1Structured |
add, decodeStructured, encode, get, set, size, toArray, toString |
Methods inherited from class com.novell.ldap.asn1.ASN1Object |
getEncoding, getIdentifier, setIdentifier |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private ASN1Object op
private RfcControls controls
private LDAPMessage requestMessage
Constructor Detail |
RfcLDAPMessage(ASN1Object[] origContent, RfcRequest origRequest, java.lang.String dn, java.lang.String filter, boolean reference) throws LDAPException
origContent
- the array list to copypublic RfcLDAPMessage(RfcRequest op)
public RfcLDAPMessage(RfcRequest op, RfcControls controls)
public RfcLDAPMessage(ASN1Sequence op)
public RfcLDAPMessage(ASN1SequenceOf op)
op
- an object of type ASN1SequenceOf.public RfcLDAPMessage(ASN1Sequence op, RfcControls controls)
public RfcLDAPMessage(ASN1Decoder dec, java.io.InputStream in, int len) throws java.io.IOException
Method Detail |
public final int getMessageID()
public final int getType()
public final ASN1Object getResponse()
public final RfcRequest getRequest()
public boolean isRequest()
public final RfcControls getControls()
public final java.lang.Object dupMessage(java.lang.String dn, java.lang.String filter, boolean reference) throws LDAPException
dn
- the base dn
filter
- the filter
reference
- true if a search reference
LDAPException
public final java.lang.String getRequestDN()
public final void setRequestingMessage(LDAPMessage msg)
msg
- the original request for this responsepublic final LDAPMessage getRequestingMessage()
|
All LDAP Classes Internal LDAP Classes |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |