@Override public void validateRequest(GenericAttributeResolveRequest request) throws BadAttributeResolveRequestException {
  if (LOG.isDebugEnabled())   LOG.debug(" validating MAPRFS Resource Resolve  request ...");
  String siteId=request.getSite();
  if (null == siteId)   throw new BadAttributeResolveRequestException(MAPRFSResourceConstants.MAPRFS_RESOURCE_RESOLVE_FORMAT_HINT);
  String filePath=request.getQuery();
  if (null == filePath) {
    throw new BadAttributeResolveRequestException(MAPRFSResourceConstants.MAPRFS_RESOURCE_RESOLVE_FORMAT_HINT);
  }
  if (Character.isDigit(filePath.charAt(0))) {
  }
 else {
    if (!filePath.startsWith("/")) {
      throw new BadAttributeResolveRequestException(MAPRFSResourceConstants.MAPRFS_RESOURCE_RESOLVE_FORMAT_HINT);
    }
  }
  if (LOG.isDebugEnabled())   LOG.debug(" MAPRFS Resource Resolve request validated successfully...");
}

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