Home | History | Annotate | Download | only in transport

Lines Matching defs:connection

19  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
35 * Connection for J2SE environments.
39 private HttpURLConnection connection;
43 * @param url the url to open the connection to.
56 * @param url the url to open the connection to.
57 * @param timeout the connection and read timeout for the http connection in milliseconds
65 connection = (proxy == null)
68 connection.setUseCaches(false);
69 connection.setDoOutput(true);
70 connection.setDoInput(true);
71 connection.setConnectTimeout(timeout);
72 connection.setReadTimeout(timeout); // even if we connect fine we want to time out if we cant read anything..
76 connection.connect();
80 connection.disconnect();
84 Map properties = connection.getHeaderFields();
101 connection.setRequestProperty(string, soapAction);
105 connection.setRequestMethod(requestMethod);
110 * to enable streaming without buffering. Sets after connection will cause an exception.
116 connection.setFixedLengthStreamingMode(contentLength);
120 return connection.getOutputStream();
124 return connection.getInputStream();
128 return connection.getErrorStream();
132 return connection.getURL().getHost();
136 return connection.getURL().getPort();
140 return connection.getURL().getPath();