@@ -149,7 +149,7 @@ public void processChallenge(
149149 }
150150
151151 if (LOG .isDebugEnabled ()) {
152- final HttpClientContext clientContext = HttpClientContext .adapt (context );
152+ final HttpClientContext clientContext = HttpClientContext .cast (context );
153153 final String exchangeId = clientContext .getExchangeId ();
154154 LOG .debug ("{} GSS init {}" , exchangeId , gssHostname );
155155 }
@@ -159,7 +159,7 @@ public void processChallenge(
159159 case UNINITIATED :
160160 if (challenge != NO_TOKEN ) {
161161 if (LOG .isDebugEnabled ()) {
162- final HttpClientContext clientContext = HttpClientContext .adapt (context );
162+ final HttpClientContext clientContext = HttpClientContext .cast (context );
163163 final String exchangeId = clientContext .getExchangeId ();
164164 LOG .debug ("{} Internal GSS error: token received when none was sent yet: {}" , exchangeId , challengeToken );
165165 }
@@ -176,7 +176,7 @@ public void processChallenge(
176176 if (!gssContext .isEstablished ()) {
177177 if (LOG .isDebugEnabled ()) {
178178 final HttpClientContext clientContext =
179- HttpClientContext .adapt (context );
179+ HttpClientContext .cast (context );
180180 final String exchangeId = clientContext .getExchangeId ();
181181 LOG .debug ("{} GSSContext is not established " , exchangeId );
182182 }
@@ -187,7 +187,7 @@ public void processChallenge(
187187 } else if (!gssContext .getMutualAuthState ()) {
188188 if (LOG .isDebugEnabled ()) {
189189 final HttpClientContext clientContext =
190- HttpClientContext .adapt (context );
190+ HttpClientContext .cast (context );
191191 final String exchangeId = clientContext .getExchangeId ();
192192 LOG .debug ("{} requireMutualAuth is set but GSSAUthContext does not have"
193193 + " mutualAuthState set" , exchangeId );
0 commit comments