ch.epfl.lsr.apex
Class APEXTerminateMessage

java.lang.Object
  extended bych.epfl.lsr.apex.APEXMessage
      extended bych.epfl.lsr.apex.APEXTerminateMessage
All Implemented Interfaces:
Cloneable

public class APEXTerminateMessage
extends APEXMessage

An APEXTerminateMessage is the message sent for terminate bindings and attachments, and defines its syntax as it is specified in the Application Exchange (APEX) Protocol RFC3340 DTD.

Author:
Marc Stoecklin
See Also:
APEXMessage

Field Summary
(package private)  int code
           
(package private)  String content
           
(package private)  int transID
           
(package private)  String xmlLang
           
 
Fields inherited from class ch.epfl.lsr.apex.APEXMessage
APPBEEPXML, ATTACH, BEEPXML, BIND, CONTENTTRANSFERENCODING, CONTENTTYPE, DATA, ENC_7BIT, ENC_8BIT, ENC_BASE64, ENC_BINARY, ENC_QUOTEDPRINTABLE, ENC_UUENCODE, ERROR, FILENAME, message, MIMECONTENT, MIMECONTENT_HASHKEY, OK, RELATED, START, START_HASHKEY, status, STRINGCONTENT, STRINGCONTENT_HASHKEY, TERMINATE, TYPE, XMLCONTENT, XMLCONTENT_HASHKEY
 
Constructor Summary
APEXTerminateMessage(int transID)
          Instantiates an APEXTerminateMessage for the specified arguments.
APEXTerminateMessage(int transID, int code)
          Instantiates an APEXTerminateMessage for the specified arguments.
APEXTerminateMessage(int transID, int code, String content)
          Instantiates an APEXTerminateMessage for the specified arguments.
APEXTerminateMessage(int transID, int code, String content, String xmlLang)
          Instantiates an APEXTerminateMessage for the specified arguments.
 
Method Summary
 int getCode()
          Returns the code attribute's value of this termination.
 String getContent()
          Returns the content of this termination.
 int getTransID()
          Returns the transaction identifier of this termination.
 String getXmlLang()
          Returns the xml:lang attribute's value of this termination.
 String getXMLMessage()
          Returns an XML message of this operation.
 void setCode(int code)
          Sets the (applicational) code attribute's value.
 void setContent(String content)
          Sets the XML content.
 void setXMLLang(String xmlLang)
          Sets the xml:lang attribute's value.
 
Methods inherited from class ch.epfl.lsr.apex.APEXMessage
apexMessageFactory, buildMimeBodyPart, getDataStream, getMessage, getMimeMessage, getMimeMultipart, getStatus, hashset2AddressTable, MimeBodyPartToString, setMessage, setStatus, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

transID

int transID

code

int code

content

String content

xmlLang

String xmlLang
Constructor Detail

APEXTerminateMessage

public APEXTerminateMessage(int transID)
Instantiates an APEXTerminateMessage for the specified arguments.

Parameters:
transID - The transaction identifier for this termination

APEXTerminateMessage

public APEXTerminateMessage(int transID,
                            int code)
Instantiates an APEXTerminateMessage for the specified arguments.

Parameters:
transID - The transaction identifier for this termination
code - The (applicational) code attribute's value, RFC3340, or 0 for none

APEXTerminateMessage

public APEXTerminateMessage(int transID,
                            int code,
                            String content)
Instantiates an APEXTerminateMessage for the specified arguments.

Parameters:
transID - The transaction identifier for this termination
code - The (applicational) code attribute's value, RFC3340, or 0 for none
content - The XML content or null for non

APEXTerminateMessage

public APEXTerminateMessage(int transID,
                            int code,
                            String content,
                            String xmlLang)
Instantiates an APEXTerminateMessage for the specified arguments.

Parameters:
transID - The transaction identifier for this termination
code - The (applicational) code attribute's value, RFC3340, or 0 for none
content - The XML content or null for non
xmlLang - The xml:lang attribute's value or null for non
Method Detail

getXMLMessage

public String getXMLMessage()
Description copied from class: APEXMessage
Returns an XML message of this operation.

Specified by:
getXMLMessage in class APEXMessage
Returns:
A XML message

setCode

public void setCode(int code)
Sets the (applicational) code attribute's value.

Parameters:
code - The (applicational) code attribute's value

setContent

public void setContent(String content)
Sets the XML content.

Parameters:
content - The XML String content

setXMLLang

public void setXMLLang(String xmlLang)
Sets the xml:lang attribute's value.

Parameters:
xmlLang - The xml:lang attribute's value

getTransID

public int getTransID()
Returns the transaction identifier of this termination.

Returns:
The transaction identifier

getCode

public int getCode()
Returns the code attribute's value of this termination.

Returns:
The code attribute's value

getXmlLang

public String getXmlLang()
Returns the xml:lang attribute's value of this termination.

Returns:
The xml:lang attribute's value

getContent

public String getContent()
Returns the content of this termination.

Returns:
The content