Interface IRequestOptions

All Known Implementing Classes:
HttpRequestOptions, RequestOptions

public interface IRequestOptions
The class represents request options for an operation.
Typically all parameters are readed from a HTTP-Request and/or application configuration
  • Method Details

    • getRequestUrl

      String getRequestUrl()
      getRequestUrl
      Returns:
      the URL of the request
    • getRequestDoc

      Document getRequestDoc()
      getRequestDoc
      Returns:
      the request xml-document or null
    • isDebugMode

      boolean isDebugMode()
      isDebugMode
      Returns:
      true if debug mode
    • getManagedConnection

      Connection getManagedConnection(String dbSourceName) throws Exception
      gets managed connection that should not be closed
      Parameters:
      dbSourceName - - the name of requeted db-connection, null for default
      Returns:
      the database connection
      Throws:
      Exception - - if connection with the name not found or database is not available
    • getUnmanagedConnection

      Connection getUnmanagedConnection(String dbSourceName) throws Exception
      gets UnmanagedConnection, that should be closed by user
      Parameters:
      dbSourceName -
      Returns:
      Throws:
      Exception
    • getBindings

      getBindings
      Returns:
      the Bindings used for this request, using this and not Bindings.getInstance() allows usage in batch environments
      Throws:
      BindingException
      ParserConfigurationException
      IOException
      SAXException
      XPathExpressionException
    • getMaxSQLBatchSize

      int getMaxSQLBatchSize()
      Method getMaxSQLBatchSize
      Returns:
      max count of statements to execute in a SQL Statement
    • setMaxSQLBatchSize

      void setMaxSQLBatchSize(int maxSQLBatchSize)
      Method setMaxSQLBatchSize
      Parameters:
      maxSQLBatchSize - - max count of statements to execute in a SQL Statement
    • getMaxRows

      int getMaxRows()
      Method getMaxRows
      Returns:
      max count rows to be returned
    • setRequestDoc

      void setRequestDoc(Document doc)
      Delayed setting the request doc, of not already available in constructor
      Parameters:
      doc -