HttpContentTooLargeException xref

View Javadoc

    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  }