public class LdapResponseHandler extends Object
| Constructor and Description |
|---|
LdapResponseHandler(Socket client,
OutputStream os) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addIf(Map<String,Object> attributes,
Set<String> returningAttributes,
String name,
Object value) |
void |
dumpBer(byte[] inbuf,
int offset) |
protected String |
getCurrentHostName() |
protected String |
getServiceInfo() |
boolean |
isLdapV3() |
void |
sendBaseContext(int currentMessageId)
Send Base Context
|
void |
sendBindResponse(int currentMessageId,
int status,
byte[] serverResponse) |
void |
sendClient(int currentMessageId,
int responseOperation,
int status,
String message) |
void |
sendComputerContext(int currentMessageId,
Set<String> returningAttributes)
Send ComputerContext
|
void |
sendEntry(int currentMessageId,
String dn,
Map<String,Object> attributes) |
void |
sendErr(int currentMessageId,
int responseOperation,
Exception e) |
void |
sendResponse() |
void |
sendRootDSE(int currentMessageId)
Send Root DSE
|
public LdapResponseHandler(Socket client, OutputStream os)
public boolean isLdapV3()
public void sendRootDSE(int currentMessageId)
throws IOException
currentMessageId - current message idIOException - on errorpublic void sendEntry(int currentMessageId,
String dn,
Map<String,Object> attributes)
throws IOException
IOExceptionpublic void sendErr(int currentMessageId,
int responseOperation,
Exception e)
throws IOException
IOExceptionpublic void sendClient(int currentMessageId,
int responseOperation,
int status,
String message)
throws IOException
IOExceptionpublic void sendResponse()
throws IOException
IOExceptionpublic void sendBaseContext(int currentMessageId)
throws IOException
currentMessageId - current message idIOException - on errorpublic void sendComputerContext(int currentMessageId,
Set<String> returningAttributes)
throws IOException
currentMessageId - current message idreturningAttributes - attributes to returnIOException - on errorprotected String getServiceInfo()
protected String getCurrentHostName() throws UnknownHostException
UnknownHostExceptionpublic void dumpBer(byte[] inbuf,
int offset)
protected void addIf(Map<String,Object> attributes, Set<String> returningAttributes, String name, Object value)
public void sendBindResponse(int currentMessageId,
int status,
byte[] serverResponse)
throws IOException
IOExceptionCopyright © 2021 McEvoy Software Ltd. All rights reserved.