com.irisel.oms.olapi.beans
Class SvcContext

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<java.lang.String,java.lang.Object>
              extended by com.irisel.oms.olapi.beans.SvcContext
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

public class SvcContext
extends java.util.LinkedHashMap<java.lang.String,java.lang.Object>
implements java.io.Serializable

Author:
Jose Manuel Gomez Alvarez
See Also:
HashMap, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
static java.lang.String PARAM_ACTION_ITEM
           
static java.lang.String PARAM_CLSNAME
           
static java.lang.String PARAM_RETURN_CODE
           
static java.lang.String PARAM_RETURN_MESSAGE
           
static java.lang.String PARAM_SESSION
           
static java.lang.String PARAM_SVCNAME
           
static java.lang.String PARAM_USER
           
static int RC_ERROR
           
static int RC_SUCCESS
           
 
Constructor Summary
SvcContext()
           
SvcContext(java.lang.Object[] args)
           
 
Method Summary
static SvcContext deserial(byte[] context)
           
static SvcContext fromXMLBean(XMLBean b)
           
 java.lang.Object[] getArguments()
          Extract arguments as object array Arguments are identified because the entry key is an integer between 1 and 99 e.g.
static SvcContext map2context(java.util.Map<java.lang.String,java.io.Serializable> map)
           
 byte[] serialize()
           
 void setArguments(java.lang.Object[] args)
           
 XMLBean toXMLBean()
           
 
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, get
 
Methods inherited from class java.util.HashMap
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Field Detail

PARAM_ACTION_ITEM

public static final java.lang.String PARAM_ACTION_ITEM
See Also:
Constant Field Values

PARAM_USER

public static final java.lang.String PARAM_USER
See Also:
Constant Field Values

PARAM_RETURN_CODE

public static final java.lang.String PARAM_RETURN_CODE
See Also:
Constant Field Values

PARAM_RETURN_MESSAGE

public static final java.lang.String PARAM_RETURN_MESSAGE
See Also:
Constant Field Values

PARAM_SVCNAME

public static final java.lang.String PARAM_SVCNAME
See Also:
Constant Field Values

PARAM_CLSNAME

public static final java.lang.String PARAM_CLSNAME
See Also:
Constant Field Values

PARAM_SESSION

public static final java.lang.String PARAM_SESSION
See Also:
Constant Field Values

RC_SUCCESS

public static final int RC_SUCCESS
See Also:
Constant Field Values

RC_ERROR

public static final int RC_ERROR
See Also:
Constant Field Values
Constructor Detail

SvcContext

public SvcContext(java.lang.Object[] args)

SvcContext

public SvcContext()
Method Detail

map2context

public static SvcContext map2context(java.util.Map<java.lang.String,java.io.Serializable> map)

fromXMLBean

public static SvcContext fromXMLBean(XMLBean b)

toXMLBean

public XMLBean toXMLBean()

getArguments

public java.lang.Object[] getArguments()
Extract arguments as object array Arguments are identified because the entry key is an integer between 1 and 99 e.g. "0","1","2",...


setArguments

public void setArguments(java.lang.Object[] args)

deserial

public static SvcContext deserial(byte[] context)
                           throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException

serialize

public byte[] serialize()