コード例 #1
0
ファイル: HTTPSession.java プロジェクト: msdsoftware/thredds
 protected void init(AuthScope scope, String actualurl) throws HTTPException {
   assert (scope != null);
   if (actualurl != null) this.sessionURI = actualurl;
   else this.sessionURI = HTTPAuthUtil.authscopeToURI(scope).toString();
   this.scope = scope;
   this.scopeURI = HTTPAuthUtil.authscopeToURI(scope);
   this.cachevalid = false; // Force build on first use
   this.sessioncontext.setCookieStore(new BasicCookieStore());
   this.sessioncontext.setAttribute(HttpClientContext.AUTH_CACHE, new BasicAuthCache());
 }