Package burp.api.montoya.proxy
Interface ResponseInitialInterceptResult
-
public interface ResponseInitialInterceptResultExtensions can implement this interface when returning a result fromProxyHttpResponseHandler.handleReceivedResponse(InterceptedHttpResponse, HttpRequest, Annotations).
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description InitialInterceptActionaction()This method retrieves the current initial intercept action.Annotationsannotations()This method retrieves the annotations for the current response after any modifications by the extension.static ResponseInitialInterceptResultdoNotIntercept(HttpResponse response)This method can be used to create a result that causes Burp Proxy to forward the response without presenting it to the user.static ResponseInitialInterceptResultdoNotIntercept(HttpResponse response, Annotations annotations)This method can be used to create a result that causes Burp Proxy to forward the response without presenting it to the user.static ResponseInitialInterceptResultdrop()This method can be used to create a result that causes Burp Proxy to drop the response.static ResponseInitialInterceptResultfollowUserRules(HttpResponse response)This method can be used to create a result that causes Burp Proxy to follow the current interception rules to determine the appropriate action to take for the response.static ResponseInitialInterceptResultfollowUserRules(HttpResponse response, Annotations annotations)This method can be used to create a result that causes Burp Proxy to follow the current interception rules to determine the appropriate action to take for the response.static ResponseInitialInterceptResultinitialInterceptResult(HttpResponse response, Annotations annotations, InitialInterceptAction action)This method can be used to create a default implementation of an initial intercept result for an HTTP response.static ResponseInitialInterceptResultintercept(HttpResponse response)This method can be used to create a result that causes Burp Proxy to present the response to the user for manual review or modification.static ResponseInitialInterceptResultintercept(HttpResponse response, Annotations annotations)This method can be used to create a result that causes Burp Proxy to present the response to the user for manual review or modification.HttpResponseresponse()This method retrieves the current HTTP response to forward after any modifications by the extension.
-
-
-
Method Detail
-
intercept
static ResponseInitialInterceptResult intercept(HttpResponse response)
This method can be used to create a result 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.- Returns:
- The
ResponseInitialInterceptResultthat causes Burp Proxy to present the response to the user for manual review or modification.
-
intercept
static ResponseInitialInterceptResult intercept(HttpResponse response, Annotations annotations)
This method can be used to create a result 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
ResponseInitialInterceptResultthat causes Burp Proxy to present the response to the user for manual review or modification.
-
doNotIntercept
static ResponseInitialInterceptResult doNotIntercept(HttpResponse response)
This method can be used to create a result that causes Burp Proxy to forward the response without presenting it to the user.- Parameters:
response- TheHttpResponsereceived after any modifications by the extension.- Returns:
- The
ResponseInitialInterceptResultthat causes Burp Proxy to forward the response without presenting it to the user.
-
doNotIntercept
static ResponseInitialInterceptResult doNotIntercept(HttpResponse response, Annotations annotations)
This method can be used to create a result 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
ResponseInitialInterceptResultthat causes Burp Proxy to forward the response without presenting it to the user.
-
followUserRules
static ResponseInitialInterceptResult followUserRules(HttpResponse response)
This method can be used to create a result 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.- Returns:
- The
ResponseInitialInterceptResultthat causes Burp Proxy to follow the current interception rules to determine the appropriate action to take for the response.
-
followUserRules
static ResponseInitialInterceptResult followUserRules(HttpResponse response, Annotations annotations)
This method can be used to create a result 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
ResponseInitialInterceptResultthat causes Burp Proxy to follow the current interception rules to determine the appropriate action to take for the response.
-
drop
static ResponseInitialInterceptResult drop()
This method can be used to create a result that causes Burp Proxy to drop the response.- Returns:
- The
ResponseInitialInterceptResultthat causes Burp Proxy to drop the response.
-
initialInterceptResult
static ResponseInitialInterceptResult initialInterceptResult(HttpResponse response, Annotations annotations, InitialInterceptAction action)
This method can be used to create a default implementation of an initial intercept result for an HTTP response.- Parameters:
response- TheHttpResponsereceived after any modifications by the extension.annotations- TheAnnotationsfor the intercepted HTTP response.action- TheInitialInterceptActionfor the HTTP response.- Returns:
- The
ResponseInitialInterceptResultincluding the HTTP response, annotations and initial intercept action.
-
action
InitialInterceptAction action()
This method retrieves the current initial intercept action.- Returns:
- The
InitialInterceptAction.
-
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.
-
-