}
@Override
public TProcessor getProcessor(TTransport trans) {
if (trans instanceof TBufferedSocket) {
TBufferedSocket tsock = (TBufferedSocket) trans;
clientAddress.set(tsock.getClientString());
} else if (trans instanceof TSocket) {
TSocket tsock = (TSocket) trans;
clientAddress.set(tsock.getSocket().getInetAddress().getHostAddress() + ":" + tsock.getSocket().getPort());
} else {
log.warn("Unable to extract clientAddress from transport of type " + trans.getClass());
}
return super.getProcessor(trans);
}