text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_suffix|> null on success, otherwise the localised error message * @since 2.8.0 */ public String importRootCaCertificate(File pemFile) { String pem; try { pem = FileUtils.readFileToString(pemFile, StandardCharsets.US_ASCII); } catch (IOException e) { re...
fim
zaproxy/zaproxy
java
<|fim_suffix|>decode(tokens[0]); } private static RSAPrivateKey generatePrivateKeyFromDER(byte[] keyBytes) throws InvalidKeySpecException, NoSuchAlgorithmException { PKCS8EncodedKeySpec spec = new PKCS8EncodedKeySpec(keyBytes); KeyFactory factory = KeyFactory.getInstance("RSA"); ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>tate); } @Override public boolean isCore() { return true; } @Override public String getAuthor() { return Constant.ZAP_TEAM; } @Override public String getDescription() { return Constant.messages.getString("ext.desc"); } @Override p...
fim
zaproxy/zaproxy
java
<|fim_suffix|>NSION_ENABLED_KEY, Boolean.FALSE); enabledCount++; } } this.extensionsState = Collections.unmodifiableMap(extensionsState); } @Override public ExtensionParam clone() { return (ExtensionParam) super.clone(); } } <|fim_prefix|>/* * Zed A...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2011 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2011 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_suffix|> return null; } } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2013 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use t...
fim
zaproxy/zaproxy
java
<|fim_suffix|> FORCED_USER_MODE_ON_ICON_RESOURCE))); forcedUserModeButton.setToolTipText(BUTTON_LABEL_OFF); forcedUserModeButton.setSelectedToolTipText(BUTTON_LABEL_ON); forcedUserModeButton.setDisabledToolTipText(BUTTON_LABEL_DISABLED); forcedUserMod...
fim
zaproxy/zaproxy
java
<|fim_suffix|>OK; case ACTION_SET_FORCED_USER_MODE_ENABLED: if (!params.containsKey(PARAM_MODE_ENABLED)) throw new ApiException(Type.MISSING_PARAMETER, PARAM_MODE_ENABLED); boolean newModeStatus; try { newModeStatus = pa...
fim
zaproxy/zaproxy
java
<|fim_suffix|>utton(); } @Override public void changedUpdate(DocumentEvent e) { checkAndEnableConfirmButton(); } private v...
fim
zaproxy/zaproxy
java
<|fim_suffix|>cted String getConfirmButtonLabel() { return CONFIRM_BUTTON_LABEL; } public void setToken(GlobalExcludeURLParamToken token) { this.token = token; } @Override protected boolean validateFields() { if (token.getRegex().equals(getRegexTextField().getText())) { ...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2010 The ZAP Development Team * Copyright 2014 Jay Ball - Aspect Security * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2010 The ZAP Development Team * Copyright 2014 Jay Ball - Aspect Security * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not...
fim
zaproxy/zaproxy
java
<|fim_suffix|>ing description, boolean enabled) { super(enabled); this.regex = regex; this.description = description; } public GlobalExcludeURLParamToken(GlobalExcludeURLParamToken token) { this(token.regex, token.description, token.isEnabled()); } public String getReg...
fim
zaproxy/zaproxy
java
/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2010 The ZAP Development Team * Copyright 2014 Jay Ball - Aspect Security * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2010 The ZAP Development Team * Copyright 2014 Jay Ball - Aspect Security * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2014 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2010 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>SearchNavigatorUI} that keeps merging views even if one of them is invalid. * * @since 2.5.0 */ public class ZapBasicSearchNavigatorUI extends BasicSearchNavigatorUI { private static final Logger LOGGER = LogManager.getLogger(ZapBasicSearchNavigatorUI.class); public ZapBasicSearchNavigatorUI(...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2016 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>.tocId = tocId; } public ZapTocItem(ID id, ID imageID, HelpSet hs, Locale locale, String tocId) { super(id, imageID, hs, locale); this.tocId = tocId; } public String getTocId() { return tocId; } } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related cla...
fim
zaproxy/zaproxy
java
<|fim_suffix|> // loop thru the master children for (int m = 0; m < masterCnt; m++) { DefaultMutableTreeNode masterAtM = (DefaultMutableTreeNode) masterNode.getChildAt(m); if (doCustomMerge(slaveNodeChild, masterAtM)) { s...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2014 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2010 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_suffix|> gridBagConstraints30.weighty = 1.0D; gridBagConstraints30.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints30.insets = new java.awt.Insets(2, 2, 2, 2); gridBagConstraints30.gridy = 3; gridBagConstraints30.gridx = 0; gridBagC...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2010 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>sproxy.paros.model.SiteNode; import org.parosproxy.paros.view.SiteMapPanel; import org.parosproxy.paros.view.View; import org.zaproxy.zap.model.Context; /** * @deprecated (2.12.0) see the exim add-on */ @Deprecated public class PopupMenuExportContextURLs extends PopupMenuExportURLs { private stati...
fim
zaproxy/zaproxy
java
<|fim_suffix|> startingPts.addAll(Arrays.asList(startingPoints)); } SortedSet<String> outputSet = new TreeSet<>(); for (TreePath aPath : startingPts) { Enumeration<?> en = (((SiteNode) aPath.getLastPathComponent()).preorderEnumeration()); while (en.hasMoreElements(...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2010 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_suffix|> null); if (option == JOptionPane.OK_OPTION) { int historyId = idSpinner.getValue(); if (extension.getHistoryReferencesTable().getModel().getEntryRowIndex(historyId) != -1) { extension.showInHistory(extension.getHistory...
fim
zaproxy/zaproxy
java
<|fim_suffix|>on; } @Override public boolean isEnableForInvoker(Invoker invoker, HttpMessageContainer httpMessageContainer) { return (invoker == Invoker.HISTORY_PANEL); } @Override public void performAction(HistoryReference href) { try { extension.showNotesAddDialog...
fim
zaproxy/zaproxy
java
<|fim_suffix|>ate static final long serialVersionUID = -155358408946131183L; private final ExtensionHistory extension; public PopupMenuPurgeHistory(ExtensionHistory extension) { super(Constant.messages.getString("history.purge.popup"), true); this.extension = extension; setAccelerator...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2013 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.zaproxy.zap.extension.history; import org.parosproxy.paros.extension.history.ExtensionHistory; import org.parosproxy.paros.network.HttpMessage; import org.zaproxy.z...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2010 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>omponent; this.newComponent = newComponent; } public HttpPanelComponentInterface getOldComponent() { return oldComponent; } public HttpPanelComponentInterface getNewComponent() { return newComponent; } } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its relat...
fim
zaproxy/zaproxy
java
<|fim_suffix|>xtension.httppanel.HttpPanel} changes * * @param oldMessage can be {@code null} (i.e. when there was no message displayed in the panel) * @param newMessage can be {@code null} (i.e. when the panel is cleared) */ void messageChanged(Message oldMessage, Message newMessage); } <|fim_p...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2011 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_suffix|> initComboChangeMethod(); comboChangeMethod.setEnabled(true); } } } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2011 The ZAP Development Team * * Licensed u...
fim
zaproxy/zaproxy
java
<|fim_suffix|>esponsePanel(this); this.setHideable(false); } @Override protected void initComponents() { addComponent( new ResponseSplitComponent<>(), Model.getSingleton().getOptionsParam().getConfig()); } @Override protected void initSpecial() {} } <|fim_prefix...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2020 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); <|fim_suffix|>s a map of data suitable for including in an...
fim
zaproxy/zaproxy
java
<|fim_suffix|>panel; import java.util.EventListener; public interface MessagePanelEventListener extends EventListener { void componentChanged(ComponentChangedEvent event); void viewSelected(MessageViewSelectedEvent event); } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP i...
fim
zaproxy/zaproxy
java
<|fim_suffix|>currentView) { super(source); this.previousView = previousView; this.currentView = currentView; } public HttpPanelView getPreviousView() { return previousView; } public HttpPanelView getCurrentView() { return currentView; } } <|fim_prefix|>/* ...
fim
zaproxy/zaproxy
java
/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
fim
zaproxy/zaproxy
java
/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
fim
zaproxy/zaproxy
java
<|fim_suffix|>e; } @Override public void unload() { if (getView() != null) { HttpPanelManager panelManager = HttpPanelManager.getInstance(); panelManager.removeRequestComponentFactory(RequestAllComponentFactory.NAME); panelManager.removeRequestComponents(RequestA...
fim
zaproxy/zaproxy
java
<|fim_suffix|> pos = HttpTextViewUtils.getHeaderToViewPosition( this, sm.getMessage().getRequestHeader().toString(), sm.getStart(), sm.getEnd()); } else ...
fim
zaproxy/zaproxy
java
<|fim_suffix|> highlight) { if (!(location instanceof HttpMessageLocation)) { return null; } HttpMessageLocation httpMessageLocation = (HttpMessageLocation) location; switch (httpMessageLocation.getLocation()) { case REQUEST_HEADER: case RESPONSE_HEAD...
fim
zaproxy/zaproxy
java
<|fim_suffix|>e public void search(Pattern p, List<SearchMatch> matches) { String header = ((HttpMessage) getMessage()).getResponseHeader().toString(); Matcher m = p.matcher(getText()); while (m.find()) { int[] position = HttpTextViewU...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>ttpPanelTextArea() { return new HttpRequestBodyPanelTextArea(); } private static class HttpRequestBodyPanelTextArea extends HttpPanelTextArea { private static final long serialVersionUID = -5425819266900748512L; @Override public void search(Pattern p, List<Search...
fim
zaproxy/zaproxy
java
<|fim_suffix|>tStart(), sm.getEnd()); if (pos.length == 0) { return; } highlight(pos[0], pos[1]); } } } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web a...
fim
zaproxy/zaproxy
java
<|fim_suffix|> if (options != null) { if (ViewComponent.HEADER.equals(options)) { headerViews.removeView(viewName); } else if (ViewComponent.BODY.equals(options)) { bodyViews.removeView(viewName); } } } @Override public void cle...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>ppanel.component.split.request.RequestSplitComponent; import org.zaproxy.zap.extension.httppanel.view.impl.models.http.response.ResponseBodyStringHttpPanelViewModel; import org.zaproxy.zap.extension.httppanel.view.impl.models.http.response.ResponseHeaderStringHttpPanelViewModel; import org.zaproxy.zap.ext...
fim
zaproxy/zaproxy
java
<|fim_suffix|>proxy.zap.extension.httppanel.view; public abstract class AbstractByteHttpPanelViewModel extends DefaultHttpPanelViewModel { public abstract byte[] getData(); public abstract void setData(byte[] data); } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTT...
fim
zaproxy/zaproxy
java
<|fim_suffix|>s AbstractStringHttpPanelViewModel extends DefaultHttpPanelViewModel { public abstract String getData(); public abstract void setData(String data); } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. ...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2011 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_suffix|> http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific langua...
fim
zaproxy/zaproxy
java
<|fim_suffix|>ect { private static final long serialVersionUID = 8346389985762067349L; public HttpPanelViewModelEvent(HttpPanelViewModel source) { super(source); } } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web applicati...
fim
zaproxy/zaproxy
java
<|fim_suffix|>Changed(HttpPanelViewModelEvent e); } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the <|fim_middle|>Apache License, Version 2.0 (the "Lice...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application s<|fim_suffix|>lic void removeHttpPanelViewModelListener(HttpPanelViewModelListener l) {} } <|fim_middle|>ecurity. * * Copyright 2012 The ZAP Development Team * * Licensed under the...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache Li<|fim_suffix|>rg.parosproxy.paros.extension.ExtensionHook; import org.zaproxy.zap.extension.htt...
fim
zaproxy/zaproxy
java
<|fim_suffix|>- 1) && cell[16] != null) { // Last cell on last line is used, add a new row listRow.add(newRow()); lastRowChanged++; } fireTableRowsUpdated(row, lastRowChanged); changed = true; } public boolean hasChanged() { return changed; ...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2011 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>SplitComponent.NAME, ResponseImageViewDefaultViewSelector.NAME, ResponseSplitComponent.ViewComponent.BODY); } } private static final class ResponseImageViewFactory implements HttpPanelViewFactory { public static final String NAME = "Respons...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application securit<|fim_suffix|>.Constant; import org.parosproxy.paros.network.HttpMessage; import org.zaproxy.zap.extension.httppanel.Message; import org.zaproxy.zap.extension.httppanel.view.Http...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>ion.httppanel.Message; import org.zaproxy.zap.extension.httppanel.view.AbstractStringHttpPanelViewModel; public abstract class AbstractHttpStringHttpPanelViewModel extends AbstractStringHttpPanelViewModel { protected HttpMessage httpMessage; @Override public void setMessage(Message ...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2013 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, V<|fim_suffix|>p.AbstractHttpByteHttpPanelViewModel; public class RequestBodyByteHttpPa...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and i<|fim_suffix|>nce with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASI...
fim
zaproxy/zaproxy
java
<|fim_suffix|>arnEnabled()) { LOGGER.warn("Could not Save Header: {}", new String(data, 0, pos), e); } throw new InvalidMessageDataException( Constant.messages.getString("http.panel.model.header.warn.malformed"), e); } httpMessage.getRequestBo...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_suffix|> String getData() { if (httpMessage == null) { return ""; } return httpMessage.getRequestHeader().toString().replaceAll(HttpHeader.CRLF, HttpHeader.LF); } @Override public void setData(String data) { if (httpMessage == null) { return; ...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may n<|fim_suffix|>in writing, software * distribut...
fim
zaproxy/zaproxy
java
<|fim_suffix|>erride public void setData(byte[] data) { if (httpMessage == null) { return; } int pos = HttpPanelViewModelUtils.findHeaderLimit(data); if (pos == -1) { if (LOGGER.isWarnEnabled()) { LOGGER.warn("Could not Save Header, limit not...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you <|fim_suffix|> (HttpMalformedHeaderException e) { ...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>PanelViewModel; public class ResponseStringHttpPanelViewModel extends AbstractHttpStringHttpPanelViewModel { private static final Logger LOGGER = LogManager.getLogger(ResponseStringHttpPanelViewModel.class); @Override public String getData() { if (httpMessage == null || ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>ME = "RequestLargeRequestAllViewFactory"; @Override public String getName() { return NAME; } @Override public HttpPanelView getNewView() { return new RequestLargeRequestAllView(new LargeRequestStringHttpPanelViewModel()); } ...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2014 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2014 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2014 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_suffix|> LargeResponseStringHttpPanelViewModel()); } @Override public Object getOptions() { return null; } } private static final class LargeResponseDefaultAllViewSelector implements HttpPanelDefaultViewSelector { public static final Strin...
fim
zaproxy/zaproxy
java
<|fim_suffix|>ewModel; /** * @deprecated (2.12.0) No longer in use. */ @Deprecated public class LargeResponseStringHttpPanelViewModel extends ResponseStringHttpPanelViewModel { @Override public String getData() { if (httpMessage == null || httpMessage.getResponseHeader().isEmpty()) { ret...
fim
zaproxy/zaproxy
java
/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
fim
zaproxy/zaproxy
java
/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
fim
zaproxy/zaproxy
java
<|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License");<|fim_suffix|>ed, so all supported */ @Override publ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>protected abstract HtmlParameter getDefaultHtmlParameter(); } <|fim_prefix|>/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2012 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 ...
fim
zaproxy/zaproxy
java
<|fim_suffix|>ide public void actionPerformed(ActionEvent e) { ((JComboBox<?>) e.getSource()).setSelectedIndex(0); } } private static final class ComboBoxCellRenderer extends JComboBox<Object> implements TableCellRenderer { private static final long serialVersio...
fim
zaproxy/zaproxy
java