01: package org.apache.commons.httpclient;
02:
03: /**
04: * Signals that the response content was larger than anticipated.
05: *
06: * @author Ortwin Glück
07: */
08: public class HttpContentTooLargeException extends HttpException {
09: private int maxlen;
10:
11: public HttpContentTooLargeException(String message, int maxlen) {
12: super (message);
13: this .maxlen = maxlen;
14: }
15:
16: /**
17: * @return the maximum anticipated content length in bytes.
18: */
19: public int getMaxLength() {
20: return maxlen;
21: }
22: }
|