src/org/ohmage/service/UploadValidationServices.java
public static void validateProvider(final String provider) 
    		throws ServiceException {
    	
    	if(StringUtils.isEmptyOrWhitespaceOnly(provider)) {
    		throw new ServiceException(
    			ErrorCode.SERVER_INVALID_LOCATION,
    			"provider in upload message is null");
		}
	}
/**
	 * Validates the provider (the source of a latlong e.g., network, GPS, WifiGPSLocationService).
	 * 
	 * @param request   The request to fail if the provider is invalid.
	 * @param provider  The provider to validate
	 * @throws ServiceException If the provider is empty or null
	 */
Validates the provider (the source of a latlong e.g., network, GPS, WifiGPSLocationService).

@param request   The request to fail if the provider is invalid.
@param provider  The provider to validate
@throws ServiceException If the provider is empty or null
Validates the provider ( the source of a latlong e . g . network GPS WifiGPSLocationService ) . @param request The request to fail if the provider is invalid . @param provider The provider to validate @throws ServiceException If the provider is empty or null
public static void validateProvider(final String provider) 
    		throws ServiceException {
    	if(StringUtils.isEmptyOrWhitespaceOnly(provider)) {
    		throw new ServiceException(
    			ErrorCode.SERVER_INVALID_LOCATION,
    			"provider in upload message is null");
		}
	}
public static void validateProvider ( final String provider ) throws ServiceException { if ( StringUtils . isEmptyOrWhitespaceOnly ( provider ) ) { throw new ServiceException ( ErrorCode . SERVER_INVALID_LOCATION , "provider in upload message is null" ) ; } }
Validates the provider (the source of a latlong e.g., network, GPS, WifiGPSLocationService).
Validates the provider ( the source of a latlong e . g . network GPS WifiGPSLocationService ) .