Class HttpRequestOptions

  • All Implemented Interfaces:
    IRequestOptions

    public class HttpRequestOptions
    extends java.lang.Object
    implements IRequestOptions
    Wrapp a httpRequest and implements IRequestOptions for Wrs operations
    • Constructor Summary

      Constructors 
      Constructor Description
      HttpRequestOptions​(javax.servlet.ServletContext servletCtx, javax.servlet.http.HttpServletRequest request, int maxRows)
      HttpRequestOptions
    • Constructor Detail

      • HttpRequestOptions

        public HttpRequestOptions​(javax.servlet.ServletContext servletCtx,
                                  javax.servlet.http.HttpServletRequest request,
                                  int maxRows)
        HttpRequestOptions
        Parameters:
        servletCtx -
        request -
    • Method Detail

      • getServletCtx

        public javax.servlet.ServletContext getServletCtx()
      • getHttpRequest

        public final javax.servlet.http.HttpServletRequest getHttpRequest()
        Returns:
        the httpRequest
      • getSessionId

        public final java.lang.String getSessionId()
        Returns:
        the sessionId or null
      • getManagedConnection

        public java.sql.Connection getManagedConnection​(java.lang.String dbSourceName)
                                                 throws java.lang.Exception
        Description copied from interface: IRequestOptions
        gets managed connection that should not be closed
        Specified by:
        getManagedConnection in interface IRequestOptions
        Parameters:
        dbSourceName - - the name of requeted db-connection, null for default
        Returns:
        the database connection
        Throws:
        java.lang.Exception - - if connection with the name not found or database is not available
        See Also:
        IRequestOptions.getManagedConnection(java.lang.String)
      • getMaxSQLBatchSize

        public int getMaxSQLBatchSize()
        gets max count of statements to execute in SQL Statement
        Specified by:
        getMaxSQLBatchSize in interface IRequestOptions
        Returns:
        max count of statements to execute in a SQL Statement
      • setMaxSQLBatchSize

        public void setMaxSQLBatchSize​(int i)
        sets max count of statements to execute in SQL Statement
        Specified by:
        setMaxSQLBatchSize in interface IRequestOptions
        Parameters:
        i - - max count of statements to execute in a SQL Statement
      • getUnmanagedConnection

        public java.sql.Connection getUnmanagedConnection​(java.lang.String dbSourceName)
                                                   throws java.lang.Exception
        Description copied from interface: IRequestOptions
        gets UnmanagedConnection, that should be closed by user
        Specified by:
        getUnmanagedConnection in interface IRequestOptions
        Returns:
        Throws:
        java.lang.Exception
      • getMaxRows

        public int getMaxRows()
        Description copied from interface: IRequestOptions
        Method getMaxRows
        Specified by:
        getMaxRows in interface IRequestOptions
        Returns:
        max count rows to be returned
      • setRequestDoc

        public void setRequestDoc​(org.w3c.dom.Document doc)
        Description copied from interface: IRequestOptions
        Delayed setting the request doc, of not already available in constructor
        Specified by:
        setRequestDoc in interface IRequestOptions