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

String org::apache::jmeter::protocol::http::sampler::HTTPSampler::setConnectionCookie ( HttpURLConnection  conn,
URL  u,
CookieManager  cookieManager 
) [inline, private]

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

conn HttpUrlConnection which represents the URL request
u URL of the URL request
cookieManager the CookieManager containing all the cookies for this UrlConfig

Definition at line 354 of file HTTPSampler.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) {
                conn.setRequestProperty(HEADER_COOKIE, cookieHeader);
        return cookieHeader;

Generated by  Doxygen 1.6.0   Back to index