Package burp.api.montoya.proxy
Interface RequestFinalInterceptResult
-
public interface RequestFinalInterceptResultExtensions can implement this interface when returning a result fromProxyHttpRequestHandler.handleRequestToIssue(InterceptedHttpRequest, 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 request after any modifications by the extension.static RequestFinalInterceptResultcontinueWith(HttpRequest request)This method can be used to create a result that causes Burp Proxy to forward the request.static RequestFinalInterceptResultcontinueWith(HttpRequest request, Annotations annotations)This method can be used to create a result that causes Burp Proxy to forward the request.static RequestFinalInterceptResultdrop()This method can be used to create a result that causes Burp Proxy to drop the request.static RequestFinalInterceptResultfinalInterceptResult(HttpRequest request, Annotations annotations, FinalInterceptAction action)This method can be used to create a default implementation of a final intercept result for an HTTP request.HttpRequestrequest()This method retrieves the current HTTP request to forward after any modifications by the extension.
-
-
-
Method Detail
-
continueWith
static RequestFinalInterceptResult continueWith(HttpRequest request)
This method can be used to create a result that causes Burp Proxy to forward the request.- Parameters:
request- TheHttpRequestto forward after any modifications by the extension.- Returns:
- The
RequestFinalInterceptResultthat causes Burp Proxy to forward the request.
-
continueWith
static RequestFinalInterceptResult continueWith(HttpRequest request, Annotations annotations)
This method can be used to create a result that causes Burp Proxy to forward the request.- Parameters:
request- TheHttpRequestto forward after any modifications by the extension.annotations- TheAnnotationsfor the intercepted HTTP request.- Returns:
- The
RequestFinalInterceptResultthat causes Burp Proxy to forward the request.
-
drop
static RequestFinalInterceptResult drop()
This method can be used to create a result that causes Burp Proxy to drop the request.- Returns:
- The
RequestFinalInterceptResultthat causes Burp Proxy to drop the request.
-
finalInterceptResult
static RequestFinalInterceptResult finalInterceptResult(HttpRequest request, Annotations annotations, FinalInterceptAction action)
This method can be used to create a default implementation of a final intercept result for an HTTP request.- Parameters:
request- TheHttpRequestto forward after any modifications by the extension.annotations- TheAnnotationsfor the intercepted HTTP request.action- TheFinalInterceptActionfor the HTTP request.- Returns:
- The
RequestFinalInterceptResultincluding the HTTP request, annotations and final intercept action.
-
action
FinalInterceptAction action()
This method retrieves the current final intercept action.- Returns:
- The
FinalInterceptAction.
-
request
HttpRequest request()
This method retrieves the current HTTP request to forward after any modifications by the extension.- Returns:
- The
HttpRequestto forward after any modifications by the extension.
-
annotations
Annotations annotations()
This method retrieves the annotations for the current request after any modifications by the extension.- Returns:
- The
Annotationsfor the intercepted HTTP request.
-
-