public class PartAttributes extends BaseAttributes
MultiPartPayload.| Constructor and Description |
|---|
PartAttributes(String name)
Builds a new instance of this attributes with the given name.
|
PartAttributes(String name,
String fileName,
long size,
Map<String,LinkedList<String>> headers)
Builds a new instance of this attributes with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getFileName() |
Map<String,LinkedList<String>> |
getHeaders()
TODO Replace with ParameterMap
|
String |
getName() |
long |
getSize() |
int |
hashCode() |
toStringpublic PartAttributes(String name, String fileName, long size, Map<String,LinkedList<String>> headers)
name - The name of the part.fileName - The name of the file of the attachment, or null if it wasn't provided.size - The size in bytes of the attachment, or -1 if unknown or undetermined.headers - The headers relative to the attachment part.public PartAttributes(String name)
name - The name of the part.public String getName()
public String getFileName()
null if it wasn't provided.public long getSize()
public Map<String,LinkedList<String>> getHeaders()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.