Interface ProxyResponseReceivedAction
public interface ProxyResponseReceivedAction
Extensions can implement this interface when returning a result from
ProxyResponseHandler.handleResponseReceived(InterceptedResponse).-
Method Summary
Modifier and TypeMethodDescriptionaction()This method retrieves the current initial intercept action.This method retrieves the annotations for the current response after any modifications by the extension.static ProxyResponseReceivedActioncontinueWith(HttpResponse response) This method can be used to create an action that causes Burp Proxy to follow the current interception rules to determine the appropriate action to take for the response.
Annotations are not modified.static ProxyResponseReceivedActioncontinueWith(HttpResponse response, Annotations annotations) This method can be used to create an action that causes Burp Proxy to follow the current interception rules to determine the appropriate action to take for the response.static ProxyResponseReceivedActiondoNotIntercept(HttpResponse response) This method can be used to create an action that causes Burp Proxy to forward the response without presenting it to the user.
Annotations are not modified.static ProxyResponseReceivedActiondoNotIntercept(HttpResponse response, Annotations annotations) This method can be used to create an action that causes Burp Proxy to forward the response without presenting it to the user.static ProxyResponseReceivedActiondrop()This method can be used to create an action that causes Burp Proxy to drop the response.static ProxyResponseReceivedActionintercept(HttpResponse response) This method can be used to create an action that causes Burp Proxy to present the response to the user for manual review or modification.
Annotations are not modified.static ProxyResponseReceivedActionintercept(HttpResponse response, Annotations annotations) This method can be used to create an action that causes Burp Proxy to present the response to the user for manual review or modification.static ProxyResponseReceivedActionproxyResponseReceivedAction(HttpResponse response, Annotations annotations, MessageReceivedAction action) This method can be used to create a default implementation of aProxyResponseReceivedActionfor an HTTP response.response()This method retrieves the current HTTP response to forward after any modifications by the extension.
-
Method Details
-
action
MessageReceivedAction action()This method retrieves the current initial intercept action.- Returns:
- The
MessageReceivedAction.
-
response
HttpResponse response()This method retrieves the current HTTP response to forward after any modifications by the extension.- Returns:
- The
HttpResponseto forward after any modifications by the extension.
-
annotations
Annotations annotations()This method retrieves the annotations for the current response after any modifications by the extension.- Returns:
- The
Annotationsfor the intercepted HTTP response.
-
continueWith
This method can be used to create an action that causes Burp Proxy to follow the current interception rules to determine the appropriate action to take for the response.
Annotations are not modified.- Parameters:
response- TheHttpResponsereceived after any modifications by the extension.- Returns:
- The
ProxyResponseReceivedActionthat causes Burp Proxy to follow the current interception rules to determine the appropriate action to take for the response.
-
continueWith
This method can be used to create an action that causes Burp Proxy to follow the current interception rules to determine the appropriate action to take for the response.- Parameters:
response- TheHttpResponsereceived after any modifications by the extension.annotations- TheAnnotationsfor the intercepted HTTP response.- Returns:
- The
ProxyResponseReceivedActionthat causes Burp Proxy to follow the current interception rules to determine the appropriate action to take for the response.
-
intercept
This method can be used to create an action that causes Burp Proxy to present the response to the user for manual review or modification.
Annotations are not modified.- Parameters:
response- TheHttpResponsereceived after any modifications by the extension.- Returns:
- The
ProxyResponseReceivedActionthat causes Burp Proxy to present the response to the user for manual review or modification.
-
intercept
This method can be used to create an action that causes Burp Proxy to present the response to the user for manual review or modification.- Parameters:
response- TheHttpResponsereceived after any modifications by the extension.annotations- TheAnnotationsfor the intercepted HTTP response.- Returns:
- The
ProxyResponseReceivedActionthat causes Burp Proxy to present the response to the user for manual review or modification.
-
doNotIntercept
This method can be used to create an action that causes Burp Proxy to forward the response without presenting it to the user.
Annotations are not modified.- Parameters:
response- TheHttpResponsereceived after any modifications by the extension.- Returns:
- The
ProxyResponseReceivedActionthat causes Burp Proxy to forward the response without presenting it to the user.
-
doNotIntercept
This method can be used to create an action that causes Burp Proxy to forward the response without presenting it to the user.- Parameters:
response- TheHttpResponsereceived after any modifications by the extension.annotations- TheAnnotationsfor the intercepted HTTP response.- Returns:
- The
ProxyResponseReceivedActionthat causes Burp Proxy to forward the response without presenting it to the user.
-
drop
This method can be used to create an action that causes Burp Proxy to drop the response.- Returns:
- The
ProxyResponseReceivedActionthat causes Burp Proxy to drop the response.
-
proxyResponseReceivedAction
static ProxyResponseReceivedAction proxyResponseReceivedAction(HttpResponse response, Annotations annotations, MessageReceivedAction action) This method can be used to create a default implementation of aProxyResponseReceivedActionfor an HTTP response.- Parameters:
response- TheHttpResponsereceived after any modifications by the extension.annotations- TheAnnotationsfor the intercepted HTTP response.nullvalue will leave the annotations unmodified.action- TheMessageReceivedActionfor the HTTP response.- Returns:
- The
ProxyResponseReceivedActionincluding the HTTP response, annotations and intercept action.
-