|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ados.hestia.parser.rnbm.exchange.Container com.ados.hestia.parser.rnbm.exchange.PayloadContainer
public class PayloadContainer
Exchange RJO object with attachement beetween Hestia and EIS.
Field Summary | |
---|---|
static int |
CONTAINER_TYPE_PAYLOAD
|
protected Attachment[] |
m_attachments
|
protected ServiceContent |
m_serviceContent
|
Fields inherited from class com.ados.hestia.parser.rnbm.exchange.Container |
---|
m_date, m_eis, m_fifoIndex, m_logTraceID, m_partner, m_pipID, m_pipInstanceID, m_version |
Constructor Summary | |
---|---|
PayloadContainer(Date date,
PayloadContainer pc,
ServiceContent serviceContent,
Attachment[] attachments)
Create as response for provided container. |
|
PayloadContainer(Date date,
String eis,
String partner,
String pipInstanceID,
ServiceContent serviceContent,
Attachment[] attachments)
Direct constructor. |
Method Summary | |
---|---|
void |
addAttachment(Attachment attachment)
Add attachment. |
void |
deleteAttachment(Attachment attachment)
Remove attachment from payload. |
Attachment |
getAttachment(int index)
Returns specific attachment or null if index is invalid. |
Attachment |
getAttachment(String fileName)
Seek and return attachment by it's file name. |
int |
getAttachmentCount()
Returns attachments count. |
Attachment[] |
getAttachments()
Returns array of attachments. |
ServiceContent |
getServiceContent()
Returns service content. |
int |
getType()
Indicate type of container. |
String |
toString()
|
Methods inherited from class com.ados.hestia.parser.rnbm.exchange.Container |
---|
getDate, getEIS, getFIFOIndex, getLogTraceID, getPartner, getPIPID, getPipInstanceID, getVersion, setFIFOIndex, setLogTraceID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int CONTAINER_TYPE_PAYLOAD
protected ServiceContent m_serviceContent
protected Attachment[] m_attachments
Constructor Detail |
---|
public PayloadContainer(Date date, String eis, String partner, String pipInstanceID, ServiceContent serviceContent, Attachment[] attachments)
date
- - date of creation.eis
- - eis identifier.partner
- - partner identifier.pipInstanceID
- corresponded instance of PIP.serviceContent
- ServiceContent to keep.attachments
- array of attached files. Can be null.public PayloadContainer(Date date, PayloadContainer pc, ServiceContent serviceContent, Attachment[] attachments)
date
- - date of creation.pc
- - original request container.serviceContent
- - ServiceContent to keep.attachments
- - array of attached files.Method Detail |
---|
public int getType()
getType
in class Container
public ServiceContent getServiceContent()
public Attachment[] getAttachments()
public int getAttachmentCount()
public Attachment getAttachment(int index)
index
- position of attachment
public Attachment getAttachment(String fileName)
fileName
- name of file to seek
public void addAttachment(Attachment attachment)
attachment
- attachment to addpublic void deleteAttachment(Attachment attachment)
attachment
- attachment to removepublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |