creates an exchange.getout message with a #glogin_token header containing an authentication token and a #glogin_cookie header containing an authorization cookie . if theendpoint is configured to run in development mode , no authentication token will be set , only an authorization cookie . concode_field_sep String GLOGIN_COOKIE concode_elem_sep String GLOGIN_HOST_NAME concode_elem_sep String GLOGIN_PASSWORD concode_elem_sep String GLOGIN_TOKEN concode_elem_sep String GLOGIN_USER_NAME concode_field_sep GLoginData writeRequest
Exchange function ( GLoginEndpoint arg0 , Exchange arg1 , GLoginData arg2 ) { if ( arg2 . getAuthenticationToken ( ) != null ) { arg1 . getOut ( ) . setHeader ( GLOGIN_TOKEN , arg2 . getAuthenticationToken ( ) ) ; } if ( arg2 . getAuthorizationCookie ( ) != null ) { arg1 . getOut ( ) . setHeader ( GLOGIN_COOKIE , arg2 . getAuthorizationCookie ( ) ) ; } return arg1 ; }