Package burp
Interface IRequestInfo
-
public interface IRequestInfoThis interface is used to retrieve key details about an HTTP request. Extensions can obtain anIRequestInfoobject for a given request by callingIExtensionHelpers.analyzeRequest().
-
-
Field Summary
Fields Modifier and Type Field Description static byteCONTENT_TYPE_AMFUsed to indicate AMF content.static byteCONTENT_TYPE_JSONUsed to indicate JSON content.static byteCONTENT_TYPE_MULTIPARTUsed to indicate multi-part content.static byteCONTENT_TYPE_NONEUsed to indicate that there is no content.static byteCONTENT_TYPE_UNKNOWNUsed to indicate unknown content.static byteCONTENT_TYPE_URL_ENCODEDUsed to indicate URL-encoded content.static byteCONTENT_TYPE_XMLUsed to indicate XML content.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetBodyOffset()This method is used to obtain the offset within the request where the message body begins.bytegetContentType()This method is used to obtain the content type of the message body.java.util.List<java.lang.String>getHeaders()This method is used to obtain the HTTP headers contained in the request.java.lang.StringgetMethod()This method is used to obtain the HTTP method used in the request.java.util.List<IParameter>getParameters()This method is used to obtain the parameters contained in the request.java.net.URLgetUrl()This method is used to obtain the URL in the request.
-
-
-
Field Detail
-
CONTENT_TYPE_NONE
static final byte CONTENT_TYPE_NONE
Used to indicate that there is no content.- See Also:
- Constant Field Values
-
CONTENT_TYPE_URL_ENCODED
static final byte CONTENT_TYPE_URL_ENCODED
Used to indicate URL-encoded content.- See Also:
- Constant Field Values
-
CONTENT_TYPE_MULTIPART
static final byte CONTENT_TYPE_MULTIPART
Used to indicate multi-part content.- See Also:
- Constant Field Values
-
CONTENT_TYPE_XML
static final byte CONTENT_TYPE_XML
Used to indicate XML content.- See Also:
- Constant Field Values
-
CONTENT_TYPE_JSON
static final byte CONTENT_TYPE_JSON
Used to indicate JSON content.- See Also:
- Constant Field Values
-
CONTENT_TYPE_AMF
static final byte CONTENT_TYPE_AMF
Used to indicate AMF content.- See Also:
- Constant Field Values
-
CONTENT_TYPE_UNKNOWN
static final byte CONTENT_TYPE_UNKNOWN
Used to indicate unknown content.- See Also:
- Constant Field Values
-
-
Method Detail
-
getMethod
java.lang.String getMethod()
This method is used to obtain the HTTP method used in the request.- Returns:
- The HTTP method used in the request.
-
getUrl
java.net.URL getUrl()
This method is used to obtain the URL in the request.- Returns:
- The URL in the request.
-
getHeaders
java.util.List<java.lang.String> getHeaders()
This method is used to obtain the HTTP headers contained in the request.- Returns:
- The HTTP headers contained in the request.
-
getParameters
java.util.List<IParameter> getParameters()
This method is used to obtain the parameters contained in the request.- Returns:
- The parameters contained in the request.
-
getBodyOffset
int getBodyOffset()
This method is used to obtain the offset within the request where the message body begins.- Returns:
- The offset within the request where the message body begins.
-
getContentType
byte getContentType()
This method is used to obtain the content type of the message body.- Returns:
- An indication of the content type of the message body. Available types are defined within this interface.
-
-