METHOD_0 ( ) { com . streamsets . lib . security . http . IDENT_0 IDENT_1 = org . mockito . Mockito . mock ( com . streamsets . lib . security . http . IDENT_0 . class ) ; com . streamsets . lib . security . http . IDENT_2 IDENT_3 = org . mockito . Mockito . METHOD_1 ( new com . streamsets . lib . security . http . METHOD_2 ( IDENT_1 , conf ) ) ; javax . servlet . http . IDENT_4 req = org . mockito . Mockito . mock ( javax . servlet . http . IDENT_4 . class ) ; javax . servlet . http . IDENT_5 res = org . mockito . Mockito . mock ( javax . servlet . http . IDENT_5 . class ) ; org . mockito . Mockito . doReturn ( IDENT_6 . IDENT_7 ) . when ( IDENT_3 ) . METHOD_3 ( org . mockito . Mockito . eq ( req ) , org . mockito . Mockito . eq ( res ) , org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . anyString ( ) ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( IDENT_3 ) . METHOD_3 ( org . mockito . Mockito . eq ( req ) , org . mockito . Mockito . eq ( res ) , org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . anyString ( ) ) ; org . mockito . Mockito . METHOD_4 ( IDENT_1 ) ; } METHOD_5 ( javax . servlet . IDENT_8 , javax . servlet . IDENT_9 , boolean ) { javax . servlet . http . IDENT_4 request = ( ( javax . servlet . http . IDENT_4 ) ( req ) ) ; javax . servlet . http . IDENT_5 response = ( ( javax . servlet . http . IDENT_5 ) ( res ) ) ; javax . servlet . http . IDENT_10 session = request . METHOD_6 ( true ) ; org . eclipse . IDENT_11 . server . IDENT_6 authentication = ( ( org . eclipse . IDENT_11 . server . IDENT_6 ) ( session . METHOD_7 ( IDENT_12 . IDENT_13 ) ) ) ; if ( STRING_0 . equals ( request . METHOD_8 ( ) ) ) { response . METHOD_9 ( STRING_1 , conf . get ( IDENT_14 . IDENT_15 , IDENT_14 . IDENT_16 ) ) ; response . METHOD_9 ( STRING_2 , conf . get ( IDENT_14 . IDENT_17 , IDENT_14 . IDENT_18 ) ) ; response . METHOD_9 ( STRING_3 , conf . get ( IDENT_14 . IDENT_19 , IDENT_14 . IDENT_20 ) ) ; return org . eclipse . IDENT_11 . server . IDENT_6 . IDENT_21 ; } if ( authentication == null ) { java . lang . String IDENT_22 = request . METHOD_10 ( com . streamsets . IDENT_23 . http . IDENT_24 . IDENT_25 ) ; java . lang . String IDENT_26 = request . METHOD_10 ( com . streamsets . IDENT_23 . http . IDENT_24 . IDENT_27 ) ; if ( IDENT_22 == null ) { IDENT_22 = request . METHOD_11 ( com . streamsets . IDENT_23 . http . IDENT_24 . IDENT_25 ) ; IDENT_26 = request . METHOD_11 ( com . streamsets . IDENT_23 . http . IDENT_24 . IDENT_27 ) ; if ( IDENT_26 == null ) { IDENT_26 = com . streamsets . IDENT_23 . http . IDENT_24 . IDENT_28 ; } } if ( ( IDENT_22 != null ) && ( IDENT_29 . METHOD_12 ( IDENT_22 ) ) ) { com . streamsets . IDENT_23 . http . IDENT_30 IDENT_31 = ( ( com . streamsets . IDENT_23 . http . IDENT_30 ) ( METHOD_13 ( ) ) ) ; org . eclipse . IDENT_11 . server . IDENT_32 IDENT_33 = IDENT_31 . METHOD_14 ( IDENT_26 ) ; org . eclipse . IDENT_11 . server . IDENT_6 IDENT_34 = new org . eclipse . IDENT_11 . security . authentication . METHOD_15 ( METHOD_16 ( ) , IDENT_33 , null ) ; session . METHOD_17 ( METHOD_15 . IDENT_13 , IDENT_34 ) ; } if ( ( this . IDENT_3 ) instanceof org . eclipse . IDENT_11 . security . authentication . IDENT_35 ) { java . lang . String IDENT_36 = request . METHOD_10 ( IDENT_37 . IDENT_38 . METHOD_18 ( ) ) ; if ( IDENT_36 != null ) { int IDENT_39 = IDENT_36 . indexOf ( STRING_4 ) ; if ( IDENT_39 > 0 ) { java . lang . String method = IDENT_36 . substring ( 0 , IDENT_39 ) ; if ( STRING_5 . equalsIgnoreCase ( method ) ) { IDENT_36 = IDENT_36 . substring ( ( IDENT_39 + 1 ) ) ; IDENT_36 = org . eclipse . IDENT_11 . util . IDENT_40 . decode ( IDENT_36 , IDENT_41 . IDENT_42 ) ; int i = IDENT_36 . indexOf ( STRING_6 ) ; if ( i > 0 ) { java . lang . String IDENT_43 = IDENT_36 . substring ( 0 , i ) ; java . lang . String IDENT_44 = IDENT_36 . substring ( ( i + 1 ) ) ; org . eclipse . IDENT_11 . server . IDENT_32 IDENT_33 = METHOD_19 ( IDENT_43 , IDENT_44 , request ) ; if ( IDENT_33 != null ) { if ( ( session . METHOD_7 ( METHOD_15 . IDENT_13 ) ) == null ) { org . eclipse . IDENT_11 . server . IDENT_6 IDENT_34 = new org . eclipse . IDENT_11 . security . authentication . METHOD_15 ( METHOD_16 ( ) , IDENT_33 , null ) ; session . METHOD_17 ( METHOD_15 . IDENT_13 , IDENT_34 ) ; } } else { try { response . METHOD_9 ( IDENT_37 . IDENT_45 . METHOD_18 ( ) , ( ( STRING_7 + ( IDENT_46 . getName ( ) ) ) + STRING_8 ) ) ; response . METHOD_20 ( IDENT_5 . IDENT_47 ) ; return org . eclipse . IDENT_11 . server . IDENT_6 . IDENT_48 ; } catch ( java . io . IOException e ) { throw new org . eclipse . IDENT_11 . security . METHOD_21 ( e ) ; } } } } } } else { java . lang . String IDENT_49 = request . METHOD_22 ( ) ; if ( STRING_5 FLOAT_0 METHOD_23 ( IDENT_49 ) ) { java . lang . String IDENT_50 = request . METHOD_11 ( STRING_9 ) ; if ( ( IDENT_50 == null ) || ( ( IDENT_50 . trim ( ) . length ( ) ) == 0 ) ) { IDENT_50 = "/" ; } java . lang . String IDENT_51 = ( ( java . lang . String ) ( session . METHOD_7 ( IDENT_35 . IDENT_52 ) ) ) ; if ( ( ( IDENT_51 != null ) && ( ( IDENT_51 . contains ( STRING_10 ) ) || ( IDENT_51 . contains ( STRING_5 1 ) ) ) ) || ( ! ( IDENT_50 . equals ( "/" ) ) ) ) { session . METHOD_17 ( IDENT_35 . IDENT_52 , IDENT_50 ) ; } } } } } return IDENT_3 . METHOD_5 ( req , res , IDENT_53 ) ; }
org . junit . Assert . assertEquals ( IDENT_6 . IDENT_7 , IDENT_3 . METHOD_5 ( req , res , true ) )