public class HarHeaders
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 | 
|---|
| HarHeaders()Creates a new  HarHeadersobject | 
| HarHeaders(HarDatabaseConfig config,
          long requestId,
          boolean isRequest)Creates a new  HarHeadersobject from a database. | 
| HarHeaders(org.codehaus.jackson.JsonParser jp,
          java.util.List<HarWarning> warnings)Creates a new  HarHeadersobject from a JsonParser already
 positioned at the beginning of the element content | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addHeader(HarHeader header)Add a new header to the list | 
| void | deleteFromJDBC(HarDatabaseConfig config,
              long logId,
              boolean isRequest)Delete objects in the database referencing the specified logId. | 
| java.util.List<HarHeader> | getHeaders()Returns the headers value. | 
| void | setHeaders(java.util.List<HarHeader> headers)Sets the headers 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,
         boolean isRequest,
         long logId)Write this object in the given database referencing the specified
 requestId. | 
public static java.lang.String TABLE_NAME
public HarHeaders()
HarHeaders objectpublic HarHeaders(org.codehaus.jackson.JsonParser jp,
          java.util.List<HarWarning> warnings)
           throws org.codehaus.jackson.JsonParseException,
                  java.io.IOException
HarHeaders 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 HarHeaders(HarDatabaseConfig config, long requestId, boolean isRequest) throws java.sql.SQLException
HarHeaders object from a database. Retrieves the
 HarHeader objects that corresponds to the HarLog object with the specified
 id.config - the database configurationrequestId - the requestId this object refers toisRequest - true if these cookies belong to a request, false if they
          belong to a responsejava.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,
             boolean isRequest,
             long logId)
               throws java.sql.SQLException
requestId - the requestId this object refers toconfig - the database configurationisRequest - true if these cookies belong to a request, false if they
          belong to a responsejava.sql.SQLException - if a database access error occurspublic void deleteFromJDBC(HarDatabaseConfig config, long logId, boolean isRequest) throws java.sql.SQLException
config - the database configurationlogId - the logId this object refers toisRequest - true if these cookies belong to a request, false if they
          belong to a responsejava.sql.SQLException - if a database access error occurspublic void addHeader(HarHeader header)
header - the header to addpublic java.util.List<HarHeader> getHeaders()
public void setHeaders(java.util.List<HarHeader> headers)
headers - The headers to set.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()Copyright © 2011 Emmanuel Cecchet - University of Massachusetts - All Rights Reserved.