Package org.apache.wicket.protocol.http.IRequestLogger

Examples of org.apache.wicket.protocol.http.IRequestLogger.RequestData


      private static final long serialVersionUID = 1L;

      @Override
      protected void populateItem(final ListItem<RequestData> item)
      {
        RequestData rd = item.getModelObject();
        item.add(new Label("id", new Model<>(rd.getSessionId())).setVisible(sessionData == null));
        item.add(new Label("startDate", new Model<>(sdf.format(rd.getStartDate()))));
        item.add(new Label("timeTaken", new Model<>(rd.getTimeTaken())));
        String eventTarget = rd.getEventTarget() != null ? rd.getEventTarget()
          .getClass()
          .getName() : "";
        item.add(new Label("eventTarget", new Model<>(eventTarget)));
        String responseTarget = rd.getResponseTarget() != null ? rd.getResponseTarget()
          .getClass()
          .getName() : "";
        item.add(new Label("responseTarget", new Model<>(responseTarget)));
        item.add(new Label("alteredObjects", new Model<>(rd.getAlteredObjects())).setEscapeModelStrings(false));
        item.add(new Label("sessionSize", new Model<Bytes>(Bytes.bytes(rd.getSessionSize()
          .longValue()))));
      }
    };
    add(listView);
View Full Code Here


        if (sessionData != null)
        {
          ArrayList<RequestData> returnValues = new ArrayList<RequestData>();
          for (int i = 0; i < requests.size(); i++)
          {
            RequestData data = requests.get(i);
            if (sessionData.getSessionId().equals(data.getSessionId()))
            {
              returnValues.add(data);
            }
          }
          return returnValues;
        }
        return new ArrayList<RequestData>(requests);
      }
    };
    PageableListView<RequestData> listView = new PageableListView<RequestData>("requests",
      requestsModel, 50)
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected void populateItem(ListItem<RequestData> item)
      {
        RequestData rd = item.getModelObject();
        item.add(new Label("id", new Model<String>(rd.getSessionId())).setVisible(sessionData == null));
        item.add(new Label("startDate", new Model<String>(sdf.format(rd.getStartDate()))));
        item.add(new Label("timeTaken", new Model<Long>(rd.getTimeTaken())));
        item.add(new Label("eventTarget", new Model<String>(rd.getEventTarget())));
        item.add(new Label("responseTarget", new Model<String>(rd.getResponseTarget())));
        item.add(new Label("alteredObjects", new Model<String>(rd.getAlteredObjects())))
          .setEscapeModelStrings(false);
        item.add(new Label("sessionSize", new Model<Bytes>(Bytes.bytes(rd.getSessionSize()
          .longValue()))));
      }
    };
    add(listView);
View Full Code Here

      private static final long serialVersionUID = 1L;

      @Override
      protected void populateItem(final ListItem<RequestData> item)
      {
        RequestData rd = item.getModelObject();
        item.add(new Label("id", new Model<String>(rd.getSessionId())).setVisible(sessionData == null));
        item.add(new Label("startDate", new Model<String>(sdf.format(rd.getStartDate()))));
        item.add(new Label("timeTaken", new Model<Long>(rd.getTimeTaken())));
        item.add(new Label("eventTarget", new Model<String>(rd.getEventTarget())));
        item.add(new Label("responseTarget", new Model<String>(rd.getResponseTarget())));
        item.add(new Label("alteredObjects", new Model<String>(rd.getAlteredObjects())).setEscapeModelStrings(false));
        item.add(new Label("sessionSize", new Model<Bytes>(Bytes.bytes(rd.getSessionSize()
          .longValue()))));
      }
    };
    add(listView);
View Full Code Here

        if (sessionData != null)
        {
          ArrayList<RequestData> returnValues = new ArrayList<RequestData>();
          for (int i = 0; i < requests.size(); i++)
          {
            RequestData data = requests.get(i);
            if (sessionData.getSessionId().equals(data.getSessionId()))
            {
              returnValues.add(data);
            }
          }
          return returnValues;
        }
        return new ArrayList<RequestData>(requests);
      }
    };
    PageableListView<RequestData> listView = new PageableListView<RequestData>("requests",
      requestsModel, 50)
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected void populateItem(ListItem<RequestData> item)
      {
        RequestData rd = item.getModelObject();
        item.add(new Label("id", new Model<String>(rd.getSessionId())).setVisible(sessionData == null));
        item.add(new Label("startDate", new Model<String>(sdf.format(rd.getStartDate()))));
        item.add(new Label("timeTaken", new Model<Long>(rd.getTimeTaken())));
        item.add(new Label("eventTarget", new Model<String>(rd.getEventTarget())));
        item.add(new Label("responseTarget", new Model<String>(rd.getResponseTarget())));
        item.add(new Label("alteredObjects", new Model<String>(rd.getAlteredObjects())))
          .setEscapeModelStrings(false);
        item.add(new Label("sessionSize", new Model<Bytes>(Bytes.bytes(rd.getSessionSize()
          .longValue()))));
      }
    };
    add(listView);
View Full Code Here

      private static final long serialVersionUID = 1L;

      @Override
      protected void populateItem(final ListItem<RequestData> item)
      {
        RequestData rd = item.getModelObject();
        item.add(new Label("id", new Model<String>(rd.getSessionId())).setVisible(sessionData == null));
        item.add(new Label("startDate", new Model<String>(sdf.format(rd.getStartDate()))));
        item.add(new Label("timeTaken", new Model<Long>(rd.getTimeTaken())));
        item.add(new Label("eventTarget", new Model<String>(rd.getEventTarget())));
        item.add(new Label("responseTarget", new Model<String>(rd.getResponseTarget())));
        item.add(new Label("alteredObjects", new Model<String>(rd.getAlteredObjects())))
          .setEscapeModelStrings(false);
        item.add(new Label("sessionSize", new Model<Bytes>(Bytes.bytes(rd.getSessionSize()
          .longValue()))));
      }
    };
    add(listView);
View Full Code Here

      private static final long serialVersionUID = 1L;

      @Override
      protected void populateItem(final ListItem<RequestData> item)
      {
        RequestData rd = item.getModelObject();
        item.add(new Label("id", new Model<String>(rd.getSessionId())).setVisible(sessionData == null));
        item.add(new Label("startDate", new Model<String>(sdf.format(rd.getStartDate()))));
        item.add(new Label("timeTaken", new Model<Long>(rd.getTimeTaken())));
        item.add(new Label("eventTarget", new Model<String>(rd.getEventTarget())));
        item.add(new Label("responseTarget", new Model<String>(rd.getResponseTarget())));
        item.add(new Label("alteredObjects", new Model<String>(rd.getAlteredObjects())).setEscapeModelStrings(false));
        item.add(new Label("sessionSize", new Model<Bytes>(Bytes.bytes(rd.getSessionSize()
          .longValue()))));
      }
    };
    add(listView);
View Full Code Here

        if (sessionData != null)
        {
          ArrayList<RequestData> returnValues = new ArrayList<RequestData>();
          for (int i = 0; i < requests.size(); i++)
          {
            RequestData data = requests.get(i);
            if (sessionData.getSessionId().equals(data.getSessionId()))
            {
              returnValues.add(data);
            }
          }
          return returnValues;
        }
        return new ArrayList<RequestData>(requests);
      }
    };
    PageableListView<RequestData> listView = new PageableListView<RequestData>("requests",
      requestsModel, 50)
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected void populateItem(ListItem<RequestData> item)
      {
        RequestData rd = item.getModelObject();
        item.add(new Label("id", new Model<String>(rd.getSessionId())).setVisible(sessionData == null));
        item.add(new Label("startDate", new Model<String>(sdf.format(rd.getStartDate()))));
        item.add(new Label("timeTaken", new Model<Long>(rd.getTimeTaken())));
        item.add(new Label("eventTarget", new Model<String>(rd.getEventTarget())));
        item.add(new Label("responseTarget", new Model<String>(rd.getResponseTarget())));
        item.add(new Label("alteredObjects", new Model<String>(rd.getAlteredObjects())).setEscapeModelStrings(false));
        item.add(new Label("sessionSize", new Model<Bytes>(Bytes.bytes(rd.getSessionSize()
          .longValue()))));
      }
    };
    add(listView);
View Full Code Here

      private static final long serialVersionUID = 1L;

      @Override
      protected void populateItem(final ListItem<RequestData> item)
      {
        RequestData rd = item.getModelObject();
        item.add(new Label("id", new Model<String>(rd.getSessionId())).setVisible(sessionData == null));
        item.add(new Label("startDate", new Model<String>(sdf.format(rd.getStartDate()))));
        item.add(new Label("timeTaken", new Model<Long>(rd.getTimeTaken())));
        String eventTarget = rd.getEventTarget() != null ? rd.getEventTarget()
          .getClass()
          .getName() : "";
        item.add(new Label("eventTarget", new Model<String>(eventTarget)));
        String responseTarget = rd.getResponseTarget() != null ? rd.getResponseTarget()
          .getClass()
          .getName() : "";
        item.add(new Label("responseTarget", new Model<String>(responseTarget)));
        item.add(new Label("alteredObjects", new Model<String>(rd.getAlteredObjects())).setEscapeModelStrings(false));
        item.add(new Label("sessionSize", new Model<Bytes>(Bytes.bytes(rd.getSessionSize()
          .longValue()))));
      }
    };
    add(listView);
View Full Code Here

      private static final long serialVersionUID = 1L;

      @Override
      protected void populateItem(ListItem<RequestData> item)
      {
        RequestData rd = item.getModelObject();
        item.add(new Label("id", new Model<String>(rd.getSessionId())).setVisible(sessionData == null));
        item.add(new Label("startDate", new Model<String>(sdf.format(rd.getStartDate()))));
        item.add(new Label("timeTaken", new Model<Long>(rd.getTimeTaken())));
        item.add(new Label("eventTarget", new Model<String>(rd.getEventTarget())));
        item.add(new Label("responseTarget", new Model<String>(rd.getResponseTarget())));
        item.add(new Label("alteredObjects", new Model<String>(rd.getAlteredObjects())))
          .setEscapeModelStrings(false);
        item.add(new Label("sessionSize", new Model<Bytes>(Bytes.bytes(rd.getSessionSize()
          .longValue()))));
      }
    };
    add(listView);
View Full Code Here

TOP

Related Classes of org.apache.wicket.protocol.http.IRequestLogger.RequestData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.