1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
<!-- Generated by javadoc on Sun May 07 10:20:00 EDT 2006 -->
5
<!-- Generated by javadoc (build 1.5.0_11) on Sat Aug 18 11:01:02 CEST 2007 -->
6
6
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
8
HttpClient 3.0.1 API: Interface ProtocolSocketFactory
8
ProtocolSocketFactory (HttpClient 3.1 API)
11
<META NAME="keywords" CONTENT="org.apache.commons.httpclient.protocol.ProtocolSocketFactory interface">
10
13
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
15
<SCRIPT type="text/javascript">
16
function windowTitle()
18
parent.document.title="ProtocolSocketFactory (HttpClient 3.1 API)";
12
<BODY BGCOLOR="white">
14
<!-- ========== START OF NAVBAR ========== -->
26
<BODY BGCOLOR="white" onload="windowTitle();">
29
<!-- ========= START OF TOP NAVBAR ======= -->
15
30
<A NAME="navbar_top"><!-- --></A>
16
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
31
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
32
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
18
34
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
19
35
<A NAME="navbar_top_firstrow"><!-- --></A>
20
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
36
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
21
37
<TR ALIGN="center" VALIGN="top">
22
38
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
23
39
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
39
55
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
40
PREV CLASS
41
<A HREF="../../../../../org/apache/commons/httpclient/protocol/SecureProtocolSocketFactory.html"><B>NEXT CLASS</B></A></FONT></TD>
56
<A HREF="../../../../../org/apache/commons/httpclient/protocol/Protocol.html" title="class in org.apache.commons.httpclient.protocol"><B>PREV CLASS</B></A>
57
<A HREF="../../../../../org/apache/commons/httpclient/protocol/ReflectionSocketFactory.html" title="class in org.apache.commons.httpclient.protocol"><B>NEXT CLASS</B></A></FONT></TD>
42
58
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
43
<A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
44
<A HREF="ProtocolSocketFactory.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
59
<A HREF="../../../../../index.html?org/apache/commons/httpclient/protocol/ProtocolSocketFactory.html" target="_top"><B>FRAMES</B></A>
60
<A HREF="ProtocolSocketFactory.html" target="_top"><B>NO FRAMES</B></A>
61
<SCRIPT type="text/javascript">
64
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
69
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
47
76
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
48
SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
77
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
49
78
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
50
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
79
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
53
<!-- =========== END OF NAVBAR =========== -->
82
<A NAME="skip-navbar_top"></A>
83
<!-- ========= END OF TOP NAVBAR ========= -->
56
86
<!-- ======== START OF CLASS DATA ======== -->
59
89
org.apache.commons.httpclient.protocol</FONT>
61
Interface ProtocolSocketFactory</H2>
91
Interface ProtocolSocketFactory</H2>
63
<DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../../../../org/apache/commons/httpclient/protocol/SecureProtocolSocketFactory.html">SecureProtocolSocketFactory</A></DD>
93
<DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../../../../org/apache/commons/httpclient/protocol/SecureProtocolSocketFactory.html" title="interface in org.apache.commons.httpclient.protocol">SecureProtocolSocketFactory</A></DD>
66
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../../org/apache/commons/httpclient/protocol/DefaultProtocolSocketFactory.html">DefaultProtocolSocketFactory</A></DD>
96
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../../org/apache/commons/httpclient/protocol/DefaultProtocolSocketFactory.html" title="class in org.apache.commons.httpclient.protocol">DefaultProtocolSocketFactory</A>, <A HREF="../../../../../org/apache/commons/httpclient/protocol/SSLProtocolSocketFactory.html" title="class in org.apache.commons.httpclient.protocol">SSLProtocolSocketFactory</A></DD>
70
<DT>public interface <B>ProtocolSocketFactory</B></DL>
100
<DT><PRE>public interface <B>ProtocolSocketFactory</B></DL>
73
104
A factory for creating Sockets.
75
<p>Both <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#equals(java.lang.Object)"><CODE>Object.equals()</CODE></A> and
76
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#hashCode()"><CODE>Object.hashCode()</CODE></A> should be overridden appropriately.
106
<p>Both <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang"><CODE>Object.equals()</CODE></A> and
107
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang"><CODE>Object.hashCode()</CODE></A> should be overridden appropriately.
77
108
Protocol socket factories are used to uniquely identify <code>Protocol</code>s and
78
109
<code>HostConfiguration</code>s, and <code>equals()</code> and <code>hashCode()</code> are
79
110
required for the correct operation of some connection managers.</p>
82
<DT><B>Since: </B><DD>2.0</DD>
83
<DT><B>Author: </B><DD>Michael Becke, <a href="mailto:mbowler@GargoyleSoftware.com">Mike Bowler</a></DD>
84
<DT><B>See Also: </B><DD><A HREF="../../../../../org/apache/commons/httpclient/protocol/Protocol.html"><CODE>Protocol</CODE></A></DL>
115
<DT><B>Since:</B></DT>
117
<DT><B>Author:</B></DT>
118
<DD>Michael Becke, <a href="mailto:mbowler@GargoyleSoftware.com">Mike Bowler</a></DD>
119
<DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/commons/httpclient/protocol/Protocol.html" title="class in org.apache.commons.httpclient.protocol"><CODE>Protocol</CODE></A></DL>
88
<!-- ======== INNER CLASS SUMMARY ======== -->
91
<!-- =========== FIELD SUMMARY =========== -->
94
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
97
124
<!-- ========== METHOD SUMMARY =========== -->
99
126
<A NAME="method_summary"><!-- --></A>
100
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
127
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
101
128
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
102
<TD COLSPAN=2><FONT SIZE="+2">
103
<B>Method Summary</B></FONT></TD>
129
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
130
<B>Method Summary</B></FONT></TH>
105
132
<TR BGCOLOR="white" CLASS="TableRowColor">
106
133
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
107
<CODE> <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html">Socket</A></CODE></FONT></TD>
108
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/protocol/ProtocolSocketFactory.html#createSocket(java.lang.String, int)">createSocket</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html">String</A> host,
134
<CODE> <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A></CODE></FONT></TD>
135
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/protocol/ProtocolSocketFactory.html#createSocket(java.lang.String, int)">createSocket</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> host,
109
136
int port)</CODE>
114
141
<TR BGCOLOR="white" CLASS="TableRowColor">
115
142
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
116
<CODE> <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html">Socket</A></CODE></FONT></TD>
117
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/protocol/ProtocolSocketFactory.html#createSocket(java.lang.String, int, java.net.InetAddress, int)">createSocket</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html">String</A> host,
143
<CODE> <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A></CODE></FONT></TD>
144
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/protocol/ProtocolSocketFactory.html#createSocket(java.lang.String, int, java.net.InetAddress, int)">createSocket</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> host,
119
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/InetAddress.html">InetAddress</A> localAddress,
146
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/InetAddress.html" title="class or interface in java.net">InetAddress</A> localAddress,
120
147
int localPort)</CODE>
125
152
<TR BGCOLOR="white" CLASS="TableRowColor">
126
153
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
127
<CODE> <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html">Socket</A></CODE></FONT></TD>
128
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/protocol/ProtocolSocketFactory.html#createSocket(java.lang.String, int, java.net.InetAddress, int, org.apache.commons.httpclient.params.HttpConnectionParams)">createSocket</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html">String</A> host,
154
<CODE> <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A></CODE></FONT></TD>
155
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/protocol/ProtocolSocketFactory.html#createSocket(java.lang.String, int, java.net.InetAddress, int, org.apache.commons.httpclient.params.HttpConnectionParams)">createSocket</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> host,
130
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/InetAddress.html">InetAddress</A> localAddress,
157
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/InetAddress.html" title="class or interface in java.net">InetAddress</A> localAddress,
131
158
int localPort,
132
<A HREF="../../../../../org/apache/commons/httpclient/params/HttpConnectionParams.html">HttpConnectionParams</A> params)</CODE>
159
<A HREF="../../../../../org/apache/commons/httpclient/params/HttpConnectionParams.html" title="class in org.apache.commons.httpclient.params">HttpConnectionParams</A> params)</CODE>
135
162
Gets a new socket connection to the given host.</TD>
141
<!-- ============ FIELD DETAIL =========== -->
144
<!-- ========= CONSTRUCTOR DETAIL ======== -->
147
168
<!-- ============ METHOD DETAIL ========== -->
149
170
<A NAME="method_detail"><!-- --></A>
150
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
171
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
151
172
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
152
<TD COLSPAN=1><FONT SIZE="+2">
153
<B>Method Detail</B></FONT></TD>
173
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
174
<B>Method Detail</B></FONT></TH>
157
178
<A NAME="createSocket(java.lang.String, int, java.net.InetAddress, int)"><!-- --></A><H3>
158
179
createSocket</H3>
160
public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html">Socket</A> <B>createSocket</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html">String</A> host,
162
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/InetAddress.html">InetAddress</A> localAddress,
164
throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html">IOException</A>,
165
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/UnknownHostException.html">UnknownHostException</A></PRE>
181
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> <B>createSocket</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> host,
183
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/InetAddress.html" title="class or interface in java.net">InetAddress</A> localAddress,
185
throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A>,
186
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/UnknownHostException.html" title="class or interface in java.net">UnknownHostException</A></PRE>
167
<DD>Gets a new socket connection to the given host.<DD><DL>
168
<DT><B>Parameters:</B><DD><CODE>host</CODE> - the host name/IP<DD><CODE>port</CODE> - the port on the host<DD><CODE>localAddress</CODE> - the local host name/IP to bind the socket to<DD><CODE>localPort</CODE> - the port on the local machine<DT><B>Returns:</B><DD>Socket a new socket<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html">IOException</A></CODE> - if an I/O error occurs while creating the socket<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/UnknownHostException.html">UnknownHostException</A></CODE> - if the IP address of the host cannot be
188
<DD>Gets a new socket connection to the given host.
191
<DT><B>Parameters:</B><DD><CODE>host</CODE> - the host name/IP<DD><CODE>port</CODE> - the port on the host<DD><CODE>localAddress</CODE> - the local host name/IP to bind the socket to<DD><CODE>localPort</CODE> - the port on the local machine
192
<DT><B>Returns:</B><DD>Socket a new socket
194
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an I/O error occurs while creating the socket
195
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/UnknownHostException.html" title="class or interface in java.net">UnknownHostException</A></CODE> - if the IP address of the host cannot be
174
201
<A NAME="createSocket(java.lang.String, int, java.net.InetAddress, int, org.apache.commons.httpclient.params.HttpConnectionParams)"><!-- --></A><H3>
175
202
createSocket</H3>
177
public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html">Socket</A> <B>createSocket</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html">String</A> host,
179
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/InetAddress.html">InetAddress</A> localAddress,
181
<A HREF="../../../../../org/apache/commons/httpclient/params/HttpConnectionParams.html">HttpConnectionParams</A> params)
182
throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html">IOException</A>,
183
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/UnknownHostException.html">UnknownHostException</A>,
184
<A HREF="../../../../../org/apache/commons/httpclient/ConnectTimeoutException.html">ConnectTimeoutException</A></PRE>
204
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> <B>createSocket</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> host,
206
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/InetAddress.html" title="class or interface in java.net">InetAddress</A> localAddress,
208
<A HREF="../../../../../org/apache/commons/httpclient/params/HttpConnectionParams.html" title="class in org.apache.commons.httpclient.params">HttpConnectionParams</A> params)
209
throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A>,
210
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/UnknownHostException.html" title="class or interface in java.net">UnknownHostException</A>,
211
<A HREF="../../../../../org/apache/commons/httpclient/ConnectTimeoutException.html" title="class in org.apache.commons.httpclient">ConnectTimeoutException</A></PRE>
186
<DD>Gets a new socket connection to the given host.<DD><DL>
187
<DT><B>Parameters:</B><DD><CODE>host</CODE> - the host name/IP<DD><CODE>port</CODE> - the port on the host<DD><CODE>localAddress</CODE> - the local host name/IP to bind the socket to<DD><CODE>localPort</CODE> - the port on the local machine<DD><CODE>params</CODE> - <A HREF="../../../../../org/apache/commons/httpclient/params/HttpConnectionParams.html"><CODE>Http connection parameters</CODE></A><DT><B>Returns:</B><DD>Socket a new socket<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html">IOException</A></CODE> - if an I/O error occurs while creating the socket<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/UnknownHostException.html">UnknownHostException</A></CODE> - if the IP address of the host cannot be
188
determined<DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/ConnectTimeoutException.html">ConnectTimeoutException</A></CODE> - if socket cannot be connected within the
189
given time limit<DT><B>Since: </B><DD>3.0</DD>
213
<DD>Gets a new socket connection to the given host.
216
<DT><B>Parameters:</B><DD><CODE>host</CODE> - the host name/IP<DD><CODE>port</CODE> - the port on the host<DD><CODE>localAddress</CODE> - the local host name/IP to bind the socket to<DD><CODE>localPort</CODE> - the port on the local machine<DD><CODE>params</CODE> - <A HREF="../../../../../org/apache/commons/httpclient/params/HttpConnectionParams.html" title="class in org.apache.commons.httpclient.params"><CODE>Http connection parameters</CODE></A>
217
<DT><B>Returns:</B><DD>Socket a new socket
219
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an I/O error occurs while creating the socket
220
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/UnknownHostException.html" title="class or interface in java.net">UnknownHostException</A></CODE> - if the IP address of the host cannot be
222
<DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/ConnectTimeoutException.html" title="class in org.apache.commons.httpclient">ConnectTimeoutException</A></CODE> - if socket cannot be connected within the
223
given time limit<DT><B>Since:</B></DT>
195
230
<A NAME="createSocket(java.lang.String, int)"><!-- --></A><H3>
196
231
createSocket</H3>
198
public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html">Socket</A> <B>createSocket</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html">String</A> host,
200
throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html">IOException</A>,
201
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/UnknownHostException.html">UnknownHostException</A></PRE>
233
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html" title="class or interface in java.net">Socket</A> <B>createSocket</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> host,
235
throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A>,
236
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/UnknownHostException.html" title="class or interface in java.net">UnknownHostException</A></PRE>
203
<DD>Gets a new socket connection to the given host.<DD><DL>
204
<DT><B>Parameters:</B><DD><CODE>host</CODE> - the host name/IP<DD><CODE>port</CODE> - the port on the host<DT><B>Returns:</B><DD>Socket a new socket<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html">IOException</A></CODE> - if an I/O error occurs while creating the socket<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/UnknownHostException.html">UnknownHostException</A></CODE> - if the IP address of the host cannot be
238
<DD>Gets a new socket connection to the given host.
241
<DT><B>Parameters:</B><DD><CODE>host</CODE> - the host name/IP<DD><CODE>port</CODE> - the port on the host
242
<DT><B>Returns:</B><DD>Socket a new socket
244
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an I/O error occurs while creating the socket
245
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/UnknownHostException.html" title="class or interface in java.net">UnknownHostException</A></CODE> - if the IP address of the host cannot be
208
249
<!-- ========= END OF CLASS DATA ========= -->
211
<!-- ========== START OF NAVBAR ========== -->
253
<!-- ======= START OF BOTTOM NAVBAR ====== -->
212
254
<A NAME="navbar_bottom"><!-- --></A>
213
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
255
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
256
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
215
258
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
216
259
<A NAME="navbar_bottom_firstrow"><!-- --></A>
217
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
260
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
218
261
<TR ALIGN="center" VALIGN="top">
219
262
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
220
263
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
236
279
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
237
PREV CLASS
238
<A HREF="../../../../../org/apache/commons/httpclient/protocol/SecureProtocolSocketFactory.html"><B>NEXT CLASS</B></A></FONT></TD>
280
<A HREF="../../../../../org/apache/commons/httpclient/protocol/Protocol.html" title="class in org.apache.commons.httpclient.protocol"><B>PREV CLASS</B></A>
281
<A HREF="../../../../../org/apache/commons/httpclient/protocol/ReflectionSocketFactory.html" title="class in org.apache.commons.httpclient.protocol"><B>NEXT CLASS</B></A></FONT></TD>
239
282
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
240
<A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
241
<A HREF="ProtocolSocketFactory.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
283
<A HREF="../../../../../index.html?org/apache/commons/httpclient/protocol/ProtocolSocketFactory.html" target="_top"><B>FRAMES</B></A>
284
<A HREF="ProtocolSocketFactory.html" target="_top"><B>NO FRAMES</B></A>
285
<SCRIPT type="text/javascript">
288
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
293
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
244
300
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
245
SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
301
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
246
302
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
247
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
303
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
250
<!-- =========== END OF NAVBAR =========== -->
306
<A NAME="skip-navbar_bottom"></A>
307
<!-- ======== END OF BOTTOM NAVBAR ======= -->
253
Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.
310
Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.