public Object sendRequest(XmlRpcRequest pRequest) throws XmlRpcException { config = (XmlRpcHttpClientConfig) pRequest.getConfig(); URL url = config.getServerURL(); ssl = "https".equals(url.getProtocol()); hostname = url.getHost(); int p = url.getPort(); port = p < 1 ? 80 : p; String u = url.getFile(); uri = (u == null || "".equals(u)) ? "/" : u; host = port == 80 ? hostname : hostname + ":" + port; headers.put("Host", host); return super.sendRequest(pRequest); }
public Object sendRequest(XmlRpcRequest pRequest) throws XmlRpcException { config = (XmlRpcHttpClientConfig) pRequest.getConfig(); URL url = config.getServerURL(); ssl = "https".equals(url.getProtocol()); hostname = url.getHost(); int p = url.getPort(); port = p < 1 ? 80 : p; String u = url.getFile(); uri = (u == null || "".equals(u)) ? "/" : u; host = port == 80 ? hostname : hostname + ":" + port; headers.put("Host", host); return super.sendRequest(pRequest); }
public Object sendRequest(XmlRpcRequest pRequest) throws XmlRpcException { config = (XmlRpcHttpClientConfig) pRequest.getConfig(); URL url = config.getServerURL(); hostname = url.getHost(); int p = url.getPort(); port = p < 1 ? 80 : p; String u = url.getFile(); uri = (u == null || "".equals(u)) ? "/" : u; host = port == 80 ? hostname : hostname + ":" + port; headers.put("Host", host); return super.sendRequest(pRequest); }
public Object sendRequest(XmlRpcRequest pRequest) throws XmlRpcException { XmlRpcHttpClientConfig config = (XmlRpcHttpClientConfig) pRequest.getConfig(); try { conn = config.getServerURL().openConnection(); conn.setUseCaches(false); conn.setDoInput(true); conn.setDoOutput(true); } catch (IOException e) { throw new XmlRpcException("Failed to create URLConnection: " + e.getMessage(), e); } return super.sendRequest(pRequest); }
public Object sendRequest(XmlRpcRequest pRequest) throws XmlRpcException { XmlRpcHttpClientConfig config = (XmlRpcHttpClientConfig) pRequest.getConfig(); try { final URLConnection c = conn = newURLConnection(config.getServerURL()); c.setUseCaches(false); c.setDoInput(true); c.setDoOutput(true); } catch (IOException e) { throw new XmlRpcException("Failed to create URLConnection: " + e.getMessage(), e); } return super.sendRequest(pRequest); }
public Object sendRequest(XmlRpcRequest pRequest) throws XmlRpcException { XmlRpcHttpClientConfig config = (XmlRpcHttpClientConfig) pRequest.getConfig(); try { final URLConnection c = conn = newURLConnection(config.getServerURL()); c.setUseCaches(false); c.setDoInput(true); c.setDoOutput(true); } catch (IOException e) { throw new XmlRpcException("Failed to create URLConnection: " + e.getMessage(), e); } return super.sendRequest(pRequest); }
@Override public Object sendRequest(XmlRpcRequest req) throws XmlRpcException { XmlRpcHttpClientConfig config = (XmlRpcHttpClientConfig) req.getConfig(); URL serverUrl = config.getServerURL(); if (serverUrl == null) { throw new XmlRpcException("Invalid server URL"); } try { con = openConnection(serverUrl); con.setUseCaches(false); con.setDoInput(true); con.setDoOutput(true); } catch (IOException e) { throw new XmlRpcException("Failed to create URLConnection: " + e.getMessage(), e); } return super.sendRequest(req); }