public class HarPostDataParams
extends java.lang.Object
| Constructor and Description | 
|---|
| HarPostDataParams()Creates a new  HarPostDataParamsobject | 
| HarPostDataParams(HarDatabaseConfig config,
                 long requestId)Creates a new  HarPostDataParamsobject from a database. | 
| HarPostDataParams(org.codehaus.jackson.JsonParser jp,
                 java.util.List<HarWarning> warnings)Creates a new  HarPostDataParamsobject from a JsonParser
 already positioned at the beginning of the element content | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addPostDataParam(HarPostDataParam postDataParam)Add a new postDataParam to the list | 
| void | deleteFromJDBC(HarDatabaseConfig config,
              long logId)Delete objects in the database referencing the specified logId. | 
| java.util.List<HarPostDataParam> | getPostDataParams()Returns the postDataParams value. | 
| void | setPostDataParams(java.util.List<HarPostDataParam> postDataParams)Sets the postDataParams value. | 
| java.lang.String | toString() | 
| void | writeHar(org.codehaus.jackson.JsonGenerator g)Write this object on a JsonGenerator stream | 
| void | writeJDBC(HarDatabaseConfig config,
         long postId,
         java.sql.PreparedStatement paramsPs,
         long logId)Write this object in the given database referencing the specified
 requestId. | 
public HarPostDataParams()
HarPostDataParams objectpublic HarPostDataParams(org.codehaus.jackson.JsonParser jp,
                 java.util.List<HarWarning> warnings)
                  throws org.codehaus.jackson.JsonParseException,
                         java.io.IOException
HarPostDataParams 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 HarPostDataParams(HarDatabaseConfig config, long requestId) throws java.sql.SQLException
HarPostDataParams object from a database.
 Retrieves the HarPostDataParam 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(HarDatabaseConfig config, long postId, java.sql.PreparedStatement paramsPs, long logId) throws java.sql.SQLException
postId - the post id this object refers toparamsPs - PreparedStatement to write post params datajava.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 addPostDataParam(HarPostDataParam postDataParam)
postDataParam - the postDataParam to addpublic java.util.List<HarPostDataParam> getPostDataParams()
public void setPostDataParams(java.util.List<HarPostDataParam> postDataParams)
postDataParams - The postDataParams to set.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()Copyright © 2011 Emmanuel Cecchet - University of Massachusetts - All Rights Reserved.