KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > httpclient > HttpContentTooLargeException


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 JavaDoc 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 }
23
Popular Tags