}
public void process(Socket in) {
try {
boolean processed = false;
Request request = RequestUtil.createRequest(in);
Response response = ResponseUtil.createResponse(in);
String url = request.getUrl();
// url security check
UrlSecurityUtil.checkUrlUpFolder(url);
if (url != null) {
for (int i = 0; i < processors.size(); i++) {
ProcessorInfo processorInfo = processors.get(i);
if (isFilterMatch(url, processorInfo)) {
processorInfo.getProcessor().process(request, response);
processed = true;
break;
}
}
}
if (!processed) {
log.warn("Not processed url:'" + request.getUrl() + "'.");
}
} catch (ClientAbortException e) {
log.info("Client abort connection.");
} catch (SocketException e) {
log.info("Client abort connection.");