Package de.businesscode.bcdui.web.wrs
Class HttpRequestOptions
java.lang.Object
de.businesscode.bcdui.web.wrs.HttpRequestOptions
- All Implemented Interfaces:
IRequestOptions
Wrapp a httpRequest and implements IRequestOptions for Wrs operations
-
Constructor Summary
ConstructorsConstructorDescriptionHttpRequestOptions
(jakarta.servlet.ServletContext servletCtx, jakarta.servlet.http.HttpServletRequest request, int maxRows) HttpRequestOptions -
Method Summary
Modifier and TypeMethodDescriptiongetBindingsfinal jakarta.servlet.http.HttpServletRequest
getManagedConnection
(String dbSourceName) gets managed connection that should not be closedint
Method getMaxRowsint
gets max count of statements to execute in SQL StatementgetRequestDocgetRequestUrljakarta.servlet.ServletContext
final String
getUnmanagedConnection
(String dbSourceName) gets UnmanagedConnection, that should be closed by userboolean
isDebugModevoid
setMaxSQLBatchSize
(int i) sets max count of statements to execute in SQL Statementvoid
setRequestDoc
(Document doc) Delayed setting the request doc, of not already available in constructor
-
Constructor Details
-
HttpRequestOptions
public HttpRequestOptions(jakarta.servlet.ServletContext servletCtx, jakarta.servlet.http.HttpServletRequest request, int maxRows) HttpRequestOptions- Parameters:
servletCtx
-request
-
-
-
Method Details
-
getServletCtx
public jakarta.servlet.ServletContext getServletCtx() -
getHttpRequest
public final jakarta.servlet.http.HttpServletRequest getHttpRequest()- Returns:
- the httpRequest
-
getSessionId
- Returns:
- the sessionId or null
-
getManagedConnection
Description copied from interface:IRequestOptions
gets managed connection that should not be closed- Specified by:
getManagedConnection
in interfaceIRequestOptions
- 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- See Also:
-
getRequestUrl
Description copied from interface:IRequestOptions
getRequestUrl- Specified by:
getRequestUrl
in interfaceIRequestOptions
- Returns:
- the URL of the request
- See Also:
-
getRequestDoc
Description copied from interface:IRequestOptions
getRequestDoc- Specified by:
getRequestDoc
in interfaceIRequestOptions
- Returns:
- the request xml-document or null
- See Also:
-
isDebugMode
public boolean isDebugMode()Description copied from interface:IRequestOptions
isDebugMode- Specified by:
isDebugMode
in interfaceIRequestOptions
- Returns:
- true if debug mode
- See Also:
-
getBindings
Description copied from interface:IRequestOptions
getBindings- Specified by:
getBindings
in interfaceIRequestOptions
- Returns:
- the Bindings used for this request, using this and not Bindings.getInstance() allows usage in batch environments
- See Also:
-
getMaxSQLBatchSize
public int getMaxSQLBatchSize()gets max count of statements to execute in SQL Statement- Specified by:
getMaxSQLBatchSize
in interfaceIRequestOptions
- 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 interfaceIRequestOptions
- Parameters:
i
- - max count of statements to execute in a SQL Statement
-
getUnmanagedConnection
Description copied from interface:IRequestOptions
gets UnmanagedConnection, that should be closed by user- Specified by:
getUnmanagedConnection
in interfaceIRequestOptions
- Returns:
- Throws:
Exception
-
getMaxRows
public int getMaxRows()Description copied from interface:IRequestOptions
Method getMaxRows- Specified by:
getMaxRows
in interfaceIRequestOptions
- Returns:
- max count rows to be returned
-
setRequestDoc
Description copied from interface:IRequestOptions
Delayed setting the request doc, of not already available in constructor- Specified by:
setRequestDoc
in interfaceIRequestOptions
-