Logo Search packages:      
Sourcecode: jakarta-jmeter version File versions  Download package

String org::apache::jmeter::protocol::http::sampler::HTTPSampler2::setConnectionCookie ( HttpMethod  method,
URL  u,
CookieManager  cookieManager 
) [inline, private]

Extracts all the required cookies for that particular URL request and sets them in the HttpMethod passed in.

method HttpMethod for the request
u URL of the request
cookieManager the CookieManager containing all the cookies
a String containing the cookie details (for the response) May be null

Definition at line 653 of file HTTPSampler2.java.

References org::apache::jmeter::protocol::http::control::CookieManager::getCookieHeaderForURL().

Referenced by setupConnection().

        String cookieHeader = null;
        if (cookieManager != null) {
            cookieHeader = cookieManager.getCookieHeaderForURL(u);
            if (cookieHeader != null) {
                method.setRequestHeader(HEADER_COOKIE, cookieHeader);
        return cookieHeader;

Generated by  Doxygen 1.6.0   Back to index