Search in sources :

Example 1 with SearchableHttpPanelComponent

use of org.zaproxy.zap.extension.search.SearchableHttpPanelComponent in project zaproxy by zaproxy.

the class HttpPanel method highlightBody.

public void highlightBody(SearchMatch sm) {
    if (currentComponent instanceof SearchableHttpPanelComponent) {
        ((SearchableHttpPanelComponent) currentComponent).highlightBody(sm);
    } else {
        HttpPanelComponentInterface component = findSearchablePanel();
        if (component != null) {
            switchComponent(component.getName());
            ((SearchableHttpPanelComponent) currentComponent).highlightBody(sm);
        }
    }
}
Also used : HttpPanelComponentInterface(org.zaproxy.zap.extension.httppanel.component.HttpPanelComponentInterface) SearchableHttpPanelComponent(org.zaproxy.zap.extension.search.SearchableHttpPanelComponent)

Example 2 with SearchableHttpPanelComponent

use of org.zaproxy.zap.extension.search.SearchableHttpPanelComponent in project zaproxy by zaproxy.

the class HttpPanel method highlightHeader.

public void highlightHeader(SearchMatch sm) {
    if (currentComponent instanceof SearchableHttpPanelComponent) {
        ((SearchableHttpPanelComponent) currentComponent).highlightHeader(sm);
    } else {
        HttpPanelComponentInterface component = findSearchablePanel();
        if (component != null) {
            switchComponent(component.getName());
            ((SearchableHttpPanelComponent) currentComponent).highlightHeader(sm);
        }
    }
}
Also used : HttpPanelComponentInterface(org.zaproxy.zap.extension.httppanel.component.HttpPanelComponentInterface) SearchableHttpPanelComponent(org.zaproxy.zap.extension.search.SearchableHttpPanelComponent)

Aggregations

HttpPanelComponentInterface (org.zaproxy.zap.extension.httppanel.component.HttpPanelComponentInterface)2 SearchableHttpPanelComponent (org.zaproxy.zap.extension.search.SearchableHttpPanelComponent)2