ch.epfl.lsr.apex
Class APEX

java.lang.Object
  extended byjava.lang.Thread
      extended bych.epfl.lsr.apex.APEX
All Implemented Interfaces:
Runnable

public abstract class APEX
extends Thread

The APEX defines the syntax of the Application Exchange (APEX) protocol RFC3340 and internal constant field. APEX is always called in a static way to access its constant fields.

Author:
Marc Stoecklin

Field Summary
static String ALL
          APEX syntax: all (value of targetHop attribute)
static String ATTACH
          APEX syntax: attach (element)
static String BIND
          APEX syntax: bind (element)
static String CID
          APEX syntax: cid: (value part of content attribute)
static String CODE
          APEX syntax: code (attribute of reply or error element)
static String CONTENT
          APEX syntax: content (attribute of data element)
static String CONTENTID
          APEX syntax: #Content (value of content attribute)
static String DATA
          APEX syntax: data (element)
static String DATACONTENT
          APEX syntax: data-content (element)
static String ENDPOINT
          APEX syntax: endpoint (attribute)
static String ERROR
          APEX syntax: error (element)
static String EXTERNAL
          APEX syntax: external (attribute of option element)
static String FALSE
          APEX syntax: false (value of mustUnderstand attribute)
static String FINAL
          APEX syntax: final (value of targetHop attribute)
static String IDENTITY
          APEX syntax: identity (attribute)
static String INTERNAL
          APEX syntax: internal (attribute of option element)
static String LOCALIZE
          APEX syntax: localize (attribute of option element)
static String LOCALIZE_IDEFAULT
          APEX syntax: i-default (value of localize attribute)
static String MUSTUNDERSTAND
          APEX syntax: mustUnderstand (attribute of option element)
static String NAME
          APEX syntax: Name (attribute of data-content element)
static int NOTIFICATION_ATTACH
          Internal notification on an attachment.
static int NOTIFICATION_BIND
          Internal notification on an binding of an other relay.
static int NOTIFICATION_BOUND
          Internal notification on an binding of this relay.
static int NOTIFICATION_INIT
          Internal notification on initialization.
static int NOTIFICATION_MESSAGE_DISCARDED
          Internal notification on a failure in sending a data message.
static int NOTIFICATION_MESSAGE_IN
          Internal notification on a new incoming message.
static int NOTIFICATION_MESSAGE_SENT
          Internal notification on a success in sending a data message.
static int NOTIFICATION_REMOVEATTACHMENT
          Internal notification on an endnding of an attachment due to a disconnection.
static int NOTIFICATION_TERMINATE
          Internal notification on an termination.
static String OK
          APEX syntax: ok (element)
static String OPTION
          APEX syntax: option (element)
static String ORIGINATOR
          APEX syntax: originator (element)
static String RECIPIENT
          APEX syntax: recipient (element)
static String RELAY
          APEX syntax: relay (attribute of attach element)
static String REPLY
          APEX syntax: reply (element)
static int STATUS_ACTION_ABORDED
          APEX three-digit reply code: 451
static int STATUS_ACTION_NOT_AUTHORIZED
          APEX three-digit reply code: 537
static int STATUS_ACTION_NOT_TAKEN
          APEX three-digit reply code: 450
static int STATUS_AUTHENTICATION_FAILURE
          APEX three-digit reply code: 535
static int STATUS_AUTHENTICATION_MECHANISM_INSUFFICENT
          APEX three-digit reply code: 534
static int STATUS_AUTHENTICATION_REQUIRED
          APEX three-digit reply code: 530
static int STATUS_AUTHENTICATION_REQUIRES_ENCRYPTION
          APEX three-digit reply code: 538
static int STATUS_GENERAL_SYNTAX_ERROR
          APEX three-digit reply code: 500
static int STATUS_PARAMETER_INVALID
          APEX three-digit reply code: 553
static int STATUS_PARAMETER_NOT_IMPLEMENTED
          APEX three-digit reply code: 504
static int STATUS_REQUESTED_ACTION_NOT_TAKEN
          APEX three-digit reply code: 550
static int STATUS_SERVICE_NOT_AVAILABLE
          APEX three-digit reply code: 421
static int STATUS_SYNTAX_PARAMETER_ERROR
          APEX three-digit reply code: 501
static int STATUS_TEMPORARY_AUTHENTICATION_FAILURE
          APEX three-digit reply code: 454
static int STATUS_TRANSACTION_FAILED
          APEX three-digit reply code: 554
static int STATUS_TRANSACTION_IN_PROGRESS
          APEX three-digit reply code: 555
static int STATUS_TRANSACTION_SUCCESSFUL
          APEX three-digit reply code: 250
static String TARGETHOP
          APEX syntax: targetHop (attribute of option element)
static String TERMINATE
          APEX syntax: terminate (element)
static String THIS
          APEX syntax: this (value of targetHop attribute)
static String TRANSID
          APEX syntax: transID (attribute of bind element)
static String TRUE
          APEX syntax: true (value of mustUnderstand attribute)
static String XMLLANG
          APEX syntax: xml:lang (attribute of option element)
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
APEX()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ENDPOINT

public static final String ENDPOINT
APEX syntax: endpoint (attribute)

See Also:
Constant Field Values

RELAY

public static final String RELAY
APEX syntax: relay (attribute of attach element)

See Also:
Constant Field Values

TRANSID

public static final String TRANSID
APEX syntax: transID (attribute of bind element)

See Also:
Constant Field Values

DATA

public static final String DATA
APEX syntax: data (element)

See Also:
Constant Field Values

ATTACH

public static final String ATTACH
APEX syntax: attach (element)

See Also:
Constant Field Values

BIND

public static final String BIND
APEX syntax: bind (element)

See Also:
Constant Field Values

TERMINATE

public static final String TERMINATE
APEX syntax: terminate (element)

See Also:
Constant Field Values

CONTENT

public static final String CONTENT
APEX syntax: content (attribute of data element)

See Also:
Constant Field Values

CONTENTID

public static final String CONTENTID
APEX syntax: #Content (value of content attribute)

See Also:
Constant Field Values

ORIGINATOR

public static final String ORIGINATOR
APEX syntax: originator (element)

See Also:
Constant Field Values

RECIPIENT

public static final String RECIPIENT
APEX syntax: recipient (element)

See Also:
Constant Field Values

IDENTITY

public static final String IDENTITY
APEX syntax: identity (attribute)

See Also:
Constant Field Values

OPTION

public static final String OPTION
APEX syntax: option (element)

See Also:
Constant Field Values

INTERNAL

public static final String INTERNAL
APEX syntax: internal (attribute of option element)

See Also:
Constant Field Values

EXTERNAL

public static final String EXTERNAL
APEX syntax: external (attribute of option element)

See Also:
Constant Field Values

TARGETHOP

public static final String TARGETHOP
APEX syntax: targetHop (attribute of option element)

See Also:
Constant Field Values

MUSTUNDERSTAND

public static final String MUSTUNDERSTAND
APEX syntax: mustUnderstand (attribute of option element)

See Also:
Constant Field Values

LOCALIZE

public static final String LOCALIZE
APEX syntax: localize (attribute of option element)

See Also:
Constant Field Values

DATACONTENT

public static final String DATACONTENT
APEX syntax: data-content (element)

See Also:
Constant Field Values

NAME

public static final String NAME
APEX syntax: Name (attribute of data-content element)

See Also:
Constant Field Values

CODE

public static final String CODE
APEX syntax: code (attribute of reply or error element)

See Also:
Constant Field Values

XMLLANG

public static final String XMLLANG
APEX syntax: xml:lang (attribute of option element)

See Also:
Constant Field Values

THIS

public static final String THIS
APEX syntax: this (value of targetHop attribute)

See Also:
Constant Field Values

FINAL

public static final String FINAL
APEX syntax: final (value of targetHop attribute)

See Also:
Constant Field Values

ALL

public static final String ALL
APEX syntax: all (value of targetHop attribute)

See Also:
Constant Field Values

TRUE

public static final String TRUE
APEX syntax: true (value of mustUnderstand attribute)

See Also:
Constant Field Values

FALSE

public static final String FALSE
APEX syntax: false (value of mustUnderstand attribute)

See Also:
Constant Field Values

LOCALIZE_IDEFAULT

public static final String LOCALIZE_IDEFAULT
APEX syntax: i-default (value of localize attribute)

See Also:
Constant Field Values

CID

public static final String CID
APEX syntax: cid: (value part of content attribute)

See Also:
Constant Field Values

OK

public static final String OK
APEX syntax: ok (element)

See Also:
Constant Field Values

ERROR

public static final String ERROR
APEX syntax: error (element)

See Also:
Constant Field Values

REPLY

public static final String REPLY
APEX syntax: reply (element)

See Also:
Constant Field Values

STATUS_TRANSACTION_SUCCESSFUL

public static final int STATUS_TRANSACTION_SUCCESSFUL
APEX three-digit reply code: 250

See Also:
Constant Field Values

STATUS_SERVICE_NOT_AVAILABLE

public static final int STATUS_SERVICE_NOT_AVAILABLE
APEX three-digit reply code: 421

See Also:
Constant Field Values

STATUS_ACTION_NOT_TAKEN

public static final int STATUS_ACTION_NOT_TAKEN
APEX three-digit reply code: 450

See Also:
Constant Field Values

STATUS_ACTION_ABORDED

public static final int STATUS_ACTION_ABORDED
APEX three-digit reply code: 451

See Also:
Constant Field Values

STATUS_TEMPORARY_AUTHENTICATION_FAILURE

public static final int STATUS_TEMPORARY_AUTHENTICATION_FAILURE
APEX three-digit reply code: 454

See Also:
Constant Field Values

STATUS_GENERAL_SYNTAX_ERROR

public static final int STATUS_GENERAL_SYNTAX_ERROR
APEX three-digit reply code: 500

See Also:
Constant Field Values

STATUS_SYNTAX_PARAMETER_ERROR

public static final int STATUS_SYNTAX_PARAMETER_ERROR
APEX three-digit reply code: 501

See Also:
Constant Field Values

STATUS_PARAMETER_NOT_IMPLEMENTED

public static final int STATUS_PARAMETER_NOT_IMPLEMENTED
APEX three-digit reply code: 504

See Also:
Constant Field Values

STATUS_AUTHENTICATION_REQUIRED

public static final int STATUS_AUTHENTICATION_REQUIRED
APEX three-digit reply code: 530

See Also:
Constant Field Values

STATUS_AUTHENTICATION_MECHANISM_INSUFFICENT

public static final int STATUS_AUTHENTICATION_MECHANISM_INSUFFICENT
APEX three-digit reply code: 534

See Also:
Constant Field Values

STATUS_AUTHENTICATION_FAILURE

public static final int STATUS_AUTHENTICATION_FAILURE
APEX three-digit reply code: 535

See Also:
Constant Field Values

STATUS_ACTION_NOT_AUTHORIZED

public static final int STATUS_ACTION_NOT_AUTHORIZED
APEX three-digit reply code: 537

See Also:
Constant Field Values

STATUS_AUTHENTICATION_REQUIRES_ENCRYPTION

public static final int STATUS_AUTHENTICATION_REQUIRES_ENCRYPTION
APEX three-digit reply code: 538

See Also:
Constant Field Values

STATUS_REQUESTED_ACTION_NOT_TAKEN

public static final int STATUS_REQUESTED_ACTION_NOT_TAKEN
APEX three-digit reply code: 550

See Also:
Constant Field Values

STATUS_PARAMETER_INVALID

public static final int STATUS_PARAMETER_INVALID
APEX three-digit reply code: 553

See Also:
Constant Field Values

STATUS_TRANSACTION_FAILED

public static final int STATUS_TRANSACTION_FAILED
APEX three-digit reply code: 554

See Also:
Constant Field Values

STATUS_TRANSACTION_IN_PROGRESS

public static final int STATUS_TRANSACTION_IN_PROGRESS
APEX three-digit reply code: 555

See Also:
Constant Field Values

NOTIFICATION_INIT

public static final int NOTIFICATION_INIT

Internal notification on initialization.

Object is a String which contains an information
(e.g. "edge-connection: listening on port 913", or "could not initiate apex-edge connection listener on port 912: ERRMSG")

See Also:
APEXProcess.notification(int, Object), Constant Field Values

NOTIFICATION_ATTACH

public static final int NOTIFICATION_ATTACH

Internal notification on an attachment.

Object is an APEXEndpointAddress.

See Also:
APEXProcess.notification(int, Object), Constant Field Values

NOTIFICATION_REMOVEATTACHMENT

public static final int NOTIFICATION_REMOVEATTACHMENT

Internal notification on an endnding of an attachment due to a disconnection.

Object is an APEXEndpointAddress.

See Also:
APEXProcess.notification(int, Object), Constant Field Values

NOTIFICATION_BIND

public static final int NOTIFICATION_BIND

Internal notification on an binding of an other relay.

Object is a String containing the domain name of the binding relay.

See Also:
APEXProcess.notification(int, Object), Constant Field Values

NOTIFICATION_BOUND

public static final int NOTIFICATION_BOUND

Internal notification on an binding of this relay.

Object is a String containing the domain name of the other relay.

See Also:
APEXProcess.notification(int, Object), Constant Field Values

NOTIFICATION_TERMINATE

public static final int NOTIFICATION_TERMINATE

Internal notification on an termination.

Object is a String containing the transaction identifier
(e.g. "transaction 4")

See Also:
APEXProcess.notification(int, Object), Constant Field Values

NOTIFICATION_MESSAGE_IN

public static final int NOTIFICATION_MESSAGE_IN

Internal notification on a new incoming message.

Object is the incoming APEXDataMessage.

See Also:
APEXProcess.notification(int, Object), Constant Field Values

NOTIFICATION_MESSAGE_SENT

public static final int NOTIFICATION_MESSAGE_SENT

Internal notification on a success in sending a data message.

Object is the sent APEXDataMessage.

See Also:
APEXProcess.notification(int, Object), Constant Field Values

NOTIFICATION_MESSAGE_DISCARDED

public static final int NOTIFICATION_MESSAGE_DISCARDED

Internal notification on a failure in sending a data message.

Object is the discarded APEXDataMessage.

See Also:
APEXProcess.notification(int, Object), Constant Field Values
Constructor Detail

APEX

public APEX()