Class OAuthWebResponses
- java.lang.Object
-
- org.syncany.plugins.transfer.oauth.OAuthWebResponses
-
public abstract class OAuthWebResponses extends java.lang.Object
Factory class to generate some commonOAuthWebResponses. It uses html sites residing in the ressource folder, but provides plain text fallbacks if a specific site cannot be read.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringRESOURCE_DIR
-
Constructor Summary
Constructors Constructor Description OAuthWebResponses()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.syncany.plugins.transfer.oauth.OAuthWebResponsecreateBadResponse()ThisOAuthWebResponseis used when there was an error during the OAuth process.static org.syncany.plugins.transfer.oauth.OAuthWebResponsecreateValidResponse()ThisOAuthWebResponseis used when a token was succesfully extracted.
-
-
-
Field Detail
-
RESOURCE_DIR
public static final java.lang.String RESOURCE_DIR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
OAuthWebResponses
public OAuthWebResponses()
-
-
Method Detail
-
createValidResponse
public static org.syncany.plugins.transfer.oauth.OAuthWebResponse createValidResponse()
ThisOAuthWebResponseis used when a token was succesfully extracted. It usesValidWebResponse.htmlwhich should be placed in "/org/syncany/plugins/oauth/".- Returns:
- Either the parsed html file or a fallback string.
-
createBadResponse
public static org.syncany.plugins.transfer.oauth.OAuthWebResponse createBadResponse()
ThisOAuthWebResponseis used when there was an error during the OAuth process. It usesBadRequestWebResponse.htmlwhich should be placed in "/org/syncany/plugins/oauth/".- Returns:
- Either the parsed html file or a fallback string.
-
-