Class ExceptionThrowingOutputLengthObserver
java.lang.Object
com.opensymphony.module.sitemesh.scalability.outputlength.ExceptionThrowingOutputLengthObserver
- All Implemented Interfaces:
OutputLengthObserver
An implementation that throws
MaxOutputLengthExceeded exceptions-
Constructor Summary
ConstructorsConstructorDescriptionExceptionThrowingOutputLengthObserver(long maxOutputLength, int maximumOutputExceededHttpCode) -
Method Summary
-
Constructor Details
-
ExceptionThrowingOutputLengthObserver
public ExceptionThrowingOutputLengthObserver(long maxOutputLength, int maximumOutputExceededHttpCode)
-
-
Method Details
-
nBytes
public void nBytes(long n) Description copied from interface:OutputLengthObserver- Specified by:
nBytesin interfaceOutputLengthObserver- Parameters:
n- the number of bytes about to be written
-
nChars
public void nChars(long n) Description copied from interface:OutputLengthObserver- Specified by:
nCharsin interfaceOutputLengthObserver- Parameters:
n- the number of characters about to be written
-