Package org.hcjf.io.net.http
Class HttpRequest.AttachFile
- java.lang.Object
-
- org.hcjf.io.net.http.HttpRequest.AttachFile
-
- Enclosing class:
- HttpRequest
public static class HttpRequest.AttachFile extends java.lang.ObjectThis class represents a file attached into the request.
-
-
Constructor Summary
Constructors Constructor Description AttachFile(java.lang.String name, java.lang.String fileName, MimeType mimeType, byte[] file)
-
Method Summary
Modifier and Type Method Description byte[]getFile()Returns the content of the file.java.lang.StringgetFileName()Returns the name of the file.MimeTypegetMimeType()java.lang.StringgetName()Returns the name of the block of data.
-
-
-
Constructor Detail
-
AttachFile
public AttachFile(java.lang.String name, java.lang.String fileName, MimeType mimeType, byte[] file)
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of the block of data.- Returns:
- Name of the block of data.
-
getFileName
public java.lang.String getFileName()
Returns the name of the file.- Returns:
- File name.
-
getMimeType
public MimeType getMimeType()
-
getFile
public byte[] getFile()
Returns the content of the file.- Returns:
- File content.
-
-