Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Implementing serializable at OAuthService and its implementations

  • Loading branch information...
commit 15ce278d9a8b140f7d474496333aa3ea60da1697 1 parent f4c36ab
@bfuster authored
View
4 src/main/java/org/scribe/builder/api/Api.java
@@ -1,5 +1,7 @@
package org.scribe.builder.api;
+import java.io.Serializable;
+
import org.scribe.model.*;
import org.scribe.oauth.*;
@@ -9,7 +11,7 @@
* @author Pablo Fernandez
*
*/
-public interface Api
+public interface Api extends Serializable
{
/**
* Creates an {@link OAuthService}
View
4 src/main/java/org/scribe/builder/api/DefaultApi10a.java
@@ -23,7 +23,9 @@
*/
public abstract class DefaultApi10a implements Api
{
- /**
+ private static final long serialVersionUID = -3234502019570234880L;
+
+/**
* Returns the access token extractor.
*
* @return access token extractor
View
4 src/main/java/org/scribe/builder/api/DefaultApi20.java
@@ -22,8 +22,10 @@
*/
public abstract class DefaultApi20 implements Api
{
+
+ private static final long serialVersionUID = -6733442623821719522L;
- /**
+/**
* Returns the access token extractor.
*
* @return access token extractor
View
4 src/main/java/org/scribe/model/OAuthConfig.java
@@ -7,8 +7,10 @@
*
* @author Pablo Fernandez
*/
-public class OAuthConfig
+public class OAuthConfig implements Serializable
{
+ private static final long serialVersionUID = 225358604407162581L;
+
private final String apiKey;
private final String apiSecret;
private final String callback;
View
3  src/main/java/org/scribe/oauth/OAuth10aServiceImpl.java
@@ -13,6 +13,9 @@
*/
public class OAuth10aServiceImpl implements OAuthService
{
+
+ private static final long serialVersionUID = 8034949250412540195L;
+
private static final String VERSION = "1.0";
private OAuthConfig config;
View
2  src/main/java/org/scribe/oauth/OAuth20ServiceImpl.java
@@ -5,6 +5,8 @@
public class OAuth20ServiceImpl implements OAuthService
{
+ private static final long serialVersionUID = 2394405347932454500L;
+
private static final String VERSION = "2.0";
private final DefaultApi20 api;
View
4 src/main/java/org/scribe/oauth/OAuthService.java
@@ -1,5 +1,7 @@
package org.scribe.oauth;
+import java.io.Serializable;
+
import org.scribe.model.*;
/**
@@ -9,7 +11,7 @@
*
* @author Pablo Fernandez
*/
-public interface OAuthService
+public interface OAuthService extends Serializable
{
/**
* Retrieve the request token.
Please sign in to comment.
Something went wrong with that request. Please try again.