org.apache.shindig.gadgets.uri
Class ProxyUriManager.ProxyUri

java.lang.Object
  extended by org.apache.shindig.gadgets.uri.ProxyUriBase
      extended by org.apache.shindig.gadgets.uri.ProxyUriManager.ProxyUri
Enclosing interface:
ProxyUriManager

public static class ProxyUriManager.ProxyUri
extends ProxyUriBase


Constructor Summary
ProxyUriManager.ProxyUri(Gadget gadget, Uri resource)
           
ProxyUriManager.ProxyUri(Integer refresh, boolean debug, boolean noCache, String container, String gadget, Uri resource)
           
ProxyUriManager.ProxyUri(UriStatus status, Uri resource, Uri base)
           
 
Method Summary
 boolean equals(Object obj)
           
static List<ProxyUriManager.ProxyUri> fromList(Gadget gadget, List<Uri> uris)
           
 Uri getFallbackUri()
           
 String getHtmlTagContext()
           
 Uri getResource()
           
 int hashCode()
           
 HttpRequest makeHttpRequest(Uri targetUri)
           
 UriBuilder makeQueryParams(Integer forcedRefresh, String version)
          Construct the query parameters for proxy url
 ProxyUriManager.ProxyUri setFallbackUrl(String fallbackUrl)
           
 void setFromUri(Uri uri)
          Parse uri query paramaters.
 void setHtmlTagContext(String htmlTagContext)
           
 ProxyUriManager.ProxyUri setResize(Integer w, Integer h, Integer q, boolean noExpand)
           
 void setReturnOriginalContentOnError(boolean returnOriginalContentOnError)
           
 boolean shouldReturnOrigOnErr()
           
 
Methods inherited from class org.apache.shindig.gadgets.uri.ProxyUriBase
cajoleContent, getBooleanValue, getContainer, getGadget, getIntegerValue, getRefresh, getRewriteMimeType, getStatus, isDebug, isNoCache, sanitizeContent, setCajoleContent, setRewriteMimeType, setSanitizeContent, translateStatusRefresh
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyUriManager.ProxyUri

public ProxyUriManager.ProxyUri(Gadget gadget,
                                Uri resource)

ProxyUriManager.ProxyUri

public ProxyUriManager.ProxyUri(Integer refresh,
                                boolean debug,
                                boolean noCache,
                                String container,
                                String gadget,
                                Uri resource)

ProxyUriManager.ProxyUri

public ProxyUriManager.ProxyUri(UriStatus status,
                                Uri resource,
                                Uri base)
Method Detail

setReturnOriginalContentOnError

public void setReturnOriginalContentOnError(boolean returnOriginalContentOnError)

setHtmlTagContext

public void setHtmlTagContext(String htmlTagContext)

getHtmlTagContext

public String getHtmlTagContext()

equals

public boolean equals(Object obj)
Overrides:
equals in class ProxyUriBase

hashCode

public int hashCode()
Overrides:
hashCode in class ProxyUriBase

setFromUri

public void setFromUri(Uri uri)
Description copied from class: ProxyUriBase
Parse uri query paramaters. Note this function is called by a constructor, and can be override to handle derived class parsing

Overrides:
setFromUri in class ProxyUriBase

setResize

public ProxyUriManager.ProxyUri setResize(Integer w,
                                          Integer h,
                                          Integer q,
                                          boolean noExpand)

setFallbackUrl

public ProxyUriManager.ProxyUri setFallbackUrl(String fallbackUrl)

getResource

public Uri getResource()

getFallbackUri

public Uri getFallbackUri()
                   throws GadgetException
Throws:
GadgetException

shouldReturnOrigOnErr

public boolean shouldReturnOrigOnErr()

makeQueryParams

public UriBuilder makeQueryParams(Integer forcedRefresh,
                                  String version)
Description copied from class: ProxyUriBase
Construct the query parameters for proxy url

Overrides:
makeQueryParams in class ProxyUriBase
Parameters:
forcedRefresh - optional overwrite the refresh time
version - optional version
Returns:
Url with only query parameters set

makeHttpRequest

public HttpRequest makeHttpRequest(Uri targetUri)
                            throws GadgetException
Overrides:
makeHttpRequest in class ProxyUriBase
Throws:
GadgetException

fromList

public static List<ProxyUriManager.ProxyUri> fromList(Gadget gadget,
                                                      List<Uri> uris)


Copyright © 2007-2012. All Rights Reserved.