Package com.xceptance.xlt.api.engine
Class NetworkData
java.lang.Object
com.xceptance.xlt.api.engine.NetworkData
The
NetworkData class holds a certain web request and the corresponding web response if there was any.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the additional request HTTP headers.Returns the response content.Returns the content type of the response.Returns the underlying request object for direct access.Returns the request body.Returns the request method.Returns the request parameters.Returns the underlying response object for direct access.Returns the response HTTP headers.intReturns the response status code.Returns the response status message.getURL()Returns the request URL.
-
Constructor Details
-
NetworkData
Constructor.- Parameters:
request- the requestresponse- the response (may benull)
-
-
Method Details
-
getRequestMethod
Returns the request method.- Returns:
- the request method
-
getRequestBody
Returns the request body.- Returns:
- the request body
-
getRequestParameters
Returns the request parameters.- Returns:
- the request parameters
-
getAdditionalRequestHeaders
Returns the additional request HTTP headers.- Returns:
- the additional request HTTP headers
-
getContentAsString
Returns the response content.- Returns:
- the response content
-
getContentType
Returns the content type of the response.- Returns:
- the content type of the response
-
getResponseStatusMessage
Returns the response status message.- Returns:
- the response status message
-
getResponseStatusCode
public int getResponseStatusCode()Returns the response status code.- Returns:
- the response status code
-
getResponseHeaders
Returns the response HTTP headers.- Returns:
- the response HTTP headers
-
getURL
Returns the request URL.- Returns:
- the request URL
-
getRequest
Returns the underlying request object for direct access.- Returns:
- the request
-
getResponse
Returns the underlying response object for direct access.- Returns:
- the response
-