Class LocalTempAttachmentsProvider.FileItemImpl
java.lang.Object
com.webmethods.caf.faces.data.attachments.LocalTempAttachmentsProvider.FileItemImpl
- All Implemented Interfaces:
org.apache.commons.fileupload.FileItem
,org.apache.commons.fileupload.FileItemHeadersSupport
- Enclosing class:
- LocalTempAttachmentsProvider
public static class LocalTempAttachmentsProvider.FileItemImpl
extends Object
implements org.apache.commons.fileupload.FileItem
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
Not Implemented.byte[]
get()
Not Implemented.protected URLConnection
Returns the ContentType returned by the URL connection.Not Implemented.org.apache.commons.fileupload.FileItemHeaders
Not Implemented.Returns the InputStream returned by the URL connection.getName()
Returns the last segment of the URL.Not Implemented.long
getSize()
Returns the ContentLength returned by the URL connection.Not Implemented.Not Implemented.boolean
Not Implemented.boolean
Not Implemented.void
setFieldName
(String arg0) Not Implemented.void
setFormField
(boolean arg0) Not Implemented.void
setHeaders
(org.apache.commons.fileupload.FileItemHeaders headers) Not Implemented.void
Not Implemented.
-
Field Details
-
fileUrl
-
connection
-
-
Constructor Details
-
FileItemImpl
FileItem for a local file.- Parameters:
localFile
- the local file to use- Throws:
MalformedURLException
-
-
Method Details
-
getConnection
-
getName
Returns the last segment of the URL.- Specified by:
getName
in interfaceorg.apache.commons.fileupload.FileItem
- See Also:
-
FileItem.getName()
-
getContentType
Returns the ContentType returned by the URL connection.- Specified by:
getContentType
in interfaceorg.apache.commons.fileupload.FileItem
- See Also:
-
FileItem.getContentType()
URLConnection.getContentType()
-
getSize
public long getSize()Returns the ContentLength returned by the URL connection.- Specified by:
getSize
in interfaceorg.apache.commons.fileupload.FileItem
- See Also:
-
FileItem.getSize()
URLConnection.getContentLength()
-
getInputStream
Returns the InputStream returned by the URL connection.- Specified by:
getInputStream
in interfaceorg.apache.commons.fileupload.FileItem
- Throws:
IOException
- See Also:
-
FileItem.getInputStream()
-
delete
public void delete()Not Implemented. Throws UnsupportedOperationException if called.- Specified by:
delete
in interfaceorg.apache.commons.fileupload.FileItem
-
get
public byte[] get()Not Implemented. Throws UnsupportedOperationException if called.- Specified by:
get
in interfaceorg.apache.commons.fileupload.FileItem
-
getFieldName
Not Implemented. Throws UnsupportedOperationException if called.- Specified by:
getFieldName
in interfaceorg.apache.commons.fileupload.FileItem
-
getOutputStream
Not Implemented. Throws UnsupportedOperationException if called.- Specified by:
getOutputStream
in interfaceorg.apache.commons.fileupload.FileItem
- Throws:
IOException
-
getString
Not Implemented. Throws UnsupportedOperationException if called.- Specified by:
getString
in interfaceorg.apache.commons.fileupload.FileItem
-
getString
Not Implemented. Throws UnsupportedOperationException if called.- Specified by:
getString
in interfaceorg.apache.commons.fileupload.FileItem
- Throws:
UnsupportedEncodingException
-
isFormField
public boolean isFormField()Not Implemented. Throws UnsupportedOperationException if called.- Specified by:
isFormField
in interfaceorg.apache.commons.fileupload.FileItem
-
isInMemory
public boolean isInMemory()Not Implemented. Throws UnsupportedOperationException if called.- Specified by:
isInMemory
in interfaceorg.apache.commons.fileupload.FileItem
-
setFieldName
Not Implemented. Throws UnsupportedOperationException if called.- Specified by:
setFieldName
in interfaceorg.apache.commons.fileupload.FileItem
-
setFormField
public void setFormField(boolean arg0) Not Implemented. Throws UnsupportedOperationException if called.- Specified by:
setFormField
in interfaceorg.apache.commons.fileupload.FileItem
-
write
Not Implemented. Throws UnsupportedOperationException if called.- Specified by:
write
in interfaceorg.apache.commons.fileupload.FileItem
- Throws:
Exception
-
getHeaders
public org.apache.commons.fileupload.FileItemHeaders getHeaders()Not Implemented. Throws UnsupportedOperationException if called.- Specified by:
getHeaders
in interfaceorg.apache.commons.fileupload.FileItemHeadersSupport
-
setHeaders
public void setHeaders(org.apache.commons.fileupload.FileItemHeaders headers) Not Implemented. Throws UnsupportedOperationException if called.- Specified by:
setHeaders
in interfaceorg.apache.commons.fileupload.FileItemHeadersSupport
-