public class HarHeader extends AbstractNameValueComment
| Constructor and Description | 
|---|
| HarHeader(HarDatabaseConfig config,
         long headerId,
         java.lang.String name,
         java.lang.String value,
         java.lang.String comment)Creates a new  HarHeaderobject from the database | 
| HarHeader(org.codehaus.jackson.JsonParser jp,
         java.util.List<HarWarning> warnings)Creates a new  HarHeaderobject from a JsonParser already
 positioned at the beginning of the element content | 
| HarHeader(java.lang.String name,
         java.lang.String value)Creates a new  HarHeaderobject | 
| HarHeader(java.lang.String name,
         java.lang.String value,
         java.lang.String comment)Creates a new  HarHeaderobject | 
| Modifier and Type | Method and Description | 
|---|---|
| HarCustomFields | getCustomFields()Returns the customFields value. | 
| void | setCustomFields(HarCustomFields customFields)Sets the customFields value. | 
| java.lang.String | toString() | 
| void | writeHar(org.codehaus.jackson.JsonGenerator g)Write this object on a JsonGenerator stream | 
| void | writeJDBC(HarDatabaseConfig config,
         long id,
         java.sql.PreparedStatement ps,
         boolean isRequest,
         long logId)Write this object in the given database referencing the specified id. | 
getComment, getName, getValue, setComment, setName, setValue, writeJDBCpublic HarHeader(java.lang.String name,
         java.lang.String value,
         java.lang.String comment)
HarHeader objectname - name of the header objectvalue - value of the header objectcomment - optional comment provided by the user or the applicationjava.sql.SQLExceptionpublic HarHeader(HarDatabaseConfig config, long headerId, java.lang.String name, java.lang.String value, java.lang.String comment) throws java.sql.SQLException
HarHeader object from the databaseconfig - headerId - name - value - comment - java.sql.SQLExceptionpublic HarHeader(java.lang.String name,
         java.lang.String value)
HarHeader objectname - name of the header objectvalue - value of the header objectpublic HarHeader(org.codehaus.jackson.JsonParser jp,
         java.util.List<HarWarning> warnings)
          throws org.codehaus.jackson.JsonParseException,
                 java.io.IOException
HarHeader 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 void writeHar(org.codehaus.jackson.JsonGenerator g)
              throws org.codehaus.jackson.JsonGenerationException,
                     java.io.IOException
writeHar in class AbstractNameValueCommentg - 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 id, java.sql.PreparedStatement ps, boolean isRequest, long logId) throws java.sql.SQLException
id - the id this object refers tops - PreparedStatement to write dataisRequest - true if these cookies belong to a request, false if they
          belong to a responsejava.sql.SQLException - if a database access error occurspublic HarCustomFields getCustomFields()
public void setCustomFields(HarCustomFields customFields)
customFields - The customFields to set.public java.lang.String toString()
toString in class AbstractNameValueCommentObject.toString()Copyright © 2011 Emmanuel Cecchet - University of Massachusetts - All Rights Reserved.