Extracted Verb to it's own file and made Request package-private
This commit is contained in:
1 parent
f55177995a
commit
fa8e936995
14 files changed
+14
-27
No files matched your search
@@ -1,7 +1,5 @@
|
||||
package org.scribe.model;
|
||||
|
||||
import org.scribe.model.Request.*;
|
||||
|
||||
public class OAuthConfig
|
||||
{
|
||||
private String apiKey;
|
||||
|
||||
@@ -12,7 +12,7 @@ import org.scribe.utils.*;
|
||||
*
|
||||
* @author Pablo Fernandez
|
||||
*/
|
||||
public class Request
|
||||
class Request
|
||||
{
|
||||
|
||||
private static final String CONTENT_LENGTH = "Content-Length";
|
||||
@@ -235,14 +235,4 @@ public class Request
|
||||
{
|
||||
return String.format("@Request(%s %s)", getVerb(), getUrl());
|
||||
}
|
||||
|
||||
/**
|
||||
* An enumeration containing the most common HTTP Verbs.
|
||||
*
|
||||
* @author Pablo Fernandez
|
||||
*/
|
||||
public static enum Verb
|
||||
{
|
||||
GET, POST, PUT, DELETE
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package org.scribe.model;
|
||||
|
||||
/**
|
||||
* An enumeration containing the most common HTTP Verbs.
|
||||
*
|
||||
* @author Pablo Fernandez
|
||||
*/
|
||||
public enum Verb
|
||||
{
|
||||
GET, POST, PUT, DELETE
|
||||
}
|
||||
Reference in new issue
Block a user