Skip navigation links
org.safs.staf.service.var

Class AbstractSAFSVariableService

    • Field Detail

      • SVS_SERVICE_REQUEST_ARGS_MAX

        public int SVS_SERVICE_REQUEST_ARGS_MAX
      • SVS_SERVICE_INIT_ARGS_MAX

        public int SVS_SERVICE_INIT_ARGS_MAX
      • SVS_SERVICE_PROCESS_NAME

        public static final java.lang.String SVS_SERVICE_PROCESS_NAME
        See Also:
        Constant Field Values
      • SVS_SERVICE_REQUEST_SAFSMAPS

        public static final java.lang.String SVS_SERVICE_REQUEST_SAFSMAPS
        See Also:
        Constant Field Values
      • SVS_SERVICE_REQUEST_HANDLEID

        public static final java.lang.String SVS_SERVICE_REQUEST_HANDLEID
        See Also:
        Constant Field Values
      • SVS_SERVICE_REQUEST_COUNT

        public static final java.lang.String SVS_SERVICE_REQUEST_COUNT
        See Also:
        Constant Field Values
      • SVS_SERVICE_REQUEST_GET

        public static final java.lang.String SVS_SERVICE_REQUEST_GET
        See Also:
        Constant Field Values
      • SVS_SERVICE_REQUEST_SET

        public static final java.lang.String SVS_SERVICE_REQUEST_SET
        See Also:
        Constant Field Values
      • SVS_SERVICE_REQUEST_VALUE

        public static final java.lang.String SVS_SERVICE_REQUEST_VALUE
        See Also:
        Constant Field Values
      • SVS_SERVICE_REQUEST_LIST

        public static final java.lang.String SVS_SERVICE_REQUEST_LIST
        See Also:
        Constant Field Values
      • SVS_SERVICE_REQUEST_RESET

        public static final java.lang.String SVS_SERVICE_REQUEST_RESET
        See Also:
        Constant Field Values
      • SVS_SERVICE_REQUEST_RESOLVE

        public static final java.lang.String SVS_SERVICE_REQUEST_RESOLVE
        See Also:
        Constant Field Values
      • SVS_SERVICE_REQUEST_SEPARATOR

        public static final java.lang.String SVS_SERVICE_REQUEST_SEPARATOR
        See Also:
        Constant Field Values
      • SVS_SERVICE_REQUEST_NOEXPRESSIONS

        public static final java.lang.String SVS_SERVICE_REQUEST_NOEXPRESSIONS
        See Also:
        Constant Field Values
      • SVS_SERVICE_REQUEST_DELETE

        public static final java.lang.String SVS_SERVICE_REQUEST_DELETE
        See Also:
        Constant Field Values
      • SVS_SERVICE_REQUEST_HELP

        public static final java.lang.String SVS_SERVICE_REQUEST_HELP
        See Also:
        Constant Field Values
      • SVS_SERVICE_REQUEST_V2

        public static final java.lang.String SVS_SERVICE_REQUEST_V2
        See Also:
        Constant Field Values
      • SVS_SERVICE_PARM_MAP_VAR_LOOP

        public static final java.lang.String SVS_SERVICE_PARM_MAP_VAR_LOOP
        Used for SVS_SERVICE_REQUEST_GET
        Used internally to stop the loop between map service and variable service.
        "MAPVARLOOP" can have parameter, a delimited string, the items have been processed
        in map service. The delimiter is
        Example:
        MAPVARLOOP item1_SEP:item2_SEP:item3
        See Also:
        getValue(String, boolean, String), Constant Field Values
      • parser

        protected com.ibm.staf.service.STAFCommandParser parser
      • servicemaps

        protected java.lang.String servicemaps
      • servicename

        protected java.lang.String servicename
      • serviceparms

        protected java.lang.String serviceparms
      • service_maps_available

        protected boolean service_maps_available
      • empty

        protected static java.lang.String empty
      • c

        protected static java.lang.String c
      • s

        protected static java.lang.String s
      • r

        protected static java.lang.String r
      • eq

        protected static java.lang.String eq
      • q

        protected static java.lang.String q
      • dq

        protected static java.lang.String dq
      • tempresult

        protected com.ibm.staf.STAFResult tempresult
        Shared by various methods and actually causes thread-safety issues if not properly synchronized when multiple processes are using the active service! Carl Nagle 2009.06.04
    • Constructor Detail

      • AbstractSAFSVariableService

        public AbstractSAFSVariableService()
        Initialize the class, primarily, the parser used to parse service requests.
    • Method Detail

      • getHELPInfo

        protected java.lang.String getHELPInfo()
        our HELP text
      • doInit

        protected int doInit(HandleInterface client,
                             java.lang.String name,
                             java.lang.String params)
        Handle initializing this instance of the service for STAF
      • doAcceptRequest

        protected com.ibm.staf.STAFResult doAcceptRequest(java.lang.String request)
        Handle service request from STAF
      • deleteStoredVariable

        protected com.ibm.staf.STAFResult deleteStoredVariable(java.lang.String deleteCmd)
        Made to be overridden by subclasses, if any.
        Parameters:
        deleteCmd -
        Returns:
        STAFResult
      • getStoredValue

        protected com.ibm.staf.STAFResult getStoredValue(java.lang.String getCmd)
        Made to be overridden by subclasses, if any.
        Parameters:
        getCmd -
        Returns:
        STAFResult
      • setStoredValue

        protected com.ibm.staf.STAFResult setStoredValue(java.lang.String setCmd)
        Made to be overridden by subclasses, if any.
        Parameters:
        setCmd -
        Returns:
        STAFResult
      • stafGetCommmd

        protected java.lang.String stafGetCommmd(java.lang.String varname)
      • stafSetCommmd

        protected java.lang.String stafSetCommmd(java.lang.String assignExp)
      • stafDeleteCommand

        protected java.lang.String stafDeleteCommand(java.lang.String varname)
      • stafListCommand

        protected java.lang.String stafListCommand()
      • handleCount

        protected com.ibm.staf.STAFResult handleCount()
      • handleReset

        protected com.ibm.staf.STAFResult handleReset()
      • handleList

        protected com.ibm.staf.STAFResult handleList(com.ibm.staf.service.STAFCommandParseResult parsedData)
      • smartQuoteField

        protected java.lang.String smartQuoteField(java.lang.String field)
        Only quote the field if it is not already quoted.
        Parameters:
        field - to quote, if necessary
        Returns:
        quoted field, or field unmodified.

Copyright © SAS Institute. All Rights Reserved.