com.google.caja.config
Interface ImportResolver

All Known Implementing Classes:
AllowedFileResolver

public interface ImportResolver

Used to resolve references in configuration files.

Author:
mikesamuel@gmail.com
See Also:
ConfigUtil.loadWhiteListFromJson(java.io.Reader, com.google.caja.lexer.FilePosition, com.google.caja.config.ImportResolver, com.google.caja.reporting.MessageQueue)

Method Summary
 Pair<java.io.Reader,FilePosition> resolve(java.net.URI ref, java.net.URI base, FilePosition refPos)
           
 

Method Detail

resolve

Pair<java.io.Reader,FilePosition> resolve(java.net.URI ref,
                                          java.net.URI base,
                                          FilePosition refPos)
                                          throws java.io.IOException
Parameters:
ref - a relative URI or absolute URI.
base - the URI of the containing page.
refPos - the position of ref in base.
Throws:
java.io.IOException


Copyright (C) 2008 Google Inc.
Licensed under the Apache License, Version 2.0