public class HarEntries
extends java.lang.Object
| Constructor and Description |
|---|
HarEntries()
Creates a new
HarEntrys object |
HarEntries(HarDatabaseConfig config,
long logId)
Creates a new
HarEntries object from a database. |
HarEntries(org.codehaus.jackson.JsonParser jp,
java.util.List<HarWarning> warnings)
Creates a new
HarEntries objectfrom a JsonParser already
positioned at the beginning of the element content. |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(HarEntry entry)
Add a new entry to the list
|
void |
deleteFromJDBC(HarDatabaseConfig config,
long logId)
Delete entries objects in the database referencing the specified logId.
|
java.util.List<HarEntry> |
getEntries()
Returns the entries value.
|
void |
removeEntry(HarEntry entry)
Remove an entry from the list
|
void |
setEntries(java.util.List<HarEntry> entries)
Sets the entries 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 HarEntries()
HarEntrys objectpublic HarEntries(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 content. Note that entries are
sorted automatically at the end of the parsing.jp - 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 HarEntries(HarDatabaseConfig config, long logId) throws java.sql.SQLException
HarEntries object from a database. Retrieves the
HarEntry 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 addEntry(HarEntry entry)
entry - the entry to addpublic void removeEntry(HarEntry entry)
entry - the entry to removepublic java.util.List<HarEntry> getEntries()
public void setEntries(java.util.List<HarEntry> entries)
entries - The entries to set.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()Copyright © 2011 Emmanuel Cecchet - University of Massachusetts - All Rights Reserved.