public class HarPages
extends java.lang.Object
| Constructor and Description | 
|---|
| HarPages()Creates a new  HarPagesobject | 
| HarPages(HarDatabaseConfig config,
        long logId)Creates a new  HarPagesobject from a database. | 
| HarPages(org.codehaus.jackson.JsonParser jp,
        java.util.List<HarWarning> warnings)Creates a new  HarEntriesobjectfrom a JsonParser already
 positioned at the beginning of the element content | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addPage(HarPage page)Add a new page to the list | 
| void | deleteFromJDBC(HarDatabaseConfig config,
              long logId)Delete page and page timings objects in the database referencing the
 specified logId. | 
| java.util.List<HarPage> | getPages()Returns the pages value. | 
| void | removePage(HarPage page)Remove a page from the list | 
| void | setPages(java.util.List<HarPage> pages)Sets the pages value. | 
| java.lang.String | toString() | 
| void | writeHar(org.codehaus.jackson.JsonGenerator g)Write this object on a JsonGenerator stream | 
| void | writeJDBC(long logId,
         HarDatabaseConfig config)Write this object in the given database referencing the specified logId. | 
public HarPages()
HarPages objectpublic HarPages(org.codehaus.jackson.JsonParser jp,
        java.util.List<HarWarning> warnings)
         throws org.codehaus.jackson.JsonParseException,
                java.io.IOException
HarEntries objectfrom 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 HarPages(HarDatabaseConfig config, long logId) throws java.sql.SQLException
HarPages object from a database. Retrieves the
 HarPage objects that corresponds to the HarLog object with the specified
 id.config - the database configuration to uselogId - the HarLog id to readjava.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 logId,
             HarDatabaseConfig config)
               throws java.sql.SQLException
logId - the logId 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 addPage(HarPage page)
page - the page to addpublic void removePage(HarPage page)
page - the page to removepublic java.util.List<HarPage> getPages()
public void setPages(java.util.List<HarPage> pages)
pages - The pages to set.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()Copyright © 2011 Emmanuel Cecchet - University of Massachusetts - All Rights Reserved.