public class HarQueryString
extends java.lang.Object
| Constructor and Description |
|---|
HarQueryString()
Creates a new
HarQueryString object |
HarQueryString(HarDatabaseConfig config,
long requestId)
Creates a new
HarQueryString object from a database. |
HarQueryString(org.codehaus.jackson.JsonParser jp,
java.util.List<HarWarning> warnings)
Creates a new
HarQueryString object from a JsonParser already
positioned at the beginning of the element content |
| Modifier and Type | Method and Description |
|---|---|
void |
addQueryParam(HarQueryParam queryParam)
Add a new query parameter to the list
|
void |
deleteFromJDBC(HarDatabaseConfig config,
long logId)
Delete objects in the database referencing the specified logId.
|
java.util.List<HarQueryParam> |
getQueryParams()
Returns the query parameters value.
|
void |
setQueryParams(java.util.List<HarQueryParam> queryParams)
Sets the query parameters value.
|
java.lang.String |
toString() |
void |
writeHar(org.codehaus.jackson.JsonGenerator g)
Write this object on a JsonGenerator stream
|
void |
writeJDBC(long requestId,
HarDatabaseConfig config,
long logId)
Write this object in the given database referencing the specified
requestId.
|
public HarQueryString()
HarQueryString objectpublic HarQueryString(org.codehaus.jackson.JsonParser jp,
java.util.List<HarWarning> warnings)
throws org.codehaus.jackson.JsonParseException,
java.io.IOException
HarQueryString object from a JsonParser already
positioned at the beginning of the element contentjp - a JsonParser already positioned at the beginning of the element
contentwarnings - null if parser should fail on first error, pointer to
warning list if warnings can be issued for missing fieldsorg.codehaus.jackson.JsonParseExceptionjava.io.IOExceptionpublic HarQueryString(HarDatabaseConfig config, long requestId) throws java.sql.SQLException
HarQueryString object from a database. Retrieves
the HarQueryParam objects that corresponds to the HarLog object with the
specified id.config - the database configurationrequestId - the requestId this object refers tojava.sql.SQLException - if a database error occurspublic void writeHar(org.codehaus.jackson.JsonGenerator g)
throws org.codehaus.jackson.JsonGenerationException,
java.io.IOException
g - a JsonGeneratorjava.io.IOException - if an IO error occursorg.codehaus.jackson.JsonGenerationException - if the generator failsHarFileWriter.writeHarFile(HarLog, java.io.File)public void writeJDBC(long requestId,
HarDatabaseConfig config,
long logId)
throws java.sql.SQLException
requestId - the requestId this object refers toconfig - the database configurationjava.sql.SQLException - if a database access error occurspublic void deleteFromJDBC(HarDatabaseConfig config, long logId) throws java.sql.SQLException
logId - the logId this object refers toconfig - the database configurationjava.sql.SQLException - if a database access error occurspublic void addQueryParam(HarQueryParam queryParam)
queryParam - the header to addpublic java.util.List<HarQueryParam> getQueryParams()
public void setQueryParams(java.util.List<HarQueryParam> queryParams)
queryParams - The queryParams to set.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()Copyright © 2011 Emmanuel Cecchet - University of Massachusetts - All Rights Reserved.