Package org.owasp.webscarab.model

Examples of org.owasp.webscarab.model.NamedValue


      std.setIdentities(identity.getIdentities());
      std.setLocationRelativeTo(null);
      std.setVisible(true);
      boolean ok = !std.isCancelled();
      if (ok) {
        NamedValue token = std.getSelectedToken();
        String id = std.getSelectedIdentity();
        identity.addTransition(conversation, token.getName(),
            token.getValue(), id);
      }
    }
View Full Code Here


      public void valueChanged(ListSelectionEvent e) {
        int row = table.getSelectedRow();
        comboBox.setEnabled(row >= 0);
        btnOk.setEnabled(row >= 0);
        if (row >= 0) {
          NamedValue token = ttm.getToken(row);
          String id = identity.getIdentity(getConversation(), token);
          comboBox.setSelectedItem(id);
        } else {
          comboBox.setSelectedItem(null);
        }
View Full Code Here

      if (columnIndex == 0) {
        if (rowIndex < reqCount)
          return "Request";
        return "Response";
      }
      NamedValue token = getToken(rowIndex);
      if (token == null)
        return null;
      if (columnIndex == 1)
        return token.getName();
      return token.getValue();
    }
View Full Code Here

   
    public void addAttribute(String name, String value) {
        if (null == this.attributes) {
            this.attributes = new LinkedList<NamedValue>();
        }
        this.attributes.add(new NamedValue(name, value));
        int lastRowIndex = getLastRowIndex();
        fireTableRowsInserted(0, lastRowIndex);
    }
View Full Code Here

            return null;
        }
        if (rowIndex >= this.attributes.size()) {
            return null;
        }
        NamedValue namedValue = this.attributes.get(rowIndex);
        switch (columnIndex) {
            case 0:
                return namedValue.getName();
            case 1:
                return namedValue.getValue();
            default:
                return null;
        }
    }
View Full Code Here

            return null;
        }
        if (rowIndex >= this.parameters.size()) {
            return null;
        }
        NamedValue namedValue = (NamedValue) this.parameters.get(rowIndex);
        switch (columnIndex) {
            case 0:
                return namedValue.getName();
            case 1:
                return namedValue.getValue();
            default:
                return null;
        }
    }
View Full Code Here

                    if (requestContent != null && requestContent.length > 0) {
                        String body = new String(requestContent);
                        NamedValue[] namedValues = NamedValue.splitNamedValues(
                                body, "&", "=");
                        for (int idx = 0; idx < namedValues.length; idx++) {
                            NamedValue namedValue = namedValues[idx];
                            if ("SAMLResponse".equals(namedValue.getName())) {
                                this._model.setSAMLResponse(id, namedValue.getValue());
                            } else if ("SAMLRequest".equals(namedValue.getName())) {
                                this._model.setSAMLRequest(id, namedValue.getValue());
                            } else if ("RelayState".equals(namedValue.getName())) {
                                this._model.setRelayState(id, namedValue.getValue());
                            }
                        }
                    }
                }
            }
View Full Code Here

      String[] headers = response.getHeaders(headerName);
      if (headers == null)
        continue;
      for (String header : headers) {
        Cookie cookie = new Cookie(date, header);
        tokens.add(new NamedValue(cookie.getName(), cookie.getValue()));
      }
    }
    return tokens.size() == 0 ? null : tokens;
  }
View Full Code Here

        _modified = false;
        return _headers.toArray(NO_HEADERS);
    }
   
    public void insertRow(int row) {
        _headers.add(row, new NamedValue("Header", "value"));
        _modified = true;
        _htm.fireTableRowsInserted(row, row);
    }
View Full Code Here

            return _headers.size();
        }
       
        public Object getValueAt(int row, int column) {
            if (row > _headers.size()-1) return "ERROR";
            NamedValue nv = _headers.get(row);
            if (column == 0) return nv.getName();
            return nv.getValue();
        }
View Full Code Here

TOP

Related Classes of org.owasp.webscarab.model.NamedValue

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.