Class ServiceLogElement

java.lang.Object
talonsoalbi_at_gmail_dot_com.ssoxmatch.actions.web.ServiceLogElement
All Implemented Interfaces:
Comparable<ServiceLogElement>

public class ServiceLogElement extends Object implements Comparable<ServiceLogElement>
A class to hold the data for a given service query, which is also usually ingested in a database
Author:
talonso
  • Constructor Details

    • ServiceLogElement

      public ServiceLogElement(String id, String params, String date, int len, double time, String ip, String head)
      Constructor
      Parameters:
      id - Service identifier
      params - Query parameters
      date - Query date
      len - Response length
      time - Query time
      ip - IP
      head - Headers
  • Method Details

    • getServiceId

      public String getServiceId()
      Returns the service identifier
      Returns:
      the serviceId
    • setServiceId

      public void setServiceId(String serviceId)
      Sets the service identifier
      Parameters:
      serviceId - the serviceId to set
    • getQueryParams

      public String getQueryParams()
      Returns the input parameters of the query
      Returns:
      the queryParams
    • setQueryParams

      public void setQueryParams(String queryParams)
      Sets the input parameters of the query
      Parameters:
      queryParams - the queryParams to set
    • getDate

      public String getDate()
      Returns the date
      Returns:
      the date
    • setDate

      public void setDate(String date)
      Sets the date
      Parameters:
      date - the date to set
    • getResponseLength

      public int getResponseLength()
      Returns the length of the response in bytes
      Returns:
      the responseLength
    • setResponseLength

      public void setResponseLength(int responseLength)
      Sets the length of the response
      Parameters:
      responseLength - the responseLength to set
    • getTime

      public double getTime()
      Returns the query time
      Returns:
      the time
    • setTime

      public void setTime(double time)
      Sets the query time
      Parameters:
      time - the time to set
    • getIp

      public String getIp()
      Returns the IP
      Returns:
      the ip
    • setIp

      public void setIp(String ip)
      Sets the IP
      Parameters:
      ip - the ip to set
    • getHeaders

      public String getHeaders()
      Returns the html headers
      Returns:
      the headers
    • setHeaders

      public void setHeaders(String headers)
      Sets the html headers
      Parameters:
      headers - the headers to set
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(ServiceLogElement o)
      Specified by:
      compareTo in interface Comparable<ServiceLogElement>