|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
com.vodafone360.people.service.transport.http.authentication.AuthenticationManager
public class AuthenticationManager
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private java.net.URI |
mApiUrl
|
private DecoderThread |
mDecoder
|
private HttpConnectionThread |
mHttpConnection
|
private boolean |
mIsConnectionRunning
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
AuthenticationManager(DecoderThread decoder)
|
|
AuthenticationManager(HttpConnectionThread httpConnection)
|
|
| Method Summary | |
|---|---|
boolean |
getIsConnected()
Returns true if the current connection thread is connected. |
boolean |
getIsRpgConnectionActive()
Returns true if we have an open RPG connection or false if we do not have one. |
void |
handleAuthRequests()
Uses the passed http connection to start a synchronous request against the API. |
void |
notifyOfItemInRequestQueue()
Notifies the implementation that a new request is available in the queue and should trigger its delivery to the backend. |
void |
notifyOfRegainedNetworkCoverage()
Called whenever the network coverage has been reestablished... |
void |
notifyOfUiActivity()
If the UI is currently being used by the user this method gets called. |
void |
onLoginStateChanged(boolean isLoggedIn)
Triggered by the ConnectionManager whenever the login engine has detected a change in the currently held session. |
void |
run()
|
void |
startThread()
Starts the main connection thread. |
void |
stopThread()
Stops the current connection thread. this should also stop any running sub-connection threads such as heartbeats or polls. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.net.URI mApiUrl
private HttpConnectionThread mHttpConnection
private DecoderThread mDecoder
private boolean mIsConnectionRunning
| Constructor Detail |
|---|
public AuthenticationManager(HttpConnectionThread httpConnection)
public AuthenticationManager(DecoderThread decoder)
| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void handleAuthRequests()
public boolean getIsConnected()
IConnection
getIsConnected in interface IConnectionpublic boolean getIsRpgConnectionActive()
IConnection
getIsRpgConnectionActive in interface IConnectionpublic void notifyOfRegainedNetworkCoverage()
IConnection
notifyOfRegainedNetworkCoverage in interface IConnectionpublic void notifyOfUiActivity()
IConnection
notifyOfUiActivity in interface IConnectionpublic void onLoginStateChanged(boolean isLoggedIn)
IConnection
onLoginStateChanged in interface IConnectionisLoggedIn - True if the user was just logged in, false if he was
logged out.public void startThread()
IConnection
startThread in interface IConnectionpublic void stopThread()
IConnection
stopThread in interface IConnectionpublic void notifyOfItemInRequestQueue()
IQueueListener
notifyOfItemInRequestQueue in interface IQueueListener
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
JavaDoc