net.sf.fb4j.canvas
Class CanvasRequest
java.lang.Object
net.sf.fb4j.canvas.CanvasRequest
public class CanvasRequest
- extends java.lang.Object
- Author:
- Gino Miceli
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isFbmlRequest
public boolean isFbmlRequest()
isIFrameRequest
public boolean isIFrameRequest()
isAdded
public boolean isAdded()
isJustAdded
public boolean isJustAdded()
getAuthToken
public java.lang.String getAuthToken()
getSignatureTime
public java.util.Date getSignatureTime()
getApiKey
public java.lang.String getApiKey()
getSignature
public java.lang.String getSignature()
isUserLoggedIn
public boolean isUserLoggedIn()
getUserId
public long getUserId()
getFriendIds
public long[] getFriendIds()
getSessionKey
public java.lang.String getSessionKey()
getSessionExpiryTime
public java.util.Date getSessionExpiryTime()
- Returns:
- null if session key never expires, or expiration time if it does
getProfileUpdateTime
public java.util.Date getProfileUpdateTime()
getFacebookSession
public FacebookSession getFacebookSession()
isSignatureValid
public boolean isSignatureValid()
verifyRequest
public void verifyRequest()
throws InvalidRequestError
- Throws:
InvalidRequestError
verifySignature
public void verifySignature()
getApplication
public FacebookApplication getApplication()
getCanvasResponse
public CanvasResponse getCanvasResponse(javax.servlet.http.HttpServletResponse response)
getBooleanParameter
protected boolean getBooleanParameter(javax.servlet.ServletRequest request,
java.lang.String param)
getParameter
protected java.lang.String getParameter(java.lang.String param,
boolean invalidRequestIfNull,
boolean notLoggedInIfNull)
getLongParameter
protected java.lang.Long getLongParameter(java.lang.String param,
boolean invalidRequestIfNull,
boolean notLoggedInIfNull)
getFloatParameter
protected java.lang.Float getFloatParameter(java.lang.String param,
boolean invalidRequestIfNull,
boolean notLoggedInIfNull)
extractSignatureParameters
protected java.util.Map<java.lang.String,java.lang.String> extractSignatureParameters()
- Extracts params that count toward the signature (not the signature or
other params)
- Returns:
Copyright © 2008. All Rights Reserved.