public class HarCookies
extends java.lang.Object
| Constructor and Description | 
|---|
| HarCookies()Creates a new  HarCookiesobject | 
| HarCookies(HarDatabaseConfig config,
          long requestId,
          boolean isRequest)Creates a new  HarCookiesobject from a database. | 
| HarCookies(org.codehaus.jackson.JsonParser jp,
          java.util.List<HarWarning> warnings)Creates a new  HarCookiesobject from a JsonParser already
 positioned at the beginning of the element content | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addCookie(HarCookie cookie)Add a new cookie to the list | 
| void | deleteFromJDBC(HarDatabaseConfig config,
              long logId,
              boolean isRequest)Delete objects in the database referencing the specified logId. | 
| java.util.List<HarCookie> | getCookies()Returns the cookies value. | 
| void | setCookies(java.util.List<HarCookie> cookies)Sets the cookies 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 HarCookies()
HarCookies objectpublic HarCookies(org.codehaus.jackson.JsonParser jp,
          java.util.List<HarWarning> warnings)
           throws org.codehaus.jackson.JsonParseException,
                  java.io.IOException
HarCookies 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 HarCookies(HarDatabaseConfig config, long requestId, boolean isRequest) throws java.sql.SQLException
HarCookies object from a database. Retrieves the
 HarCookie objects that corresponds to the HarLog object with the specified
 id.config - the database configuration to userequestId - 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 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 addCookie(HarCookie cookie)
cookie - the cookie to addpublic java.util.List<HarCookie> getCookies()
public void setCookies(java.util.List<HarCookie> cookies)
cookies - The cookies to set.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()Copyright © 2011 Emmanuel Cecchet - University of Massachusetts - All Rights Reserved.