Class OAuthTokenInterceptors.RedirectTokenInterceptor
- java.lang.Object
-
- org.syncany.plugins.transfer.oauth.OAuthTokenInterceptors.RedirectTokenInterceptor
-
- All Implemented Interfaces:
io.undertow.server.HttpHandler
,OAuthTokenInterceptor
- Enclosing class:
- OAuthTokenInterceptors
public static class OAuthTokenInterceptors.RedirectTokenInterceptor extends java.lang.Object implements OAuthTokenInterceptor
AOAuthTokenInterceptors.RedirectTokenInterceptor
can be seen as an emptyOAuthTokenInterceptor
because it only redirects to the next step of the OAuth process which is the extraction of the token from the URL. It's needed inOAuthMode.SERVER
since the token parameter is already provided in the URL's query part.
-
-
Constructor Summary
Constructors Constructor Description RedirectTokenInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getPathPrefix()
Get the path handled by the interceptor.void
handleRequest(io.undertow.server.HttpServerExchange exchange)
-
-
-
Constructor Detail
-
RedirectTokenInterceptor
public RedirectTokenInterceptor()
-
-
Method Detail
-
getPathPrefix
public java.lang.String getPathPrefix()
Description copied from interface:OAuthTokenInterceptor
Get the path handled by the interceptor.- Specified by:
getPathPrefix
in interfaceOAuthTokenInterceptor
- Returns:
- The path handled by the interceptor.
-
handleRequest
public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws java.lang.Exception
- Specified by:
handleRequest
in interfaceio.undertow.server.HttpHandler
- Throws:
java.lang.Exception
-
-