Class Request

    • Field Detail

      • action

        protected org.apache.struts.action.Action action
      • mapping

        protected org.apache.struts.action.ActionMapping mapping
      • actionTypes

        public static final String[] actionTypes
      • actionType

        protected int actionType
      • conversationTypeUnknown

        public static final int conversationTypeUnknown
        In the absence of a conversation parameter we assume that a conversation starts with actionType=action and ends with actionType=render. Conversations are related to the persistence framework and allow us to keep a persistence engine session running until the sequence of actions is completed.
        See Also:
        Constant Field Values
      • conversationTypeStart

        public static final int conversationTypeStart
        start of a multi-request conversation
        See Also:
        Constant Field Values
      • conversationTypeContinue

        public static final int conversationTypeContinue
        part-way through a multi-request conversation
        See Also:
        Constant Field Values
      • conversationTypeEnd

        public static final int conversationTypeEnd
        end of a multi-request conversation
        See Also:
        Constant Field Values
      • conversationTypeOnly

        public static final int conversationTypeOnly
        if a conversation is started, end it on entry with no processing of changes. Start a new conversation which we will end on exit.
        See Also:
        Constant Field Values
      • conversationTypeProcessAndOnly

        public static final int conversationTypeProcessAndOnly
        If a conversation is already started on entry, process changes and end it. Start a new conversation which we will end on exit.
        See Also:
        Constant Field Values
      • conversationTypes

        public static final String[] conversationTypes
      • conversationType

        protected int conversationType
      • moduleName

        protected String moduleName
        May be specified as an action parameter or overriddem by the request parameter.
    • Constructor Detail

      • Request

        public Request​(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response,
                       UtilActionForm form,
                       org.apache.struts.action.Action action,
                       org.apache.struts.action.ActionMapping mapping)
        Parameters:
        request - the http request
        response - the response
        form - form object
        action - the actions
        mapping - and the mapping
    • Method Detail

      • getAction

        public org.apache.struts.action.Action getAction()
        Returns:
        Action
      • getMapping

        public org.apache.struts.action.ActionMapping getMapping()
        Returns:
        ActionMapping
      • getErr

        public MessageEmit getErr()
        Returns:
        MessageEmit
      • getMsg

        public MessageEmit getMsg()
        Returns:
        MessageEmit
      • getErrorsEmitted

        public boolean getErrorsEmitted()
        Returns:
        boolean
      • getActionType

        public int getActionType()
        Returns:
        int
      • getActionPath

        public String getActionPath()
        Returns:
        the part of the URL that identifies the action.
      • getActionParameter

        public String getActionParameter()
        Returns:
        the action parameter if any.
      • getConversationType

        public int getConversationType()
        Returns:
        int
      • getModuleName

        public String getModuleName()
        Returns:
        String
      • getRefreshInt

        public Integer getRefreshInt()
      • getRefreshAction

        public String getRefreshAction()
      • getIntReqPar

        public Integer getIntReqPar​(String name,
                                    String errProp)
                             throws Throwable
        Get an Integer request parameter or null. Emit error for non-null and non integer
        Parameters:
        name - name of parameter
        errProp - error to emit
        Returns:
        Integer value or null
        Throws:
        Throwable - on error
      • getIntActionPar

        public Integer getIntActionPar​(String name)
        Parameters:
        name - of parameter
        Returns:
        value of given parameter or null
      • getStringActionPar

        public String getStringActionPar​(String name)
        Parameters:
        name - of parameter
        Returns:
        value of given parameter or null