Package overit.geocall.util
Class PartProxy
java.lang.Object
overit.geocall.util.PartProxy
- All Implemented Interfaces:
Part
Class that has the purpose of enclosing the
When a request is successfully processed, all files loaded and temporarily saved in the file system are removed causing the pointer to that file to be lost in subsequent requests. This proxy class modifies this behavior by making temporary files created and associated with previously uploaded files persistent
Part object, used by the Request to collect the uploaded file, and of defining
a proxy interface to change the default behavior of the request. When a request is successfully processed, all files loaded and temporarily saved in the file system are removed causing the pointer to that file to be lost in subsequent requests. This proxy class modifies this behavior by making temporary files created and associated with previously uploaded files persistent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()getHeaders(String name) getName()longgetSize()void
-
Constructor Details
-
PartProxy
-
-
Method Details
-
getInputStream
- Specified by:
getInputStreamin interfacePart- Throws:
IOException
-
getContentType
- Specified by:
getContentTypein interfacePart
-
getName
-
getSubmittedFileName
- Specified by:
getSubmittedFileNamein interfacePart
-
getSize
public long getSize() -
write
- Specified by:
writein interfacePart- Throws:
IOException
-
delete
- Specified by:
deletein interfacePart- Throws:
IOException
-
getHeader
-
getHeaders
- Specified by:
getHeadersin interfacePart
-
getHeaderNames
- Specified by:
getHeaderNamesin interfacePart
-