Class OAuthWebResponses
- java.lang.Object
-
- org.syncany.plugins.transfer.oauth.OAuthWebResponses
-
public abstract class OAuthWebResponses extends java.lang.Object
Factory class to generate some commonOAuthWebResponse
s. 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.String
RESOURCE_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.OAuthWebResponse
createBadResponse()
ThisOAuthWebResponse
is used when there was an error during the OAuth process.static org.syncany.plugins.transfer.oauth.OAuthWebResponse
createValidResponse()
ThisOAuthWebResponse
is 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()
ThisOAuthWebResponse
is used when a token was succesfully extracted. It usesValidWebResponse.html
which 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()
ThisOAuthWebResponse
is used when there was an error during the OAuth process. It usesBadRequestWebResponse.html
which should be placed in "/org/syncany/plugins/oauth/".- Returns:
- Either the parsed html file or a fallback string.
-
-