org.apache.shindig.gadgets.render
Class SanitizingProxyUriManager

java.lang.Object
  extended by org.apache.shindig.gadgets.render.SanitizingProxyUriManager
All Implemented Interfaces:
ProxyUriManager

public class SanitizingProxyUriManager
extends Object
implements ProxyUriManager

Forcible rewrite the link through the proxy and force sanitization with an expected mime type.

Since:
2.0.0

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.shindig.gadgets.uri.ProxyUriManager
ProxyUriManager.ProxyUri, ProxyUriManager.Versioner
 
Constructor Summary
SanitizingProxyUriManager(ProxyUriManager wrapped, String expectedMime)
           
 
Method Summary
 List<Uri> make(List<ProxyUriManager.ProxyUri> ctx, Integer forcedRefresh)
          Generate a Uri that proxies the given resource Uri.
 ProxyUriManager.ProxyUri process(Uri uri)
          Parse and validate the proxied Uri.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SanitizingProxyUriManager

public SanitizingProxyUriManager(ProxyUriManager wrapped,
                                 String expectedMime)
Method Detail

process

public ProxyUriManager.ProxyUri process(Uri uri)
                                 throws GadgetException
Description copied from interface: ProxyUriManager
Parse and validate the proxied Uri.

Specified by:
process in interface ProxyUriManager
Parameters:
uri - A Uri presumed to be a proxied Uri generated by this class or in a compatible way
Returns:
Status of the Uri passed in
Throws:
GadgetException

make

public List<Uri> make(List<ProxyUriManager.ProxyUri> ctx,
                      Integer forcedRefresh)
Description copied from interface: ProxyUriManager
Generate a Uri that proxies the given resource Uri.

Specified by:
make in interface ProxyUriManager
Parameters:
ctx - Resource Uri to proxy
forcedRefresh - Forced expires value to use for resource
Returns:
Uri of proxied resource


Copyright © 2007-2012. All Rights Reserved.