protected HttpClient httpClient() { return new HttpClient(); }
protected HttpClient httpClient() { return new HttpClient(); }
public static RemoteControlProxy parse(HttpServletRequest request) { final RemoteControlProxy remoteControl; final String portParameter; final String environment; final String host; final int port; host = request.getParameter("host"); if (null == host || "".equals(host.trim())) { throw new IllegalStateException("You must specify a 'host' parameter"); } portParameter = request.getParameter("port"); if (null == portParameter || "".equals(portParameter.trim())) { throw new IllegalStateException("You must specify a 'port' parameter"); } port = Integer.parseInt(portParameter); environment = request.getParameter("environment"); if (null == environment || "".equals(environment.trim())) { throw new IllegalStateException("You must specify an 'environment' parameter"); } remoteControl = new RemoteControlProxy(host, port, environment, new HttpClient()); return remoteControl; }
public static RemoteControlProxy parse(HttpServletRequest request) { final RemoteControlProxy remoteControl; final String portParameter; final String environment; final String host; final int port; host = request.getParameter("host"); if (null == host || "".equals(host.trim())) { throw new IllegalStateException("You must specify a 'host' parameter"); } portParameter = request.getParameter("port"); if (null == portParameter || "".equals(portParameter.trim())) { throw new IllegalStateException("You must specify a 'port' parameter"); } port = Integer.parseInt(portParameter); environment = request.getParameter("environment"); if (null == environment || "".equals(environment.trim())) { throw new IllegalStateException("You must specify an 'environment' parameter"); } remoteControl = new RemoteControlProxy(host, port, environment, new HttpClient()); return remoteControl; }