myRequestProcessor.process(request.getAddress().toString(), request.getClientAddress().getAddress().getHostAddress(), getRequestHandler(response)); } else { myMultiAnnounceRequestProcessor.process(request.getContent(), request.getAddress().toString(), request.getClientAddress().getAddress().getHostAddress(), getRequestHandler(response));
/** * This is used to acquire the remote client address. This can * be used to acquire both the port and the I.P address for the * client. It allows the connected clients to be logged and if * require it can be used to perform course grained security. * * @return this returns the client address for this request */ public InetSocketAddress getClientAddress() { return request.getClientAddress(); }
/** * This is used to acquire the remote client address. This can * be used to acquire both the port and the I.P address for the * client. It allows the connected clients to be logged and if * require it can be used to perform course grained security. * * @return this returns the client address for this request */ public InetSocketAddress getClientAddress() { return request.getClientAddress(); }
/** * This is used to acquire the remote client address. This can * be used to acquire both the port and the I.P address for the * client. It allows the connected clients to be logged and if * require it can be used to perform course grained security. * * @return this returns the client address for this request */ public InetSocketAddress getClientAddress() { return request.getClientAddress(); }
@Override public InetSocketAddress clientAddress() { return request.getClientAddress(); }
public String getRemoteAddr() { InetSocketAddress add = baseRequest.getClientAddress(); if (add == null) { return null; } else { return add.getHostName(); } } }
@Override public String getLocalClientAddress() { return request.getClientAddress().getAddress().getHostAddress(); }
@Override public String getClientAddress() { return this.request.getClientAddress().getAddress().getHostAddress(); }
@Override public String getLocalClientAddress() { return request.getClientAddress().getAddress().getHostAddress(); }
String ip = request.getClientAddress().getAddress().toString().substring(1); String path = request.getPath().toString(); logger.debug(String.format("IP: %s, PATH: %s", ip, path));
sessions.put(sessionid, request.getClientAddress().getHostString()); Element result = doc.getDocumentElement(); result.setAttribute("status", "success");