~testplan-team/testplan/source-collection

« back to all changes in this revision

Viewing changes to commons-httpclient-3.1/src/java/org/apache/commons/httpclient/HttpContentTooLargeException.java

  • Committer: edA-qa mort-ora-y
  • Date: 2009-01-28 15:36:51 UTC
  • Revision ID: eda-qa@disemia.com-20090128153651-u4uzd035zyjea16j
adding httpclient

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.apache.commons.httpclient;
 
2
 
 
3
/**
 
4
 * Signals that the response content was larger than anticipated. 
 
5
 * 
 
6
 * @author Ortwin Gl�ck
 
7
 */
 
8
public class HttpContentTooLargeException extends HttpException {
 
9
    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
}