com.aetrion.flickr
Class RequestContext

java.lang.Object
  extended by com.aetrion.flickr.RequestContext

public class RequestContext
extends java.lang.Object

A thread local variable used to hold contextual information used in requests. To get an instance of this class use RequestContext.getRequestContext(). The method will return a RequestContext object which is only usable within the current thread.

Author:
Anthony Eden

Constructor Summary
RequestContext()
           
 
Method Summary
 Auth getAuth()
           
 java.util.List getExtras()
          Get the List of extra return values requested.
static RequestContext getRequestContext()
          Get the RequestContext instance for the current Thread.
 java.lang.String getSharedSecret()
          Deprecated. Get the secret from Flickr.getSharedSecret().
 void setAuth(Auth auth)
           
 void setExtras(java.util.List extras)
           
 void setSharedSecret(java.lang.String sharedSecret)
          Deprecated. Set the secret in Flickr.setSharedSecret(String).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestContext

public RequestContext()
Method Detail

getRequestContext

public static RequestContext getRequestContext()
Get the RequestContext instance for the current Thread.

Returns:
The RequestContext

getAuth

public Auth getAuth()

setAuth

public void setAuth(Auth auth)

getSharedSecret

public java.lang.String getSharedSecret()
Deprecated. Get the secret from Flickr.getSharedSecret().

Get a shared secret which is used for any calls which require signing.

Returns:
The shared secret

setSharedSecret

public void setSharedSecret(java.lang.String sharedSecret)
Deprecated. Set the secret in Flickr.setSharedSecret(String).

Set the shared secret which is used for any calls which require signing.

Parameters:
sharedSecret - The shared secret

getExtras

public java.util.List getExtras()
Get the List of extra return values requested.

Returns:
List of extra return values requested

setExtras

public void setExtras(java.util.List extras)


Copyright (C) 2005-2008 Aetrion LLC. All Rights Reserved.