com.liferay.faces.bridge.model
Class UploadedFileImpl

java.lang.Object
  extended by com.liferay.faces.bridge.model.UploadedFileImpl
All Implemented Interfaces:
UploadedFile, Serializable
Direct Known Subclasses:
UploadedFileErrorImpl

public class UploadedFileImpl
extends Object
implements Serializable, UploadedFile

Author:
Neil Griffin
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.liferay.faces.bridge.model.UploadedFile
UploadedFile.Status
 
Constructor Summary
UploadedFileImpl(String absolutePath, Map<String,Object> attributeMap, String charSet, String contentType, Map<String,List<String>> headersMap, String id, String message, String name, long size, UploadedFile.Status status)
           
 
Method Summary
 void delete()
           
 String getAbsolutePath()
           
 Map<String,Object> getAttributes()
           
 byte[] getBytes()
           
 String getCharSet()
           
 String getContentType()
           
 String getHeader(String name)
           
 Collection<String> getHeaderNames()
           
 Collection<String> getHeaders(String name)
           
 String getId()
           
 InputStream getInputStream()
           
 String getMessage()
           
 String getName()
           
 long getSize()
           
 UploadedFile.Status getStatus()
           
 String toString()
           
 void write(String fileName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UploadedFileImpl

public UploadedFileImpl(String absolutePath,
                        Map<String,Object> attributeMap,
                        String charSet,
                        String contentType,
                        Map<String,List<String>> headersMap,
                        String id,
                        String message,
                        String name,
                        long size,
                        UploadedFile.Status status)
Method Detail

delete

public void delete()
            throws IOException
Specified by:
delete in interface UploadedFile
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

write

public void write(String fileName)
           throws IOException
Specified by:
write in interface UploadedFile
Throws:
IOException

getAbsolutePath

public String getAbsolutePath()
Specified by:
getAbsolutePath in interface UploadedFile

getAttributes

public Map<String,Object> getAttributes()
Specified by:
getAttributes in interface UploadedFile

getBytes

public byte[] getBytes()
                throws IOException
Specified by:
getBytes in interface UploadedFile
Throws:
IOException

getCharSet

public String getCharSet()
Specified by:
getCharSet in interface UploadedFile

getContentType

public String getContentType()
Specified by:
getContentType in interface UploadedFile

getHeader

public String getHeader(String name)
Specified by:
getHeader in interface UploadedFile

getHeaderNames

public Collection<String> getHeaderNames()
Specified by:
getHeaderNames in interface UploadedFile

getHeaders

public Collection<String> getHeaders(String name)
Specified by:
getHeaders in interface UploadedFile

getId

public String getId()
Specified by:
getId in interface UploadedFile

getInputStream

public InputStream getInputStream()
                           throws IOException
Specified by:
getInputStream in interface UploadedFile
Throws:
IOException

getMessage

public String getMessage()
Specified by:
getMessage in interface UploadedFile

getName

public String getName()
Specified by:
getName in interface UploadedFile

getSize

public long getSize()
Specified by:
getSize in interface UploadedFile

getStatus

public UploadedFile.Status getStatus()
Specified by:
getStatus in interface UploadedFile


Copyright © 2014 Liferay, Inc.. All Rights Reserved.