public final class FaceBookAccess

  1. Object
  2. FaceBookAccess
Deprecated. This legacy OAuth2/Graph REST wrapper predates Facebook’s current policies and embeds credentials client-side, which Facebook no longer permits for production use. Use FacebookConnect (native SDK path) for login, and a server-side component for any Graph API access that requires a client secret. This class will be removed in a future release.
This is the main access API to the facebook graph API http://developers.facebook.com/docs/reference/api/ This class encapsulates the Network access and provide simple methods to acess the Facebook servers.

Methods

public static FaceBookAccess getInstance()gets the class instance
public static DefaultListModel createObjectsModel(DefaultListModel hashtablesModel, Class fbObjectClass) throws IllegalAccessException, InstantiationExceptionThis is a utility method that transforms a DefaultListModel that contains Hashtable entries into a DefaultListModel that will contain FBObject objects that will be initialized with the Hashtable entries
public static void setClientId(String clientId)The client id (appid) which asks to connect (this is generated when an app is created see: https://developers.facebook.com/apps)
public static void setClientSecret(String clientSecret)The client secret is been generated by facebook see: https://developers.facebook.com/apps
public static void setPermissions(String[] permissions)The requested permissions of the app http://developers.facebook.com/docs/reference/api/permissions/
public static void setRedirectURI(String redirectURI)This is generated when an app is created see: https://developers.facebook.com/apps
public static String getToken()Returns the Facebook authorization token that can be used for API access
public static void setToken(String tok)Sets the token to the FaceBookAccess class, this is useful if the token has not yet expired, get the expiration of the token with Oauth2.getExpires()
public static void logOut()log out the current user
public static void anonymousLogin(String appid, String clientSecret)Some simple queries for public data can work just fine with anonymous login without requiring the whole OAuth process, they still need a facebook application though
public static String getApiVersion()Returns the api version used, if empty the non version-ed is used
public static void setApiVersion(String apiVersion)Sets the Facebook api version being used, by default the api calls the non version-ed version of the API.
public Oauth2 createOAuth()
public Component createAuthComponent(ActionListener<ActionEvent> al)This method creates a component which can authenticate.
public void showAuthentication(ActionListener<ActionEvent> al)This method shows an authentication for login form
public boolean isAuthenticated()This method returns true if the user is authenticated to the facebook service.
public void setProgress(Slider slider)Sets the progress indicator to get network updates on the queries
public void getFaceBookObject(String faceBookId, ActionListener<NetworkEvent> callback) throws IOExceptionThis method returns immediately and will call the callback when it returns with the FaceBook Object data.
public void getFaceBookObject(String faceBookId, ActionListener<NetworkEvent> callback, boolean needToken, boolean async) throws IOExceptionThis method returns immediately and will call the callback when it returns with the FaceBook Object data.
public void getFaceBookObjectItems(String faceBookId, String itemsConnection, DefaultListModel feed, Hashtable params, ActionListener callback) throws IOExceptionGet a list of FaceBook objects for a given id
public void getUser(String userId, User user, ActionListener<NetworkEvent> callback) throws IOExceptionGets a user from a user id
public User getUser(String userId) throws IOExceptionGets a User from a user id This is a sync method it will block until a response it returned
public Page getPage(String pageId) throws IOExceptionGets a Page from a pageId/name This is a sync method it will block until a response it returned
public void getPost(String postId, Post post, ActionListener<NetworkEvent> callback) throws IOExceptionGest a post from a post Id
public Post getPost(String postId, boolean needAuth) throws IOExceptionGets a Post from a postId This is a sync method it will block until a response it returned
public void getPhoto(String photoId, Photo photo, ActionListener<NetworkEvent> callback) throws IOExceptionGest a photo from a photo Id
public Photo getPhoto(String photoId, boolean needAuth) throws IOExceptionGets a Photo from a photoId This is a sync method it will block until a response it returned
public void getAlbum(String albumId, Album album, ActionListener<NetworkEvent> callback) throws IOExceptionGest an album from an albumId
public Album getAlbum(String albumId, boolean needAuth) throws IOExceptionGets a Album from a albumId This is a sync method it will block until a response it returned
public void getNewsFeed(String userId, DefaultListModel feed, ActionListener callback) throws IOExceptionGets the user news feed, the data is being stored in the given DefaultListModel.
public void getNewsFeed(String userId, DefaultListModel feed, int limit, ActionListener callback) throws IOExceptionGets the user news feed, the data is being stored in the given DefaultListModel.
public void getWallFeed(String userId, DefaultListModel feed, ActionListener callback) throws IOExceptionGets the user wall feed, the data is being stored in the given DefaultListModel.
public void getWallFeed(String userId, DefaultListModel feed, int limit, ActionListener callback) throws IOExceptionGets the user wall feed, the data is being stored in the given DefaultListModel.
public void getWallPosts(String userId, DefaultListModel feed, ActionListener callback) throws IOExceptionGets the user wall feed, the data is being stored in the given DefaultListModel.
public void getWallPosts(String userId, DefaultListModel feed, int limit, ActionListener callback) throws IOExceptionGets the user wall posts, the data is being stored in the given DefaultListModel.
public void getPicture(String id, Label label, Dimension toScale, boolean tempStorage) throws IOExceptionGets the picture of the given facebook object id
public void getPicture(String id, ActionListener callback, Dimension toScale, boolean tempStorage) throws IOExceptionGets the picture of the given facebook object id
public EncodedImage getPictureAndWait(String id, Dimension toScale)Gets the picture of the given facebook object id
public String getImageURL(String id, Dimension toScale)Returns the URL for a given image
public void getPicture(String id, Component targetList, int targetOffset, String targetKey, Dimension toScale, boolean tempStorage) throws IOExceptionGets the picture of the given facebook object id and stores it in the given List in the offset index
public void getPhotoThumbnail(String photoId, ActionListener callback, boolean tempStorage) throws IOExceptionGets the photo thumbnail of a Photo Object
public void getPhotoThumbnail(String photoId, Label label, Dimension toScale, boolean tempStorage) throws IOExceptionGets the photo thumbnail of a Photo Object
public void getUserFriends(String userId, DefaultListModel friends, ActionListener callback) throws IOExceptionGets the user friends
public void getUserAlbums(String userId, DefaultListModel albums, ActionListener callback) throws IOExceptionGets the user albums
public void getAlbumPhotos(String albumId, DefaultListModel photos, int offset, int limit, ActionListener callback) throws IOExceptionGets the albums photos
public void getPostComments(String postId, DefaultListModel comments, ActionListener callback) throws IOExceptionGets the post comments
public void getUserInboxThreads(String userId, DefaultListModel threads, int limit, ActionListener callback) throws IOExceptionGets the user inbox Threads
public void postOnWall(String userId, String message) throws IOExceptionPost a message on the users wall
public void postLike(String postId) throws IOExceptionPost like on a given post
public void postComment(String postId, String message) throws IOExceptionPost a comment on a given post
public void createNote(String userId, String subject, String message) throws IOExceptionPost a note onto the users wall
public void postOnWall(String userId, String message, ActionListener callback) throws IOExceptionPost a message on the users wall
public void postOnWall(String userId, String message, String name, String link, String description, String picture, String caption, ActionListener callback) throws IOExceptionPost a message on the users wall
public void postLike(String postId, ActionListener callback) throws IOExceptionPost like on a given post
public void postComment(String postId, String message, ActionListener callback) throws IOExceptionPost a comment on a given post
public void createNote(String userId, String subject, String message, ActionListener callback) throws IOExceptionPost a note onto the users wall
public void getUserNotifications(String userId, String startTime, boolean includeRead, DefaultListModel notifications, ActionListener<NetworkEvent> callback) throws IOExceptionGets the user notifications (this method uses the legacy rest api see http://developers.facebook.com/docs/reference/rest/)
public void getUsersDetails(String[] usersIds, String[] fields, ActionListener<NetworkEvent> callback) throws IOExceptionGets users requested details ((this method uses the legacy rest api see http://developers.facebook.com/docs/reference/rest/))
public void getUserEvents(String userId, DefaultListModel events, ActionListener callback) throws IOExceptionGets the user events
public void search(String objectType, String query, DefaultListModel results, ActionListener callback) throws IOExceptionSerach for facebook objects
public void killCurrentRequest()Kills the current request.
public void addResponseCodeListener(ActionListener a)Adds a response listener on the requests
public void removeResponseCodeListener(ActionListener a)Removes a response listener
public void cleanTempStorage()Deletes all temp storage.

Inherited methods

Method details

getInstance

public static FaceBookAccess getInstance()
gets the class instance

Returns

a FaceBookAccess object

createObjectsModel

public static DefaultListModel createObjectsModel(DefaultListModel hashtablesModel, Class fbObjectClass) throws IllegalAccessException, InstantiationException
This is a utility method that transforms a DefaultListModel that contains Hashtable entries into a DefaultListModel that will contain FBObject objects that will be initialized with the Hashtable entries

Parameters

hashtablesModel DefaultListModel
the model to transform, this model should hold it’s data has Hashtable entries
fbObjectClass Class
this is the class of the entries to be created, this class should be a FBObject type

Returns

a DefaultListModel with fbObjectClass objects entries

Throws

IllegalAccessException
if the fbObjectClass.newInstance() fails
InstantiationExceptionif
the fbObjectClass.newInstance() fails
InstantiationException

setClientId

public static void setClientId(String clientId)
The client id (appid) which asks to connect (this is generated when an app is created see: https://developers.facebook.com/apps)

setClientSecret

public static void setClientSecret(String clientSecret)
The client secret is been generated by facebook see: https://developers.facebook.com/apps

setPermissions

public static void setPermissions(String[] permissions)

setRedirectURI

public static void setRedirectURI(String redirectURI)
This is generated when an app is created see: https://developers.facebook.com/apps

getToken

public static String getToken()
Returns the Facebook authorization token that can be used for API access

Returns

the token

setToken

public static void setToken(String tok)
Sets the token to the FaceBookAccess class, this is useful if the token has not yet expired, get the expiration of the token with Oauth2.getExpires()

Parameters

tok String
the token of the

logOut

public static void logOut()
log out the current user

anonymousLogin

public static void anonymousLogin(String appid, String clientSecret)
Some simple queries for public data can work just fine with anonymous login without requiring the whole OAuth process, they still need a facebook application though

Parameters

appid String
the id of the application
clientSecret String
the client secret for the application

getApiVersion

public static String getApiVersion()
Returns the api version used, if empty the non version-ed is used

setApiVersion

public static void setApiVersion(String apiVersion)
Sets the Facebook api version being used, by default the api calls the non version-ed version of the API.

Parameters

apiVersion String
valid values are “1.0”, “2.0”, “2.1”

createOAuth

public Oauth2 createOAuth()

createAuthComponent

public Component createAuthComponent(ActionListener<ActionEvent> al)
This method creates a component which can authenticate. You will receive either the authentication key or an Exception object within the ActionListener callback method.

Parameters

al ActionListener<ActionEvent>
a listener that will receive at its source either a token for the service or an exception in case of a failure

Returns

a component that should be displayed to the user in order to perform the authentication

showAuthentication

public void showAuthentication(ActionListener<ActionEvent> al)
This method shows an authentication for login form

Parameters

al ActionListener<ActionEvent>
a listener that will receive at its source either a token for the service or an exception in case of a failure

isAuthenticated

public boolean isAuthenticated()
This method returns true if the user is authenticated to the facebook service.

Returns

true if authenticated

setProgress

public void setProgress(Slider slider)
Sets the progress indicator to get network updates on the queries

getFaceBookObject

public void getFaceBookObject(String faceBookId, ActionListener<NetworkEvent> callback) throws IOException
This method returns immediately and will call the callback when it returns with the FaceBook Object data.

Parameters

faceBookId String
the object id that we would like to query
callback ActionListener<NetworkEvent>
the callback that should be updated when the data arrives

getFaceBookObject

public void getFaceBookObject(String faceBookId, ActionListener<NetworkEvent> callback, boolean needToken, boolean async) throws IOException
This method returns immediately and will call the callback when it returns with the FaceBook Object data.

Parameters

faceBookId String
the object id that we would like to query
callback ActionListener<NetworkEvent>
the callback that should be updated when the data arrives
needToken boolean
if true authentication is being checked
async boolean
Not documented.

getFaceBookObjectItems

public void getFaceBookObjectItems(String faceBookId, String itemsConnection, DefaultListModel feed, Hashtable params, ActionListener callback) throws IOException
Get a list of FaceBook objects for a given id

Parameters

faceBookId String
the id to preform the query upon
itemsConnection String
the type of the query
feed DefaultListModel
Not documented.
params Hashtable
Not documented.
callback ActionListener
the callback that should be updated when the data arrives

getUser

public void getUser(String userId, User user, ActionListener<NetworkEvent> callback) throws IOException
Gets a user from a user id

Parameters

userId String
the user id or null to get detaild on the authenticated user
user User
an object to fill with the user details
callback ActionListener<NetworkEvent>
the callback that should be updated when the data arrives

getUser

public User getUser(String userId) throws IOException
Gets a User from a user id This is a sync method it will block until a response it returned

Parameters

userId String
the user id or null to get details on the authenticated user

Returns

the User requested

getPage

public Page getPage(String pageId) throws IOException
Gets a Page from a pageId/name This is a sync method it will block until a response it returned

Parameters

pageId String
the pageId

Returns

the Page requested

getPost

public void getPost(String postId, Post post, ActionListener<NetworkEvent> callback) throws IOException
Gest a post from a post Id

Parameters

postId String
the postId
post Post
an Object to fill with the data
callback ActionListener<NetworkEvent>
the callback that should be updated when the data arrives

getPost

public Post getPost(String postId, boolean needAuth) throws IOException
Gets a Post from a postId This is a sync method it will block until a response it returned

Parameters

postId String
the post id
needAuth boolean
if this object is public needAuth can be false and no authentication will be performed

Returns

the Post requested

getPhoto

public void getPhoto(String photoId, Photo photo, ActionListener<NetworkEvent> callback) throws IOException
Gest a photo from a photo Id

Parameters

photoId String
the photoId
photo Photo
an Object to fill with the data
callback ActionListener<NetworkEvent>
the callback that should be updated when the data arrives

getPhoto

public Photo getPhoto(String photoId, boolean needAuth) throws IOException
Gets a Photo from a photoId This is a sync method it will block until a response it returned

Parameters

photoId String
the photoId
needAuth boolean
if this object is public needAuth can be false and no authentication will be performed

Returns

the Photo requested

getAlbum

public void getAlbum(String albumId, Album album, ActionListener<NetworkEvent> callback) throws IOException
Gest an album from an albumId

Parameters

albumId String
the albumId
album Album
an Object to fill with the data
callback ActionListener<NetworkEvent>
the callback that should be updated when the data arrives

getAlbum

public Album getAlbum(String albumId, boolean needAuth) throws IOException
Gets a Album from a albumId This is a sync method it will block until a response it returned

Parameters

albumId String
the albumId
needAuth boolean
if this object is public needAuth can be false and no authentication will be performed

Returns

the Album requested

getNewsFeed

public void getNewsFeed(String userId, DefaultListModel feed, ActionListener callback) throws IOException
Gets the user news feed, the data is being stored in the given DefaultListModel. By default this method will return last 13 news entries.

Parameters

userId String
the userid we would like to query
feed DefaultListModel
the response to fill
callback ActionListener
the callback that should be updated when the data arrives

getNewsFeed

public void getNewsFeed(String userId, DefaultListModel feed, int limit, ActionListener callback) throws IOException
Gets the user news feed, the data is being stored in the given DefaultListModel.

Parameters

userId String
the userid we would like to query
feed DefaultListModel
the response to fill
limit int
the number of items to return
callback ActionListener
the callback that should be updated when the data arrives

getWallFeed

public void getWallFeed(String userId, DefaultListModel feed, ActionListener callback) throws IOException
Gets the user wall feed, the data is being stored in the given DefaultListModel. By default this method will return last 13 news entries.

Parameters

userId String
the userid we would like to query
feed DefaultListModel
the response fo fill
callback ActionListener
the callback that should be updated when the data arrives

getWallFeed

public void getWallFeed(String userId, DefaultListModel feed, int limit, ActionListener callback) throws IOException
Gets the user wall feed, the data is being stored in the given DefaultListModel.

Parameters

userId String
the userid we would like to query
feed DefaultListModel
the response to fill
limit int
the number of items to return
callback ActionListener
the callback that should be updated when the data arrives

getWallPosts

public void getWallPosts(String userId, DefaultListModel feed, ActionListener callback) throws IOException
Gets the user wall feed, the data is being stored in the given DefaultListModel. By default this method will return last 13 news entries.

Parameters

userId String
the userid we would like to query
feed DefaultListModel
the response fo fill
callback ActionListener
the callback that should be updated when the data arrives

getWallPosts

public void getWallPosts(String userId, DefaultListModel feed, int limit, ActionListener callback) throws IOException
Gets the user wall posts, the data is being stored in the given DefaultListModel.

Parameters

userId String
the userid we would like to query
feed DefaultListModel
the response to fill
limit int
the number of items to return
callback ActionListener
the callback that should be updated when the data arrives

getPicture

public void getPicture(String id, Label label, Dimension toScale, boolean tempStorage) throws IOException
Gets the picture of the given facebook object id

Parameters

id String
the object id to query
label Label
place the image on the given label as an icon
toScale Dimension
scale the image to the given dimension
tempStorage boolean
if true place the image in a temp storage

getPicture

public void getPicture(String id, ActionListener callback, Dimension toScale, boolean tempStorage) throws IOException
Gets the picture of the given facebook object id

Parameters

id String
the object id to query
callback ActionListener
the callback that should be updated when the data arrives
toScale Dimension
picture dimension or null
tempStorage boolean
if true place the image in a temp storage

getPictureAndWait

public EncodedImage getPictureAndWait(String id, Dimension toScale)
Gets the picture of the given facebook object id

Parameters

id String
the object id to query
toScale Dimension
picture dimension or null

Returns

the picture

getImageURL

public String getImageURL(String id, Dimension toScale)
Returns the URL for a given image

Parameters

id String
the id of the image
toScale Dimension
the resolution we want

Returns

a link that should fetch that image

getPicture

public void getPicture(String id, Component targetList, int targetOffset, String targetKey, Dimension toScale, boolean tempStorage) throws IOException

Gets the picture of the given facebook object id and stores it in the given List in the offset index

This assumes the GenericListCellRenderer style of list which relies on a hashtable based model approach.

Parameters

id String
the object id to query
targetList Component
the list that should be updated when the data arrives
targetOffset int
the offset within the list to insert the image
targetKey String
the key for the hashtable in the target offset
toScale Dimension
the scale of the image to put in the List or null
tempStorage boolean
if true place the image in a temp storage

getPhotoThumbnail

public void getPhotoThumbnail(String photoId, ActionListener callback, boolean tempStorage) throws IOException
Gets the photo thumbnail of a Photo Object

Parameters

photoId String
the photo id
callback ActionListener
the callback that should be updated when the data arrives
tempStorage boolean
if true place the image in a temp storage

getPhotoThumbnail

public void getPhotoThumbnail(String photoId, Label label, Dimension toScale, boolean tempStorage) throws IOException
Gets the photo thumbnail of a Photo Object

Parameters

photoId String
the photo id
label Label
place the image on the given label as an icon
toScale Dimension
scale the image to the given dimension
tempStorage boolean
if true place the image in a temp storage

getUserFriends

public void getUserFriends(String userId, DefaultListModel friends, ActionListener callback) throws IOException
Gets the user friends

Parameters

userId String
the id
friends DefaultListModel
store friends results into the given model, each entry is an Hashtable Object contaning the Object data
callback ActionListener
the callback that should be updated when the data arrives

getUserAlbums

public void getUserAlbums(String userId, DefaultListModel albums, ActionListener callback) throws IOException
Gets the user albums

Parameters

userId String
the id
albums DefaultListModel
store albums results into the given model, each entry is an Hashtable Object contaning the Object data
callback ActionListener
the callback that should be updated when the data arrives

getAlbumPhotos

public void getAlbumPhotos(String albumId, DefaultListModel photos, int offset, int limit, ActionListener callback) throws IOException
Gets the albums photos

Parameters

albumId String
the id
photos DefaultListModel
store photos results into the given model, each entry is an Hashtable Object contaning the Object data
offset int
the offset of the photo in the album
limit int
amount of photos to bring
callback ActionListener
the callback that should be updated when the data arrives

getPostComments

public void getPostComments(String postId, DefaultListModel comments, ActionListener callback) throws IOException
Gets the post comments

Parameters

postId String
the id
comments DefaultListModel
store comments results into the given model, each entry is an Hashtable Object contaning the Object data
callback ActionListener
the callback that should be updated when the data arrives

getUserInboxThreads

public void getUserInboxThreads(String userId, DefaultListModel threads, int limit, ActionListener callback) throws IOException
Gets the user inbox Threads

Parameters

userId String
the id
threads DefaultListModel
store threads results into the given model, each entry is an Hashtable Object contaning the Object data
limit int
the amount of thread to return
callback ActionListener
the callback that should be updated when the data arrives

postOnWall

public void postOnWall(String userId, String message) throws IOException
Post a message on the users wall

Parameters

userId String
the userId
message String
the message to post

postLike

public void postLike(String postId) throws IOException
Post like on a given post

Parameters

postId String
the post Id

postComment

public void postComment(String postId, String message) throws IOException
Post a comment on a given post

Parameters

postId String
the post id
message String
the message to post

createNote

public void createNote(String userId, String subject, String message) throws IOException
Post a note onto the users wall

Parameters

userId String
the userId
subject String
Not documented.
message String
the message to post

postOnWall

public void postOnWall(String userId, String message, ActionListener callback) throws IOException
Post a message on the users wall

Parameters

userId String
the userId
message String
the message to post
callback ActionListener
Not documented.

postOnWall

public void postOnWall(String userId, String message, String name, String link, String description, String picture, String caption, ActionListener callback) throws IOException
Post a message on the users wall

Parameters

userId String
the userId
message String
the message to post
name String
Not documented.
link String
Not documented.
description String
Not documented.
picture String
Not documented.
caption String
Not documented.
callback ActionListener
Not documented.

postLike

public void postLike(String postId, ActionListener callback) throws IOException
Post like on a given post

Parameters

postId String
the post Id
callback ActionListener
Not documented.

postComment

public void postComment(String postId, String message, ActionListener callback) throws IOException
Post a comment on a given post

Parameters

postId String
the post id
message String
the message to post
callback ActionListener
Not documented.

createNote

public void createNote(String userId, String subject, String message, ActionListener callback) throws IOException
Post a note onto the users wall

Parameters

userId String
the userId
subject String
Not documented.
message String
the message to post
callback ActionListener
Not documented.

getUserNotifications

public void getUserNotifications(String userId, String startTime, boolean includeRead, DefaultListModel notifications, ActionListener<NetworkEvent> callback) throws IOException
Gets the user notifications (this method uses the legacy rest api see http://developers.facebook.com/docs/reference/rest/)

Parameters

userId String
the user id
startTime String
Indicates the earliest time to return a notification. This equates to the updated_time field in the notification FQL table. If not specified, this call returns all available notifications.
includeRead boolean
Indicates whether to include notifications that have already been read. By default, notifications a user has read are not included.
notifications DefaultListModel
store notifications results into the given model, each entry is an Hashtable Object contaning the Object data
callback ActionListener<NetworkEvent>
the callback that should be updated when the data arrives

getUsersDetails

public void getUsersDetails(String[] usersIds, String[] fields, ActionListener<NetworkEvent> callback) throws IOException
Gets users requested details ((this method uses the legacy rest api see http://developers.facebook.com/docs/reference/rest/))

Parameters

usersIds String[]
the users to query
fields String[]
which fields to query on the users see http://developers.facebook.com/docs/reference/rest/users.getInfo/
callback ActionListener<NetworkEvent>
the result will call the callback with the result to extrct the data preform the following: public void actionPerformed(ActionEvent evt) { Vector data = (Vector) ((NetworkEvent) evt).getMetaData(); Vector users = (Vector) data.elementAt(0); }

getUserEvents

public void getUserEvents(String userId, DefaultListModel events, ActionListener callback) throws IOException
Gets the user events

Parameters

userId String
the user id
events DefaultListModel
store events results into the given model, each entry is an Hashtable Object contaning the Object data
callback ActionListener
the callback that should be updated when the data arrives

search

public void search(String objectType, String query, DefaultListModel results, ActionListener callback) throws IOException
Serach for facebook objects

Parameters

objectType String
one of each: post, user, page, event, group, place, checkin
query String
the query string to search for
results DefaultListModel
store results onto the given model, each entry is an Hashtable Object contaning the Object data
callback ActionListener
the callback that should be updated when the data arrives

killCurrentRequest

public void killCurrentRequest()
Kills the current request.

addResponseCodeListener

public void addResponseCodeListener(ActionListener a)
Adds a response listener on the requests

Parameters

a ActionListener
response listener

removeResponseCodeListener

public void removeResponseCodeListener(ActionListener a)
Removes a response listener

cleanTempStorage

public void cleanTempStorage()
Deletes all temp storage.