public class BHTTPSession
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
| Constructor and Description |
|---|
BHTTPSession() |
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteHTTPHeader(int requestID,
int responseID)
Deletes all headers corresponding to an HTTP request or response.
|
static void |
deleteHTTPHeaders(int requestID,
int responseID)
Deletes HTTP headers for an HTTP request or response.
|
static void |
deleteHTTPRequests(int httpTransactionID)
Deletes HTTP requests for an HTTP transaction.
|
static void |
deleteHTTPResponses(int httpTransactionID)
Deletes HTTP responses for an HTTP transaction.
|
static void |
deleteHTTPSession(int httpSessionID)
Deletes an HTTP session from the database.
|
static void |
deleteHTTPTransaction(int httpTransactionID)
Deletes a specific HTTP transaction.
|
static void |
deleteHTTPTransactions(int httpSessionID)
Deletes HTTP transactions for an HTTP session.
|
static void |
deleteProxyFilter(int proxyFilterID)
Deletes a proxy filter from the database.
|
static java.sql.ResultSet |
getAllHTTPSessions()
Gets all HTTP sessions from the database.
|
static java.sql.ResultSet |
getAllProxyFilters()
Get all proxy filters from the database.
|
static java.sql.ResultSet |
getHTTPHeaders(int requestID,
int responseID)
Gets HTTP headers for an HTTP request or response.
|
static java.sql.ResultSet |
getHTTPRequest(int httpTransactionID)
Gets the HTTP request for an HTTP transaction.
|
static java.sql.ResultSet |
getHTTPResponse(int httpTransactionID)
Gets the HTTP response for an HTTP transaction.
|
static java.sql.ResultSet |
getHTTPSessionByName(java.lang.String name)
Gets an HTTP session by name.
|
static java.sql.ResultSet |
getHTTPTransactions(int httpSessionID)
Gets HTTP transactions for an HTTP session.
|
static java.util.ArrayList<GlobalSearchResult> |
searchHTTPSessions(java.lang.String textToFind,
boolean isCaseSensitive)
Searches the httpsession table for the given text.
|
static void |
setHTTPHeader(int requestID,
int responseID,
java.lang.String key,
java.lang.String value)
Saves an HTTP header corresponding to either an HTTP request or response.
|
static int |
setHTTPRequest(int requestID,
int httpTransactionID,
java.lang.String requestMethod,
java.lang.String url,
java.lang.String postData,
java.lang.String requestLine)
Saves an HTTP request to the database.
|
static int |
setHTTPResponse(int responseID,
int httpTransactionID,
java.lang.String statusLine,
java.lang.String content)
Saves an HTTP response to the database.
|
static int |
setHTTPSession(int httpSessionID,
java.lang.String name,
int folderID,
java.lang.String keyStoreFilePath,
java.lang.String keyStorePassword)
Saves an HTTP session to the database.
|
static int |
setHTTPTransaction(int httpTransactionID,
int httpSessionID,
int sequence,
java.lang.String note)
Saves an HTTP transaction to the database.
|
static int |
setProxyFilter(int proxyFilterID,
java.lang.String filterText,
boolean isCaseSensitive,
java.lang.String filterType)
Saves a proxy filter to the database.
|
public static int setHTTPSession(int httpSessionID,
java.lang.String name,
int folderID,
java.lang.String keyStoreFilePath,
java.lang.String keyStorePassword)
httpSessionID - The ID of the HTTP session.name - The name of the HTTP session.folderID - The ID of the folder containing the object.keyStoreFilePath - The path to the keystore file.keyStorePassword - The keystore password.public static int setHTTPTransaction(int httpTransactionID,
int httpSessionID,
int sequence,
java.lang.String note)
httpTransactionID - The ID of the HTTP transaction.httpSessionID - The ID of the HTTP session that holds this
transaction.sequence - The sequence of the HTTP transaction.note - The note associated with the HTTP transaction.public static int setHTTPRequest(int requestID,
int httpTransactionID,
java.lang.String requestMethod,
java.lang.String url,
java.lang.String postData,
java.lang.String requestLine)
requestID - The ID of the HTTP request.httpTransactionID - The ID of the HTTP transaction that holds this
request.requestMethod - The request method of the request.url - The URL.postData - Any POST data passed in the request.requestLine - The request line.public static int setHTTPResponse(int responseID,
int httpTransactionID,
java.lang.String statusLine,
java.lang.String content)
responseID - The ID of the HTTP response.httpTransactionID - The ID of the HTTP transaction that holds this
response.statusLine - The status line.content - The content.public static void setHTTPHeader(int requestID,
int responseID,
java.lang.String key,
java.lang.String value)
requestID - The ID of the HTTP request.responseID - The ID of the HTTP response.key - The key of the header.value - The value of the header.public static void deleteHTTPHeader(int requestID,
int responseID)
requestID - The ID of the HTTP request.responseID - The ID of the HTTP response.public static java.sql.ResultSet getAllHTTPSessions()
public static java.sql.ResultSet getHTTPSessionByName(java.lang.String name)
name - The name of the HTTPSession to retrieve.public static java.sql.ResultSet getHTTPTransactions(int httpSessionID)
httpSessionID - The ID of the HTTP session.public static java.sql.ResultSet getHTTPRequest(int httpTransactionID)
httpTransactionID - The ID of the HTTP transaction.public static java.sql.ResultSet getHTTPResponse(int httpTransactionID)
httpTransactionID - The ID of the HTTP transaction.public static java.sql.ResultSet getHTTPHeaders(int requestID,
int responseID)
requestID - The ID of the request.responseID - The ID of the response.public static void deleteHTTPHeaders(int requestID,
int responseID)
requestID - The ID of the request.responseID - The ID of the response.public static void deleteHTTPRequests(int httpTransactionID)
httpTransactionID - The ID of the HTTP transaction.public static void deleteHTTPResponses(int httpTransactionID)
httpTransactionID - The ID of the HTTP transaction.public static void deleteHTTPTransaction(int httpTransactionID)
httpTransactionID - The ID of the HTTP transaction.public static void deleteHTTPTransactions(int httpSessionID)
httpSessionID - The ID of the HTTP session.public static void deleteHTTPSession(int httpSessionID)
httpSessionID - The ID of the HTTP session.public static java.util.ArrayList<GlobalSearchResult> searchHTTPSessions(java.lang.String textToFind, boolean isCaseSensitive)
textToFind - The text to look for.isCaseSensitive - Whether or not to do a case-sensitive search.ArrayList of GlobalSearchResult objects.public static int setProxyFilter(int proxyFilterID,
java.lang.String filterText,
boolean isCaseSensitive,
java.lang.String filterType)
proxyFilterID - The ID of the proxy filter.filterText - The text of the filter.isCaseSensitive - Whether or not the filter is case sensitive.filterType - The type of the filter.public static java.sql.ResultSet getAllProxyFilters()
ResultSet containing all of the proxy filters.public static void deleteProxyFilter(int proxyFilterID)
proxyFilterID - The ID of the proxy filter.