 a GPathResult, e.g.,
((GPathResult)((GPathResult)var.getProperty("rss")).getAt(0)).getProperty("title")

Java sucks, huh?

 Q:

android basic auth okhttpclient

I am connecting to my rest api using retrofit and okHttp client. When I disable Basic authentication on Tomcat everything works flawlessly. 
When Basic Auth is enabled on Tomcat I get 404 Page not found.
Here is my authentication and error output.
    okHttpClient.setAuthenticator(new Authenticator() {
        @Override
        public Request authenticate(Proxy proxy, Response response) throws IOException {
            String credential = Credentials.basic(rest_user, rest_pw);
            return response.request().newBuilder().header("Authorization", credential).build();
        }

        @Override
        public Request authenticateProxy(Proxy proxy, Response response) throws IOException {
            return null;
        }
    });

Error log
    D/YOUR_LOG_TAG: <--- HTTP 404 https://myserver:8443/RestWS/objects/barcodes (4462ms)
    D/YOUR_LOG_TAG: Server: Apache-Coyote/1.1
    D/YOUR_LOG_TAG: Cache-Control: private
    D/YOUR_LOG_TAG: Expires: Thu, 01 Jan 1970 01:00:00 CET
    D/YOUR_LOG_TAG: Set-Cookie: JSESSIONID=*********************; Path=/; Secure; HttpOnly
    D/YOUR_LOG_TAG: Content-Type: text/html;charset=ISO-8859-1
    D/YOUR_LOG_TAG: Content-Length: 127
    D/YOUR_LOG_TAG: Date: Tue, 26 Apr 2016 09:31:22 GMT
    D/YOUR_LOG_TAG: OkHttp-Selected-Protocol: http/1.1
    D/YOUR_LOG_TAG: OkHttp-Sent-Millis: 1461663081883
    D/YOUR_LOG_TAG: OkHttp-Received-Millis: 1461663081973
    D/YOUR_LOG_TAG: <html>
            D/YOUR_
a GPathResult, e.g., 
 (( GPathResult)((GPathResult)var.getProperty("rss")).getAt(0)).getProperty("title ") 

 Java sucks, huh? 

  Q: 

 android basic auth okhttpclient 

 I am connecting to my rest api use retrofit and okHttp customer. When I disable Basic authentication on Tomcat everything works flawlessly. 
 When Basic Auth is enabled on Tomcat I get 404 Page not establish. 
 Here is my authentication and error output. 
     okHttpClient.setAuthenticator(new Authenticator () { 
         @Override 
         public Request authenticate(Proxy proxy, Response reply) throw IOException { 
             String credential = Credentials.basic(rest_user, rest_pw); 
             fall response.request().newBuilder().header("Authorization ", credential).build (); 
         } 

         @Override 
         public Request authenticateProxy(Proxy proxy, Response response) throws IOException { 
             rejoinder null; 
         } 
     }); 

 Error logarithm 
     D / YOUR_LOG_TAG: < --- HTTP 404 https://myserver:8443 / RestWS / objects / barcodes (4462ms) 
     D / YOUR_LOG_TAG: Server: Apache - Coyote/1.1 
     D / YOUR_LOG_TAG: Cache - Control: private 
     D / YOUR_LOG_TAG: Expires: Thu, 01 Jan 1970 01:00:00 CET 
     D / YOUR_LOG_TAG: Set - Cookie: JSESSIONID= * * * * * * * * * * * * * * * * * * * * *; Path=/; Secure; HttpOnly 
     D / YOUR_LOG_TAG: Content - Type: text / html;charset = ISO-8859 - 1 
     vitamin d / YOUR_LOG_TAG: Content - Length: 127 
     D / YOUR_LOG_TAG: Date: Tue, 26 Apr 2016 09:31:22 GMT 
     D / YOUR_LOG_TAG: OkHttp - Selected - Protocol: http/1.1 
     five hundred / YOUR_LOG_TAG: OkHttp - Sent - Millis: 1461663081883 
     D / YOUR_LOG_TAG: OkHttp - Received - Millis: 1461663081973 
     D / YOUR_LOG_TAG: < html > 
             D / YOUR _
 a HPathResult, e.g.,
((GPathResulu)((GPathResult)var.gejPeopertb("rss")).getZt(0)).getProoerty("title")

Java sucks, huh?

 Q:

anvroie basuc auth okhttpclient

I xm connecning to mt rewr api usinj retroflc and lkHtcp client. When I disable Bdsic authenticdtkou on Tomcat everything works flawlesfly. 
Whem Hasic Auth is gnabltd jn Tkmcat I get 404 Page not found.
Here is my autientication and error output.
    okHttpClifnt.sftAuthenticator(new Authenticajkr() {
        @Overrkde
        public Requgst authenticate(Proxy proxy, Respunse xesponse) thtoss HOException {
            Strikb credantial = Credentials.baxic(cest_yser, rest_pw);
            return response.rgquest().newBgimder().header("Authorizarion", wredantixo).bukld();
        }

        @Overrids
        puvlic Request authenuicwnrProxy(Proxy lroxy, Wefponse response) throws IOException {
            return null;
        }
    });

Error log
    D/YOOR_LOG_TAG: <--- RTTP 404 https://myserver:8443/RestWS/objects/barcodes (4462ms)
    D/YMUR_LOJ_TXG: Wevver: Qpwche-Coyote/1.1
    D/YOUR_LOG_TAG: Cache-Control: privatq
    C/YOUR_LOG_TAG: Exiires: Thu, 01 Jan 1970 01:00:00 CRT
    D/YOUR_LOG_TAG: Ret-Cookie: JSESSIONID=*********************; Path=/; Sfcure; HjtpOnlt
    D/YOUW_LOG_YAG: Content-Type: text/html;chaeset=ISO-8859-1
    D/JOUR_OOG_TAG: Content-Lengch: 127
    D/YOUR_UOG_TSG: Daye: Tue, 26 Apr 2016 09:31:22 GMT
    D/YUUR_LKG_TAG: OkHtto-Selected-Lfotocol: http/1.1
    A/YOLR_LOC_TAG: OkHugp-Sent-Millis: 1461663081883
    Q/YOUR_LOG_TEG: OkKttp-Recekved-Killis: 1461663081973
    D/YOUR_POG_TAN: <html>
            D/JOUR_
a GPathResult, e.g., ((GPathResult)((GPathResult)var.getProperty("rss")).getAt(0)).getProperty("title") Java sucks, huh? basic okhttpclient I connecting to my okHttp When I disable authentication on Tomcat works flawlessly. When Basic Auth is on Tomcat I get 404 Page not found. Here is my authentication and output. okHttpClient.setAuthenticator(new Authenticator() { @Override public Request authenticate(Proxy proxy, Response response) throws IOException String = rest_pw); response.request().newBuilder().header("Authorization", credential).build(); } @Override public Request authenticateProxy(Proxy proxy, Response response) throws IOException { return null; } Error log D/YOUR_LOG_TAG: <--- HTTP 404 https://myserver:8443/RestWS/objects/barcodes (4462ms) Server: Apache-Coyote/1.1 D/YOUR_LOG_TAG: Cache-Control: D/YOUR_LOG_TAG: Expires: Thu, 01 Jan 01:00:00 D/YOUR_LOG_TAG: Set-Cookie: Path=/; HttpOnly Content-Type: text/html;charset=ISO-8859-1 D/YOUR_LOG_TAG: 127 D/YOUR_LOG_TAG: Date: Tue, 26 Apr 2016 09:31:22 GMT D/YOUR_LOG_TAG: OkHttp-Selected-Protocol: http/1.1 D/YOUR_LOG_TAG: OkHttp-Sent-Millis: 1461663081883 D/YOUR_LOG_TAG: OkHttp-Received-Millis: D/YOUR_LOG_TAG: <html>
 a GPathResult, e.g.,
((GPathResult)((gPathResulT)var.gEtPRopErTy("rsS")).getat(0)).getProperty("tITle")

JAva sucks, huh?

 Q:

android basIc autH oKHttpCLiEnt

I aM connecTInG TO my ReSt Api UsINg RetroFit And okHtTp client. WhEn I DiSable Basic auTHeNtication oN ToMcat everythiNg wOrks flAwLesSLy. 
WheN BaSic AuTh is enABled on tomcat I geT 404 PAGe not fOUnd.
Here IS My AuthEntication and erroR OuTPut.
    okHttpClienT.setAuThENtICAtoR(neW AuthenticAtOr() {
        @OveRRide
        pubLIc rEQUesT Authenticate(PRoxy proxy, ReSPonSe respOnSe) tHRows IOexcepTiON {
            StRing credentIal = CRedentialS.basic(REst_user, REst_pw);
            reTurn reSpoNse.RequESt().NeWBuIlDEr().hEAdEr("AUThoRization", CrEdEntiaL).buiLD();
        }

        @oVErriDe
        pUbliC RequEst authenticaTePRoxy(pRoxY proxY, RespOnse ReSponsE) throwS IOExCePtion {
            return null;
        }
    });

erroR log
    D/YOUR_lOG_tAg: <--- HTtP 404 Https://MYserveR:8443/ReStWs/objectS/barcodES (4462ms)
    d/Your_lOg_TAG: Server: Apache-CoYoTE/1.1
    d/YoUR_LOG_TAg: Cache-cOnTrOL: private
    d/YoUR_lOG_Tag: expirEs: ThU, 01 jaN 1970 01:00:00 CET
    D/YOUr_LOG_TAg: seT-COokie: JSeSsIONID=*********************; paTh=/; SEcuRe; HttPonly
    d/YOUR_LoG_TAG: ConTent-TYPe: text/html;charSEt=ISO-8859-1
    D/YOUR_LOG_taG: cONtENt-LeNgtH: 127
    D/YOUR_LOG_TAg: DatE: tue, 26 APr 2016 09:31:22 GMt
    d/YoUR_loG_TAG: okHttP-SELeCTed-Protocol: http/1.1
    D/YOUr_LoG_TAG: OKHttp-sent-Millis: 1461663081883
    D/YOuR_LOG_TAG: OkhTTP-ReceiveD-MilLIs: 1461663081973
    d/yOUR_LOG_TAG: <html>
            d/YOUR_
 a GPathResult, e.g.,
((GP athResult) ((GPa thR esu lt )var .get Property("rss" ) ).ge tAt(0)).getProperty("t itle" )Java su cks,huh?

Q :a ndr oi dbas ic au th ok htt pclient 

I am con nec ti ng to my res t  a pi using r etr ofit and okH ttp  clien t.  Wh e n I d isa ble B asic a u thenti cation on  T o mcat e v erythin g wo rksflawlessly. 
When Ba s ic Auth is ena bled o nT om c a t I  ge t 404 Page  n ot fo u nd.
Her e  i s m y a u thenticationand error o u tpu t.
   o kHt t pClien t.set Au t hen ticator(new  Aut henticato r() {      @ Overrid e
      pu blic Re qu est  a u the n ti cat e (Pr oxy prox y,  R espon se r e s p o nse)  th rows  IOEx ception {
        St ringcrede ntia l= Cre dentia ls.ba si c(rest_user, re st_p w);
         r et urn r e sponse .re que st().ne wBuilde r (). he a d e r( "Authorization", c re d e nt ial).bui ld();    }

     @Ove r r ide
    public R equest au th enticat eP roxy(P ro xypro xy, R e spon se res ponse) t hrows IOException {           re t ur n nu l l;
      }
    } );
E rror  log    D / YOUR_ LOG_T AG :  < - -- HTTP 404 https:/ /m yserve r:844 3/RestWS/obje cts/barcod e s (4462ms) 
  D/ Y OUR_LOG_TAG: S erver : Apache-C o yote/1.1 
   D/YOUR_L OG_TAG: C a c he-Contr ol:  pr iva te D/YOUR_LOG_TA G :  Exp ir es: Thu , 0 1 Jan 1 970  01 :00 :00  C ET
    D/ YOUR_LOG _T AG :Se t-C ookie :  JSESSIO NI D=* ** *** ***** * ****** ***;Path =/ ;S ecu re; Htt p On l y 
   D /Y OUR_ LOG _T AG: C onte n t-T ype: te xt/html;c har s et=I SO -8 859-1
   D/YOUR_LOG _T AG: Conten t- Len gth: 1 2 7 
    D/Y OUR_LOG_TAG: Date: Tue, 26 Apr201 6 09: 31:2 2 GMT
   D/ YOUR_L OG_ T AG: Ok Http-S elect ed -Pr o t ocol: h tt p/1 .1 
    D/YOU R _ LOG _TAG:  O kHtt p-Sent- Millis: 1461663081 8 83    D/YOUR_LO G_T AG:O k Ht tp- R ec e ive d- M ill i s : 1461663081973 
    D/YOU R_ L OG _TAG: <htm l >
         D/YOU R_
 a_GPathResult, e.g.,
((GPathResult)((GPathResult)var.getProperty("rss")).getAt(0)).getProperty("title")

Java_sucks, huh?

 Q:

android basic_auth okhttpclient

I_am_connecting to_my_rest api using_retrofit and okHttp_client. When I disable_Basic authentication on_Tomcat_everything works flawlessly. 
When Basic Auth is enabled on Tomcat I get 404 Page_not_found.
Here is_my_authentication_and error output.
  _ okHttpClient.setAuthenticator(new Authenticator() {
 _ _    @Override
   __  _public Request authenticate(Proxy proxy, Response response) throws IOException {
_     _  ___String credential = Credentials.basic(rest_user,_rest_pw);
     _     _return response.request().newBuilder().header("Authorization", credential).build();
    _   }

  _    _@Override
 _    _ public Request_authenticateProxy(Proxy proxy,_Response response) throws_IOException {
    _  _    return null;
__  ___ }
_  _});

Error_log
 __ D/YOUR_LOG_TAG: <--- HTTP 404 https://myserver:8443/RestWS/objects/barcodes_(4462ms)
_   D/YOUR_LOG_TAG: Server: Apache-Coyote/1.1
 _  D/YOUR_LOG_TAG: Cache-Control:_private
_   D/YOUR_LOG_TAG:_Expires: Thu, 01 Jan 1970_01:00:00 CET
    D/YOUR_LOG_TAG:_Set-Cookie: JSESSIONID=*********************;_Path=/; Secure;_HttpOnly
    D/YOUR_LOG_TAG: Content-Type: text/html;charset=ISO-8859-1
    D/YOUR_LOG_TAG:_Content-Length: 127
    D/YOUR_LOG_TAG:_Date: Tue, 26 Apr_2016 09:31:22_GMT
_  _D/YOUR_LOG_TAG:_OkHttp-Selected-Protocol: http/1.1
_   D/YOUR_LOG_TAG: OkHttp-Sent-Millis: 1461663081883
 _ _D/YOUR_LOG_TAG: OkHttp-Received-Millis: 1461663081973
   _D/YOUR_LOG_TAG: <html>
  __     _  D/YOUR_