@Override public void validateRequest(GenericAttributeResolveRequest request) throws BadAttributeResolveRequestException {
  if (LOG.isDebugEnabled())   LOG.debug(" validating HDFS Resource Resolve  request ...");
  String siteId=request.getSite();
  if (null == siteId)   throw new BadAttributeResolveRequestException(HDFSResourceConstants.HDFS_RESOURCE_RESOLVE_FORMAT_HINT);
  String filePath=request.getQuery();
  if (null == filePath || !filePath.startsWith("/"))   throw new BadAttributeResolveRequestException(HDFSResourceConstants.HDFS_RESOURCE_RESOLVE_FORMAT_HINT);
  if (LOG.isDebugEnabled())   LOG.debug(" HDFS Resource Resolve request validated successfully...");
}

@ Override public void validateRequest ( GenericAttributeResolveRequest request ) throws BadAttributeResolveRequestException { if ( LOG . isDebugEnabled ( ) ) LOG . debug ( " validating HDFS Resource Resolve  request ..." ) ; String siteId = request . getSite ( ) ; if ( null == siteId ) throw new BadAttributeResolveRequestException ( HDFSResourceConstants . HDFS_RESOURCE_RESOLVE_FORMAT_HINT ) ; String filePath = request . getQuery ( ) ; if ( null == filePath || ! filePath . startsWith ( "/" ) ) throw new BadAttributeResolveRequestException ( HDFSResourceConstants . HDFS_RESOURCE_RESOLVE_FORMAT_HINT ) ; if ( LOG . isDebugEnabled ( ) ) LOG . debug ( " HDFS Resource Resolve request validated successfully..." ) ; }
validate the passed request object it should have site id and file path
