src/org/ohmage/request/auth/AuthTokenRequest.java
@Override
	public void respond(HttpServletRequest httpRequest, HttpServletResponse httpResponse) {
		LOGGER.info("Responding to the authentication token request.");
		
		if((! isFailed()) && (redirect != null)) {
			respond(httpRequest, httpResponse, redirect);
		}
		else {
			respond(
				httpRequest, 
				httpResponse, 
				KEY_AUTH_TOKEN,
				(getUser() == null) ? null : getUser().getToken());
		}
	}
/**
	 * Replies to the request with no data and instantiates the token in the
	 * request.
	 */
Replies to the request with no data and instantiates the token in the
request.
Replies to the request with no data and instantiates the token in the request .
@Override
	public void respond(HttpServletRequest httpRequest, HttpServletResponse httpResponse) {
		LOGGER.info("Responding to the authentication token request.");
		if((! isFailed()) && (redirect != null)) {
			respond(httpRequest, httpResponse, redirect);
		}
		else {
			respond(
				httpRequest, 
				httpResponse, 
				KEY_AUTH_TOKEN,
				(getUser() == null) ? null : getUser().getToken());
		}
	}
@ Override public void respond ( HttpServletRequest httpRequest , HttpServletResponse httpResponse ) { LOGGER . info ( "Responding to the authentication token request." ) ; if ( ( ! isFailed ( ) ) && ( redirect != null ) ) { respond ( httpRequest , httpResponse , redirect ) ; } else { respond ( httpRequest , httpResponse , KEY_AUTH_TOKEN , ( getUser ( ) == null ) ? null : getUser ( ) . getToken ( ) ) ; } }
Replies to the request with no data and instantiates the token in the
 request.
Replies to the request with no data and instantiates the token in the request .