ClientBroker clientBroker) {
try {
URL url = new URL("https://" + request.getURL());
if(isSPS(url)) {
SPSBroker broker =
SPSConnectionPool.getConnectionByUrl(url).getBroker();
RequestManager.getSession(reqId).setSPSBroker(broker);
SCPPacket packet = new SCPPacket(
SCPPacket.HTTPS_REQUEST_RESPONSE,
reqId,
data.getBytes());
broker.send(packet.getBytes());
clientBroker.addConnToReqTmManager(reqId);
} else {
if(logger.isDebugEnabled()) {
logger.debug("HTTPS proxing: " + request.getURL());
}