Package burp.api.montoya.proxy
Interface ResponseFinalInterceptResult
-
public interface ResponseFinalInterceptResultExtensions can implement this interface when returning a result fromProxyHttpResponseHandler.handleResponseToReturn(InterceptedHttpResponse, HttpRequest, Annotations).
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description FinalInterceptActionaction()This method retrieves the current final intercept action.Annotationsannotations()This method retrieves the annotations for the current response after any modifications by the extension.static ResponseFinalInterceptResultcontinueWith(HttpResponse response)This method can be used to create a result that causes Burp Proxy to forward the response.static ResponseFinalInterceptResultcontinueWith(HttpResponse response, Annotations annotations)This method can be used to create a result that causes Burp Proxy to forward the response.static ResponseFinalInterceptResultdrop()This method can be used to create a result that causes Burp Proxy to drop the response.static ResponseFinalInterceptResultfinalInterceptResult(HttpResponse response, Annotations annotations, FinalInterceptAction action)This method can be used to create a default implementation of a final intercept result for an HTTP response.HttpResponseresponse()This method retrieves the current HTTP response to forward after any modifications by the extension.
-
-
-
Method Detail
-
continueWith
static ResponseFinalInterceptResult continueWith(HttpResponse response)
This method can be used to create a result that causes Burp Proxy to forward the response.- Parameters:
response- TheHttpResponseto forward after any modifications by the extension.- Returns:
- The
ResponseFinalInterceptResultthat causes Burp Proxy to forward the response.
-
continueWith
static ResponseFinalInterceptResult continueWith(HttpResponse response, Annotations annotations)
This method can be used to create a result that causes Burp Proxy to forward the response.- Parameters:
response- TheHttpResponseto forward after any modifications by the extension.annotations- TheAnnotationsfor the intercepted HTTP response.- Returns:
- The
ResponseFinalInterceptResultthat causes Burp Proxy to forward the response.
-
drop
static ResponseFinalInterceptResult drop()
This method can be used to create a result that causes Burp Proxy to drop the response.- Returns:
- The
ResponseFinalInterceptResultthat causes Burp Proxy to drop the response.
-
finalInterceptResult
static ResponseFinalInterceptResult finalInterceptResult(HttpResponse response, Annotations annotations, FinalInterceptAction action)
This method can be used to create a default implementation of a final intercept result for an HTTP response.- Parameters:
response- TheHttpResponseto forward after any modifications by the extension.annotations- TheAnnotationsfor the intercepted HTTP response.action- TheFinalInterceptActionfor the HTTP response.- Returns:
- The
ResponseFinalInterceptResultincluding the HTTP response, annotations and final intercept action.
-
action
FinalInterceptAction action()
This method retrieves the current final intercept action.- Returns:
- The
FinalInterceptAction.
-
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.
-
-