Package com.subgraph.vega.api.model.requests

Examples of com.subgraph.vega.api.model.requests.IRequestLog


      return;
    }
   
    addRequestIdConditionRule(requestId);
   
    final IRequestLog requestLog = workspace.getRequestLog();
    final IRequestLogRecord record = requestLog.lookupRecord(requestId);
    if(record == null) {
      return;
    }
   
    final FocusOnRecordTask task = new FocusOnRecordTask(record, contentProvider, tableViewer);
View Full Code Here


  private void setConditionFilter(IHttpConditionSet conditionSet) {
    if(conditionSet != null) {
      conditionSet.setMatchOnEmptySet(true);
    }
    highlightTableForConditionFilter(conditionSet);
    final IRequestLog requestLog = currentWorkspace.getRequestLog();
    filterCondition = conditionSet;
    requestLog.removeNewRecordListener(this);
    requestLog.addNewRecordListener(this, conditionSet);
    reloadRecords();
  }
View Full Code Here

  }

  public void publishAlert(String type, String key, String message, HttpRequest request, IHttpResponse response, Object ...properties) {
    debug("Publishing Alert: ("+ type + ") ["+ request.getRequestLine().getUri() + "] ");
    final IScanInstance scan = scanState.getScanInstance();
    final IRequestLog requestLog = scanState.getRequestLog();
    synchronized(scan) {
      if(key != null && scan.hasAlertKey(key))
        return;
      final long requestId = requestLog.addRequestResponse(response);
      final IScanAlert alert = scan.createAlert(type, key, requestId);
      for(int i = 0; (i + 1) < properties.length; i += 2) {
        if(properties[i] instanceof String) {
          alert.setProperty((String) properties[i], properties[i + 1]);
        } else {
View Full Code Here

  @Override
  public void publishAlert(String type, String key, String message,
      HttpRequest request, IHttpResponse response,
      Object... properties) {
    debug("Publishing Alert: ("+ type +") ["+ request.getRequestLine().getUri() +"] ");
    final IRequestLog requestLog = workspace.getRequestLog();
   
    synchronized(scanInstance) {
      if(key != null && scanInstance.hasAlertKey(key)) {
        return;
      }
      final long requestId = requestLog.addRequestResponse(response);
      final IScanAlert alert = scanInstance.createAlert(type, key, requestId);
     
      for(int i = 0; (i + 1) < properties.length; i += 2) {
        if(properties[i] instanceof String) {
          alert.setProperty((String) properties[i], properties[i + 1]);
View Full Code Here

TOP

Related Classes of com.subgraph.vega.api.model.requests.IRequestLog

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.