org.apache.directory.shared.dsmlv2.reponse
Class SearchResultReferenceDsml
java.lang.Object
org.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.ldap.codec.LdapMessageCodec
org.apache.directory.shared.dsmlv2.LdapMessageDecorator
org.apache.directory.shared.dsmlv2.reponse.LdapResponseDecorator
org.apache.directory.shared.dsmlv2.reponse.SearchResultReferenceDsml
- All Implemented Interfaces:
- Asn1Object, DsmlDecorator
public class SearchResultReferenceDsml
- extends LdapResponseDecorator
- implements DsmlDecorator
DSML Decorator for SearchResultReference
- Version:
- $Rev$, $Date$
- Author:
- Apache Directory Project
Methods inherited from class org.apache.directory.shared.dsmlv2.LdapMessageDecorator |
addControl, addLength, computeLength, computeLengthProtocolOp, encode, encodeProtocolOp, getAbandonRequest, getAddRequest, getAddResponse, getBindRequest, getBindResponse, getCompareRequest, getCompareResponse, getControls, getControls, getCurrentControl, getCurrentLength, getDelRequest, getDelResponse, getExpectedLength, getExtendedRequest, getExtendedResponse, getLdapResponse, getMessageId, getMessageTypeName, getModifyDNRequest, getModifyDNResponse, getModifyRequest, getModifyResponse, getParent, getSearchRequest, getSearchResultDone, getSearchResultEntry, getSearchResultReference, getUnBindRequest, setCurrentLength, setExpectedLength, setMessageId, setParent, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SearchResultReferenceDsml
public SearchResultReferenceDsml()
- Creates a new instance of SearchResultReferenceDsml.
SearchResultReferenceDsml
public SearchResultReferenceDsml(LdapMessageCodec ldapMessage)
- Creates a new instance of SearchResultReferenceDsml.
- Parameters:
ldapMessage
- the message to decorate
getMessageType
public MessageTypeEnum getMessageType()
- Description copied from class:
LdapMessageCodec
- Get the message type
- Overrides:
getMessageType
in class LdapMessageDecorator
- Returns:
- The message type
toDsml
public org.dom4j.Element toDsml(org.dom4j.Element root)
- Description copied from interface:
DsmlDecorator
- Converts the request/reponse to its XML representation in the DSMLv2 format
- Specified by:
toDsml
in interface DsmlDecorator
- Parameters:
root
- the root dom4j Element
- Returns:
- the dom4j Element corresponding to the entry.
addSearchResultReference
public void addSearchResultReference(LdapURL searchResultReference)
- Add a new reference to the list.
- Parameters:
searchResultReference
- The search result reference
getSearchResultReferences
public java.util.List<LdapURL> getSearchResultReferences()
- Get the list of references
- Returns:
- An ArrayList of SearchResultReferences
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.