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.RedirectTokenInterceptorcan be seen as an emptyOAuthTokenInterceptorbecause 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.SERVERsince 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.StringgetPathPrefix()Get the path handled by the interceptor.voidhandleRequest(io.undertow.server.HttpServerExchange exchange)
-
-
-
Constructor Detail
-
RedirectTokenInterceptor
public RedirectTokenInterceptor()
-
-
Method Detail
-
getPathPrefix
public java.lang.String getPathPrefix()
Description copied from interface:OAuthTokenInterceptorGet the path handled by the interceptor.- Specified by:
getPathPrefixin interfaceOAuthTokenInterceptor- Returns:
- The path handled by the interceptor.
-
handleRequest
public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws java.lang.Exception
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Throws:
java.lang.Exception
-
-