src/com/vehiclerental/presentationLayer/headOffice/UserHeadOfficeController.java
/**
     * Get the account details for the authenticated user
     *
     * @param request the request parameters
     * @return the result response
     */
Get the account details for the authenticated user
@param request the request parameters
@return the result response
Get the account details for the authenticated user @param request the request parameters @return the result response
public static HeadOfficeResponseMessage HandleGetAccountDetails(HeadOfficeRequestMessage request) {
        User user;
        try {
            user = doAuthentication(request.getAuthEmail(), request.getAuthPassword(), false);
            return generateSuccessfulResponse(request.OperationCode, new UserContract(user));
        } catch (NotAuthorizedException e) {
            return generateError(request.OperationCode, 401, "Unauthorized");
        }
    }
public static HeadOfficeResponseMessage HandleGetAccountDetails ( HeadOfficeRequestMessage request ) { User user ; try { user = doAuthentication ( request . getAuthEmail ( ) , request . getAuthPassword ( ) , false ) ; return generateSuccessfulResponse ( request . OperationCode , new UserContract ( user ) ) ; } catch ( NotAuthorizedException e ) { return generateError ( request . OperationCode , 401 , "Unauthorized" ) ; } }
Get the account details for the authenticated user
 @param request the request parameters
 @return the result response
Get the account details for the authenticated user @param request the request parameters @return the result response
//Form socket response