~ubuntu-branches/ubuntu/precise/commons-httpclient/precise-updates

« back to all changes in this revision

Viewing changes to docs/apidocs/org/apache/commons/httpclient/protocol/ProtocolSocketFactory.html

  • Committer: Bazaar Package Importer
  • Author(s): Kumar Appaiah
  • Date: 2008-04-18 13:25:36 UTC
  • mfrom: (3.1.1 hardy)
  • Revision ID: james.westby@ubuntu.com-20080418132536-404lhdow885492ho
Tags: 3.1-2
* debian/watch:
  + Update to reflect new upstream mirror structure.
    (Closes: #459995)
* debian/control:
  + Update my e-mail address to akumar@debian.org.
  + Standards Version is now 3.7.3.
  + Use Vcs-Svn and Vcs-Browser in place of XS-Vcs-*.
  + Depend on ant 1.6.5 and above, instead of 1.6.5-1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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">
2
2
<!--NewPage-->
3
3
<HTML>
4
4
<HEAD>
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">
7
7
<TITLE>
8
 
HttpClient 3.0.1 API: Interface  ProtocolSocketFactory
 
8
ProtocolSocketFactory (HttpClient 3.1 API)
9
9
</TITLE>
 
10
 
 
11
<META NAME="keywords" CONTENT="org.apache.commons.httpclient.protocol.ProtocolSocketFactory interface">
 
12
 
10
13
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
 
14
 
 
15
<SCRIPT type="text/javascript">
 
16
function windowTitle()
 
17
{
 
18
    parent.document.title="ProtocolSocketFactory (HttpClient 3.1 API)";
 
19
}
 
20
</SCRIPT>
 
21
<NOSCRIPT>
 
22
</NOSCRIPT>
 
23
 
11
24
</HEAD>
12
 
<BODY BGCOLOR="white">
13
 
 
14
 
<!-- ========== START OF NAVBAR ========== -->
 
25
 
 
26
<BODY BGCOLOR="white" onload="windowTitle();">
 
27
 
 
28
 
 
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="">
17
33
<TR>
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>&nbsp;</TD>
23
39
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37
53
 
38
54
<TR>
39
55
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
40
 
&nbsp;PREV CLASS&nbsp;
41
 
&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/protocol/SecureProtocolSocketFactory.html"><B>NEXT CLASS</B></A></FONT></TD>
 
56
&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/protocol/Protocol.html" title="class in org.apache.commons.httpclient.protocol"><B>PREV CLASS</B></A>&nbsp;
 
57
&nbsp;<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>  &nbsp;
44
 
&nbsp;<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>  &nbsp;
 
60
&nbsp;<A HREF="ProtocolSocketFactory.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 
61
&nbsp;<SCRIPT type="text/javascript">
 
62
  <!--
 
63
  if(window==top) {
 
64
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
 
65
  }
 
66
  //-->
 
67
</SCRIPT>
 
68
<NOSCRIPT>
 
69
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
 
70
</NOSCRIPT>
 
71
 
 
72
 
 
73
</FONT></TD>
45
74
</TR>
46
75
<TR>
47
76
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
48
 
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 
77
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
49
78
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
50
 
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 
79
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
51
80
</TR>
52
81
</TABLE>
53
 
<!-- =========== END OF NAVBAR =========== -->
 
82
<A NAME="skip-navbar_top"></A>
 
83
<!-- ========= END OF TOP NAVBAR ========= -->
54
84
 
55
85
<HR>
56
86
<!-- ======== START OF CLASS DATA ======== -->
58
88
<FONT SIZE="-1">
59
89
org.apache.commons.httpclient.protocol</FONT>
60
90
<BR>
61
 
Interface  ProtocolSocketFactory</H2>
 
91
Interface ProtocolSocketFactory</H2>
62
92
<DL>
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>
64
94
</DL>
65
95
<DL>
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>
67
97
</DL>
68
98
<HR>
69
99
<DL>
70
 
<DT>public interface <B>ProtocolSocketFactory</B></DL>
 
100
<DT><PRE>public interface <B>ProtocolSocketFactory</B></DL>
 
101
</PRE>
71
102
 
72
103
<P>
73
104
A factory for creating Sockets.
74
105
 
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>
80
111
<P>
 
112
 
 
113
<P>
81
114
<DL>
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>
 
116
  <DD>2.0</DD>
 
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>
85
120
<HR>
86
121
 
87
122
<P>
88
 
<!-- ======== INNER CLASS SUMMARY ======== -->
89
 
 
90
 
 
91
 
<!-- =========== FIELD SUMMARY =========== -->
92
 
 
93
 
 
94
 
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
95
 
 
96
123
 
97
124
<!-- ========== METHOD SUMMARY =========== -->
98
125
 
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>
104
131
</TR>
105
132
<TR BGCOLOR="white" CLASS="TableRowColor">
106
133
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
107
 
<CODE>&nbsp;<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>&nbsp;host,
 
134
<CODE>&nbsp;<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>&nbsp;host,
109
136
             int&nbsp;port)</CODE>
110
137
 
111
138
<BR>
113
140
</TR>
114
141
<TR BGCOLOR="white" CLASS="TableRowColor">
115
142
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
116
 
<CODE>&nbsp;<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>&nbsp;host,
 
143
<CODE>&nbsp;<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>&nbsp;host,
118
145
             int&nbsp;port,
119
 
             <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/InetAddress.html">InetAddress</A>&nbsp;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>&nbsp;localAddress,
120
147
             int&nbsp;localPort)</CODE>
121
148
 
122
149
<BR>
124
151
</TR>
125
152
<TR BGCOLOR="white" CLASS="TableRowColor">
126
153
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
127
 
<CODE>&nbsp;<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>&nbsp;host,
 
154
<CODE>&nbsp;<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>&nbsp;host,
129
156
             int&nbsp;port,
130
 
             <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/InetAddress.html">InetAddress</A>&nbsp;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>&nbsp;localAddress,
131
158
             int&nbsp;localPort,
132
 
             <A HREF="../../../../../org/apache/commons/httpclient/params/HttpConnectionParams.html">HttpConnectionParams</A>&nbsp;params)</CODE>
 
159
             <A HREF="../../../../../org/apache/commons/httpclient/params/HttpConnectionParams.html" title="class in org.apache.commons.httpclient.params">HttpConnectionParams</A>&nbsp;params)</CODE>
133
160
 
134
161
<BR>
135
162
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets a new socket connection to the given host.</TD>
138
165
&nbsp;
139
166
<P>
140
167
 
141
 
<!-- ============ FIELD DETAIL =========== -->
142
 
 
143
 
 
144
 
<!-- ========= CONSTRUCTOR DETAIL ======== -->
145
 
 
146
 
 
147
168
<!-- ============ METHOD DETAIL ========== -->
148
169
 
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>
154
175
</TR>
155
176
</TABLE>
156
177
 
157
178
<A NAME="createSocket(java.lang.String, int, java.net.InetAddress, int)"><!-- --></A><H3>
158
179
createSocket</H3>
159
180
<PRE>
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>&nbsp;host,
161
 
                           int&nbsp;port,
162
 
                           <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/InetAddress.html">InetAddress</A>&nbsp;localAddress,
163
 
                           int&nbsp;localPort)
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>&nbsp;host,
 
182
                    int&nbsp;port,
 
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>&nbsp;localAddress,
 
184
                    int&nbsp;localPort)
 
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>
166
187
<DL>
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.
 
189
<P>
 
190
<DD><DL>
 
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
 
193
<DT><B>Throws:</B>
 
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
169
196
 determined</DL>
170
197
</DD>
171
198
</DL>
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>
176
203
<PRE>
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>&nbsp;host,
178
 
                           int&nbsp;port,
179
 
                           <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/net/InetAddress.html">InetAddress</A>&nbsp;localAddress,
180
 
                           int&nbsp;localPort,
181
 
                           <A HREF="../../../../../org/apache/commons/httpclient/params/HttpConnectionParams.html">HttpConnectionParams</A>&nbsp;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>&nbsp;host,
 
205
                    int&nbsp;port,
 
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>&nbsp;localAddress,
 
207
                    int&nbsp;localPort,
 
208
                    <A HREF="../../../../../org/apache/commons/httpclient/params/HttpConnectionParams.html" title="class in org.apache.commons.httpclient.params">HttpConnectionParams</A>&nbsp;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>
185
212
<DL>
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.
 
214
<P>
 
215
<DD><DL>
 
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
 
218
<DT><B>Throws:</B>
 
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
 
221
 determined
 
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>
 
224
  <DD>3.0</DD>
190
225
</DL>
191
226
</DD>
192
227
</DL>
195
230
<A NAME="createSocket(java.lang.String, int)"><!-- --></A><H3>
196
231
createSocket</H3>
197
232
<PRE>
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>&nbsp;host,
199
 
                           int&nbsp;port)
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>&nbsp;host,
 
234
                    int&nbsp;port)
 
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>
202
237
<DL>
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.
 
239
<P>
 
240
<DD><DL>
 
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
 
243
<DT><B>Throws:</B>
 
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
205
246
 determined</DL>
206
247
</DD>
207
248
</DL>
208
249
<!-- ========= END OF CLASS DATA ========= -->
209
250
<HR>
210
251
 
211
 
<!-- ========== START OF NAVBAR ========== -->
 
252
 
 
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="">
214
257
<TR>
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>&nbsp;</TD>
220
263
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
234
277
 
235
278
<TR>
236
279
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
237
 
&nbsp;PREV CLASS&nbsp;
238
 
&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/protocol/SecureProtocolSocketFactory.html"><B>NEXT CLASS</B></A></FONT></TD>
 
280
&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/protocol/Protocol.html" title="class in org.apache.commons.httpclient.protocol"><B>PREV CLASS</B></A>&nbsp;
 
281
&nbsp;<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>  &nbsp;
241
 
&nbsp;<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>  &nbsp;
 
284
&nbsp;<A HREF="ProtocolSocketFactory.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 
285
&nbsp;<SCRIPT type="text/javascript">
 
286
  <!--
 
287
  if(window==top) {
 
288
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
 
289
  }
 
290
  //-->
 
291
</SCRIPT>
 
292
<NOSCRIPT>
 
293
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
 
294
</NOSCRIPT>
 
295
 
 
296
 
 
297
</FONT></TD>
242
298
</TR>
243
299
<TR>
244
300
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
245
 
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 
301
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
246
302
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
247
 
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 
303
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
248
304
</TR>
249
305
</TABLE>
250
 
<!-- =========== END OF NAVBAR =========== -->
 
306
<A NAME="skip-navbar_bottom"></A>
 
307
<!-- ======== END OF BOTTOM NAVBAR ======= -->
251
308
 
252
309
<HR>
253
 
Copyright &copy; 2001-2006 Apache Software Foundation. All Rights Reserved.
 
310
Copyright &copy; 2001-2007 Apache Software Foundation. All Rights Reserved.
254
311
</BODY>
255
312
</HTML>