Package burp.api.montoya.proxy
Interface RequestInitialInterceptResult
-
public interface RequestInitialInterceptResultExtensions can implement this interface when returning a result fromProxyHttpRequestHandler.handleReceivedRequest(InterceptedHttpRequest, 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 request after any modifications by the extension.static RequestInitialInterceptResultdoNotIntercept(HttpRequest request)This method can be used to create a result that causes Burp Proxy to forward the request without presenting it to the user.static RequestInitialInterceptResultdoNotIntercept(HttpRequest request, Annotations annotations)This method can be used to create a result that causes Burp Proxy to forward the request without presenting it to the user.static RequestInitialInterceptResultdrop()This method can be used to create a result that causes Burp Proxy to drop the request.static RequestInitialInterceptResultfollowUserRules(HttpRequest request)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 request.static RequestInitialInterceptResultfollowUserRules(HttpRequest request, 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 request.static RequestInitialInterceptResultinitialInterceptResult(HttpRequest request, Annotations annotations, InitialInterceptAction action)This method can be used to create a default implementation of an initial intercept result for an HTTP request.static RequestInitialInterceptResultintercept(HttpRequest request)This method can be used to create a result that causes Burp Proxy to present the request to the user for manual review or modification.static RequestInitialInterceptResultintercept(HttpRequest request, Annotations annotations)This method can be used to create a result that causes Burp Proxy to present the request to the user for manual review or modification.HttpRequestrequest()This method retrieves the current HTTP request to forward after any modifications by the extension.
-
-
-
Method Detail
-
intercept
static RequestInitialInterceptResult intercept(HttpRequest request)
This method can be used to create a result that causes Burp Proxy to present the request to the user for manual review or modification.- Parameters:
request- TheHttpRequestreceived after any modifications by the extension.- Returns:
- The
RequestInitialInterceptResultthat causes Burp Proxy to present the request to the user for manual review or modification.
-
intercept
static RequestInitialInterceptResult intercept(HttpRequest request, Annotations annotations)
This method can be used to create a result that causes Burp Proxy to present the request to the user for manual review or modification.- Parameters:
request- TheHttpRequestreceived after any modifications by the extension.annotations- TheAnnotationsfor the intercepted HTTP request.- Returns:
- The
RequestInitialInterceptResultthat causes Burp Proxy to present the request to the user for manual review or modification.
-
doNotIntercept
static RequestInitialInterceptResult doNotIntercept(HttpRequest request)
This method can be used to create a result that causes Burp Proxy to forward the request without presenting it to the user.- Parameters:
request- TheHttpRequestreceived after any modifications by the extension.- Returns:
- The
RequestInitialInterceptResultthat causes Burp Proxy to forward the request without presenting it to the user.
-
doNotIntercept
static RequestInitialInterceptResult doNotIntercept(HttpRequest request, Annotations annotations)
This method can be used to create a result that causes Burp Proxy to forward the request without presenting it to the user.- Parameters:
request- TheHttpRequestreceived after any modifications by the extension.annotations- TheAnnotationsfor the intercepted HTTP request.- Returns:
- The
RequestInitialInterceptResultthat causes Burp Proxy to forward the request without presenting it to the user.
-
followUserRules
static RequestInitialInterceptResult followUserRules(HttpRequest request)
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 request.- Parameters:
request- TheHttpRequestreceived after any modifications by the extension.- Returns:
- The
RequestInitialInterceptResultthat allows user rules to be followed.
-
followUserRules
static RequestInitialInterceptResult followUserRules(HttpRequest request, 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 request.- Parameters:
request- TheHttpRequestreceived after any modifications by the extension.annotations- TheAnnotationsfor the intercepted HTTP request.- Returns:
- The
RequestInitialInterceptResultthat causes Burp Proxy to follow the current interception rules to determine the appropriate action to take for the request.
-
drop
static RequestInitialInterceptResult drop()
This method can be used to create a result that causes Burp Proxy to drop the request.- Returns:
- The
RequestInitialInterceptResultthat causes Burp Proxy to drop the request.
-
initialInterceptResult
static RequestInitialInterceptResult initialInterceptResult(HttpRequest request, Annotations annotations, InitialInterceptAction action)
This method can be used to create a default implementation of an initial intercept result for an HTTP request.- Parameters:
request- TheHttpRequestreceived after any modifications by the extension.annotations- TheAnnotationsfor the intercepted HTTP request.action- TheInitialInterceptActionfor the HTTP request.- Returns:
- The
RequestInitialInterceptResultincluding the HTTP request, annotations and initial intercept action.
-
action
InitialInterceptAction action()
This method retrieves the current initial intercept action.- Returns:
- The
InitialInterceptAction.
-
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.
-
-