public class HarPostData
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | TABLE_NAMEDatabase table name where the data is stored | 
| Constructor and Description | 
|---|
| HarPostData(HarDatabaseConfig config,
           long requestId)Creates a new  HarPostDataobject from a database. | 
| HarPostData(org.codehaus.jackson.JsonParser jp,
           java.util.List<HarWarning> warnings)Creates a new  HarPostDataobject from a JsonParser already
 positioned at the beginning of the element content | 
| HarPostData(java.lang.String mimeType,
           HarPostDataParams params,
           java.lang.String text,
           java.lang.String comment)Creates a new  HarPostDataobject | 
| Modifier and Type | Method and Description | 
|---|---|
| void | deleteFromJDBC(HarDatabaseConfig config,
              long logId)Delete objects in the database referencing the specified logId. | 
| java.lang.String | getComment()Returns the comment value. | 
| HarCustomFields | getCustomFields()Returns the customFields value. | 
| java.lang.String | getMimeType()Returns the mimeType value. | 
| HarPostDataParams | getParams()Returns the params value. | 
| java.lang.String | getText()Returns the text value. | 
| void | setComment(java.lang.String comment)Sets the comment value. | 
| void | setCustomFields(HarCustomFields customFields)Sets the customFields value. | 
| void | setMimeType(java.lang.String mimeType)Sets the mimeType value. | 
| void | setParams(HarPostDataParams params)Sets the params value. | 
| void | setText(java.lang.String text)Sets the text 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 logId. | 
public static java.lang.String TABLE_NAME
public HarPostData(java.lang.String mimeType,
           HarPostDataParams params,
           java.lang.String text,
           java.lang.String comment)
HarPostData objectmimeType - mimeType [string] - Mime type of posted data.params - params [array] - List of posted parameters (in case of URL
          encoded parameters).text - text [string] - Plain text posted datacomment - comment [string, optional] (new in 1.2) - A comment provided
          by the user or the application.public HarPostData(org.codehaus.jackson.JsonParser jp,
           java.util.List<HarWarning> warnings)
            throws org.codehaus.jackson.JsonParseException,
                   java.io.IOException
HarPostData 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 HarPostData(HarDatabaseConfig config, long requestId) throws java.sql.SQLException
HarPostData object from a database. Retrieves
 the HarPostData objects that corresponds to the specified page id.config - the database configuration to userequestId - the request id that is referred 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 configuration to usejava.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 java.lang.String getMimeType()
public void setMimeType(java.lang.String mimeType)
mimeType - The mimeType to set.public HarPostDataParams getParams()
public void setParams(HarPostDataParams params)
params - The params to set.public java.lang.String getText()
public void setText(java.lang.String text)
text - The text to set.public java.lang.String getComment()
public void setComment(java.lang.String comment)
comment - The comment to set.public HarCustomFields getCustomFields()
public void setCustomFields(HarCustomFields customFields)
customFields - The customFields to set.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()Copyright © 2011 Emmanuel Cecchet - University of Massachusetts - All Rights Reserved.