Class OAuthPortListener
- java.lang.Object
-
- java.lang.Thread
-
- org.openstreetmap.josm.plugins.streetside.oauth.OAuthPortListener
-
- All Implemented Interfaces:
java.lang.Runnable
public class OAuthPortListener extends java.lang.Thread
Listens to the OAuth port (8763) in order to get the access token and sends back a simple reply.
-
-
Field Summary
Fields Modifier and Type Field Description private StreetsideLoginListenercallback(package private) static org.apache.log4j.Loggerloggerstatic intPORTprotected static java.lang.StringRESPONSE
-
Constructor Summary
Constructors Constructor Description OAuthPortListener(StreetsideLoginListener loginCallback)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun()private static voidwriteContent(java.io.PrintWriter out)-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
PORT
public static final int PORT
- See Also:
- Constant Field Values
-
logger
static final org.apache.log4j.Logger logger
-
RESPONSE
protected static final java.lang.String RESPONSE
-
callback
private final StreetsideLoginListener callback
-
-
Constructor Detail
-
OAuthPortListener
public OAuthPortListener(StreetsideLoginListener loginCallback)
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable- Overrides:
runin classjava.lang.Thread
-
writeContent
private static void writeContent(java.io.PrintWriter out)
-
-