}
opType = responseMessage.getProtocolOpType();
switch (opType)
{
case LDAPConstants.OP_TYPE_SEARCH_RESULT_ENTRY:
SearchResultEntryProtocolOp searchEntryOp = responseMessage
.getSearchResultEntryProtocolOp();
SearchResultEntry entry = objFactory.createSearchResultEntry();
java.util.List<DsmlAttr> attrList = entry.getAttr();
LinkedList<LDAPAttribute> attrs = searchEntryOp.getAttributes();
for (LDAPAttribute attr : attrs)
{
String nm = attr.getAttributeType();
DsmlAttr dsmlAttr = objFactory.createDsmlAttr();
dsmlAttr.setName(nm);
List<String> dsmlAttrVal = dsmlAttr.getValue();
ArrayList<ByteString> vals = attr.getValues();
for (ByteString val : vals)
{
dsmlAttrVal.add(val.toString());
}
attrList.add(dsmlAttr);
}
entry.setDn(searchEntryOp.getDN().toString());
searchResponse.getSearchResultEntry().add(entry);
break;
case LDAPConstants.OP_TYPE_SEARCH_RESULT_REFERENCE:
responseMessage.getSearchResultReferenceProtocolOp();