1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
5
<!-- Generated by javadoc on Sun Oct 10 17:41:04 EDT 2004 -->
7
HttpClient 2.0.2 API: Interface MethodRetryHandler
9
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
11
<BODY BGCOLOR="white">
13
<!-- ========== START OF NAVBAR ========== -->
14
<A NAME="navbar_top"><!-- --></A>
15
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
17
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
18
<A NAME="navbar_top_firstrow"><!-- --></A>
19
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
20
<TR ALIGN="center" VALIGN="top">
21
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
22
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
23
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
24
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/MethodRetryHandler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
25
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
26
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
27
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
28
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
32
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
38
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
39
<A HREF="../../../../org/apache/commons/httpclient/HttpUrlMethod.html"><B>PREV CLASS</B></A>
40
<A HREF="../../../../org/apache/commons/httpclient/ResponseConsumedWatcher.html"><B>NEXT CLASS</B></A></FONT></TD>
41
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
42
<A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
43
<A HREF="MethodRetryHandler.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
46
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
47
SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
48
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
49
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
52
<!-- =========== END OF NAVBAR =========== -->
55
<!-- ======== START OF CLASS DATA ======== -->
58
org.apache.commons.httpclient</FONT>
60
Interface MethodRetryHandler</H2>
62
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../org/apache/commons/httpclient/DefaultMethodRetryHandler.html">DefaultMethodRetryHandler</A></DD>
66
<DT>public interface <B>MethodRetryHandler</B></DL>
69
A handler for determining if an HttpMethod should be retried after a
70
recoverable exception during execution.
73
<DT><B>Author: </B><DD>Michael Becke</DD>
74
<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/commons/httpclient/HttpMethod.html#execute(org.apache.commons.httpclient.HttpState, org.apache.commons.httpclient.HttpConnection)"><CODE>HttpMethod.execute(HttpState, HttpConnection)</CODE></A>,
75
<A HREF="../../../../org/apache/commons/httpclient/HttpRecoverableException.html"><CODE>HttpRecoverableException</CODE></A></DL>
79
<!-- ======== INNER CLASS SUMMARY ======== -->
82
<!-- =========== FIELD SUMMARY =========== -->
85
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
88
<!-- ========== METHOD SUMMARY =========== -->
90
<A NAME="method_summary"><!-- --></A>
91
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
92
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
93
<TD COLSPAN=2><FONT SIZE="+2">
94
<B>Method Summary</B></FONT></TD>
96
<TR BGCOLOR="white" CLASS="TableRowColor">
97
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
98
<CODE> boolean</CODE></FONT></TD>
99
<TD><CODE><B><A HREF="../../../../org/apache/commons/httpclient/MethodRetryHandler.html#retryMethod(org.apache.commons.httpclient.HttpMethod, org.apache.commons.httpclient.HttpConnection, org.apache.commons.httpclient.HttpRecoverableException, int, boolean)">retryMethod</A></B>(<A HREF="../../../../org/apache/commons/httpclient/HttpMethod.html">HttpMethod</A> method,
100
<A HREF="../../../../org/apache/commons/httpclient/HttpConnection.html">HttpConnection</A> connection,
101
<A HREF="../../../../org/apache/commons/httpclient/HttpRecoverableException.html">HttpRecoverableException</A> recoverableException,
102
int executionCount,
103
boolean requestSent)</CODE>
106
Determines if a method should be retried after an HttpRecoverableException
107
occurs during execution.</TD>
113
<!-- ============ FIELD DETAIL =========== -->
116
<!-- ========= CONSTRUCTOR DETAIL ======== -->
119
<!-- ============ METHOD DETAIL ========== -->
121
<A NAME="method_detail"><!-- --></A>
122
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
123
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
124
<TD COLSPAN=1><FONT SIZE="+2">
125
<B>Method Detail</B></FONT></TD>
129
<A NAME="retryMethod(org.apache.commons.httpclient.HttpMethod, org.apache.commons.httpclient.HttpConnection, org.apache.commons.httpclient.HttpRecoverableException, int, boolean)"><!-- --></A><H3>
132
public boolean <B>retryMethod</B>(<A HREF="../../../../org/apache/commons/httpclient/HttpMethod.html">HttpMethod</A> method,
133
<A HREF="../../../../org/apache/commons/httpclient/HttpConnection.html">HttpConnection</A> connection,
134
<A HREF="../../../../org/apache/commons/httpclient/HttpRecoverableException.html">HttpRecoverableException</A> recoverableException,
135
int executionCount,
136
boolean requestSent)</PRE>
138
<DD>Determines if a method should be retried after an HttpRecoverableException
139
occurs during execution.<DD><DL>
140
<DT><B>Parameters:</B><DD><CODE>method</CODE> - the method being executed<DD><CODE>connection</CODE> - the connection the method is using<DD><CODE>recoverableException</CODE> - the exception that occurred<DD><CODE>executionCount</CODE> - the number of times this method has been
141
unsuccessfully executed<DD><CODE>requestSent</CODE> - a flag indicating if the request has been fully sent or not<DT><B>Returns:</B><DD><code>true</code> if the method should be retried, <code>false</code>
145
<!-- ========= END OF CLASS DATA ========= -->
148
<!-- ========== START OF NAVBAR ========== -->
149
<A NAME="navbar_bottom"><!-- --></A>
150
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
152
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
153
<A NAME="navbar_bottom_firstrow"><!-- --></A>
154
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
155
<TR ALIGN="center" VALIGN="top">
156
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
157
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
158
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
159
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/MethodRetryHandler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
160
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
161
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
162
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
163
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
167
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
173
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
174
<A HREF="../../../../org/apache/commons/httpclient/HttpUrlMethod.html"><B>PREV CLASS</B></A>
175
<A HREF="../../../../org/apache/commons/httpclient/ResponseConsumedWatcher.html"><B>NEXT CLASS</B></A></FONT></TD>
176
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
177
<A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
178
<A HREF="MethodRetryHandler.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
181
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
182
SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
183
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
184
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
187
<!-- =========== END OF NAVBAR =========== -->
190
Copyright © 2001-2004 Apache Software Foundation. All Rights Reserved.