org.ikasan.connector.basefiletransfer.net
Class BaseFileTransferMappedRecord
java.lang.Object
org.ikasan.connector.basefiletransfer.net.BaseFileTransferMappedRecord
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map, javax.resource.cci.MappedRecord, javax.resource.cci.Record
public class BaseFileTransferMappedRecord
- extends java.lang.Object
- implements javax.resource.cci.MappedRecord
This class holds the file, its checksum and some meta data
- Author:
- Ikasan Development Team
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.resource.cci.Record |
equals, hashCode |
| Methods inherited from interface java.util.Map |
equals, hashCode |
BaseFileTransferMappedRecord
public BaseFileTransferMappedRecord()
- Default constructor
BaseFileTransferMappedRecord
public BaseFileTransferMappedRecord(java.lang.String recordName,
java.lang.String recordDescription)
- Parameters:
recordName - recordDescription -
BaseFileTransferMappedRecord
public BaseFileTransferMappedRecord(java.lang.String name,
long size,
java.lang.String checksum,
java.lang.String checksumAlgorithmName,
java.util.Date createdDayTime,
byte[] payload)
- Complete constructor
- Parameters:
name - size - checksum - checksumAlgorithmName - createdDayTime - payload -
getChecksum
public java.lang.String getChecksum()
- Returns:
- the checksum
setChecksum
public void setChecksum(java.lang.String checksum,
java.lang.String algorithmName)
- Parameters:
checksum - the checksum to setalgorithmName -
getChecksumAlgorithm
public java.lang.String getChecksumAlgorithm()
- Returns:
- checksum algorithm
getCreatedDayTime
public java.util.Date getCreatedDayTime()
- Returns:
- the createdDayTime
setCreatedDayTime
public void setCreatedDayTime(java.util.Date createdDayTime)
- Parameters:
createdDayTime - the createdDayTime to set
getMappedRecord
public java.util.HashMap<java.lang.String,java.lang.Object> getMappedRecord()
- Returns:
- the mappedRecord
setMappedRecord
public void setMappedRecord(java.util.HashMap<java.lang.String,java.lang.Object> mappedRecord)
- Parameters:
mappedRecord - the mappedRecord to set
getName
public java.lang.String getName()
- Returns:
- the name
setName
public void setName(java.lang.String name)
- Parameters:
name - the name to set
getContent
public byte[] getContent()
- Returns:
- the payload
setContent
public void setContent(byte[] content)
- Parameters:
content - the payload to set
getSize
public long getSize()
- Returns:
- the size
setSize
public void setSize(long size)
- Parameters:
size - the size to set
clear
public void clear()
- Specified by:
clear in interface java.util.Map
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue in interface java.util.Map
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> entrySet()
- Specified by:
entrySet in interface java.util.Map
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface java.util.Map
keySet
public java.util.Set<java.lang.String> keySet()
- Specified by:
keySet in interface java.util.Map
remove
public java.lang.Object remove(java.lang.String key)
- Remove the key
- Parameters:
key -
- Returns:
- The previous value or null
remove
public java.lang.Object remove(java.lang.Object key)
- Specified by:
remove in interface java.util.Map
size
public int size()
- Specified by:
size in interface java.util.Map
values
public java.util.Collection<java.lang.Object> values()
- Specified by:
values in interface java.util.Map
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey in interface java.util.Map
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
get in interface java.util.Map
put
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
- Specified by:
put in interface java.util.Map
putAll
public void putAll(java.util.Map map)
- Specified by:
putAll in interface java.util.Map
getRecordName
public java.lang.String getRecordName()
- Specified by:
getRecordName in interface javax.resource.cci.Record
getRecordShortDescription
public java.lang.String getRecordShortDescription()
- Specified by:
getRecordShortDescription in interface javax.resource.cci.Record
setRecordName
public void setRecordName(java.lang.String recordName)
- Specified by:
setRecordName in interface javax.resource.cci.Record
setRecordShortDescription
public void setRecordShortDescription(java.lang.String recordDescription)
- Specified by:
setRecordShortDescription in interface javax.resource.cci.Record
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Specified by:
clone in interface javax.resource.cci.Record- Overrides:
clone in class java.lang.Object
- Throws:
java.lang.CloneNotSupportedException
Copyright © 2007-2010 Ikasan. All Rights Reserved.