| |
|
| java.lang.Object org.apache.cocoon.servlet.multipart.Part org.apache.cocoon.servlet.multipart.RejectedPart
RejectedPart | public class RejectedPart extends Part (Code) | | An upload part that was rejected because request length exceeded the maximum upload size.
version: $Id: RejectedPart.java 433543 2006-08-22 06:22:54Z crossley $ since: 2.1.8 |
Constructor Summary | |
public | RejectedPart(Map headers, int partSize, int contentLength, int maxContentLength) |
contentLength | public int contentLength(Code) | | |
maxContentLength | public int maxContentLength(Code) | | |
RejectedPart | public RejectedPart(Map headers, int partSize, int contentLength, int maxContentLength)(Code) | | |
dispose | public void dispose()(Code) | | |
getContentLength | public int getContentLength()(Code) | | Get the content length of the request that cause this part to be rejected.
the content length in bytes |
getMaxContentLength | public int getMaxContentLength()(Code) | | Get the maximum allowed upload size. Not that this applies to the full request content length,
including multipart boundaries and other form data values.
This means that an upload part can be rejected although it's individual size is (a bit) smaller
than the maximum size. It is therefore advisable to use
RejectedPart.getContentLength() to build
error messages rather than
RejectedPart.getSize() .
the maximum content length in bytes |
getSize | public int getSize()(Code) | | Get the size of this part.
the size in bytes |
isRejected | public boolean isRejected()(Code) | | Always return true
|
Fields inherited from org.apache.cocoon.servlet.multipart.Part | protected Map headers(Code)(Java Doc)
|
|
|
|