src/org/ohmage/jee/filter/ClientFilter.java
private final String validateClient(
			final String client)
			throws InvalidClientException {
		
		if(StringUtils.isEmptyOrWhitespaceOnly(client)) {
			return null;
		}
		
		if(client.length() > MAX_CLIENT_LENGTH) {
			throw new InvalidClientException("The client value is too long.");
		}
		
		return client;
	}
/**
	 * Validates that a client value is valid.
	 * 
	 * @param client The client value to be validated.
	 * 
	 * @return Returns the client value.
	 * 
	 * @throws InvalidClientException The client value was invalid.
	 */
Validates that a client value is valid.

@param client The client value to be validated.

@return Returns the client value.

@throws InvalidClientException The client value was invalid.
Validates that a client value is valid . @param client The client value to be validated . @return Returns the client value . @throws InvalidClientException The client value was invalid .
private final String validateClient(
			final String client)
			throws InvalidClientException {
		if(StringUtils.isEmptyOrWhitespaceOnly(client)) {
			return null;
		}
		if(client.length() > MAX_CLIENT_LENGTH) {
			throw new InvalidClientException("The client value is too long.");
		}
		return client;
	}
private final String validateClient ( final String client ) throws InvalidClientException { if ( StringUtils . isEmptyOrWhitespaceOnly ( client ) ) { return null ; } if ( client . length ( ) > MAX_CLIENT_LENGTH ) { throw new InvalidClientException ( "The client value is too long." ) ; } return client ; }
Validates that a client value is valid.
Validates that a client value is valid .