Class TransactionState


  • public class TransactionState
    extends Object
    Used by the delegation servlet, this allows a programmer to intercept and process the HTTP request and response. The getParameters() call returns the parsed parameters from the request. The getTransaction() returns the current transaction (which will probably have to be cast to an appropriate subclass of BasicTransaction to be useful. Save any changes to the transaction you make. Generally avoid touching the response's output stream.

    Created by Jeff Gaynor
    on 4/23/12 at 4:56 PM

    • Field Detail

      • request

        protected javax.servlet.http.HttpServletRequest request
      • response

        protected javax.servlet.http.HttpServletResponse response
      • backup

        protected edu.uiuc.ncsa.security.storage.XMLMap backup
    • Constructor Detail

      • TransactionState

        public TransactionState​(javax.servlet.http.HttpServletRequest request,
                                javax.servlet.http.HttpServletResponse response,
                                Map<String,​String> parameters,
                                BasicTransaction transaction,
                                edu.uiuc.ncsa.security.storage.XMLMap backup)
    • Method Detail

      • getRequest

        public javax.servlet.http.HttpServletRequest getRequest()
      • getResponse

        public javax.servlet.http.HttpServletResponse getResponse()
      • isRfc8628

        public boolean isRfc8628()
      • setRfc8628

        public void setRfc8628​(boolean rfc8628)
      • getBackup

        public edu.uiuc.ncsa.security.storage.XMLMap getBackup()
        Backup of the original transaction before any checks are done. This may be null. This allows returning the state of the transaction to whatever was there before the user tried and is intended for allowing a graceful recovery from system errors. It should never be the case that a user's tokens are invalidated because of an internal error (e.g their LDAP server is down). Given them a change to fix it and try again.
        Returns:
      • setBackup

        public void setBackup​(edu.uiuc.ncsa.security.storage.XMLMap backup)