|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dyuproject.oauth.Endpoint
public final class Endpoint
Endpoint which contains all the information for the target webservice.
Constructor Summary | |
---|---|
Endpoint(String consumerKey,
String consumerSecret,
boolean secure,
String domain,
String requestTokenUrl,
String authorizeUrl,
String accessTokenUrl,
Signature signature,
Transport transport)
|
|
Endpoint(String consumerKey,
String consumerSecret,
boolean secure,
String domain,
String requestTokenUrl,
String authorizationUrl,
String accessTokenUrl,
String sigMethod,
String transportName)
|
Method Summary | |
---|---|
String |
getAccessTokenUrl()
Gets the url for exchanging the request token with an access token. |
String |
getAuthorizationUrl()
Gets the url for authorizing the request token. |
String |
getConsumerKey()
Gets the consumer key. |
String |
getConsumerSecret()
Gets the consumer secret. |
String |
getDomain()
Gets the domain. |
String |
getRequestTokenUrl()
Gets the url for obtaining the request token. |
String |
getRoot()
Gets the root ("http://" or "https://") |
Signature |
getSignature()
Gets the signature used for this endpoint. |
Transport |
getTransport()
Gets the transport used for this endpoint; This could either be HttpAuthTransport , HttpGetTransport or
HttpPostTransport . |
boolean |
isSecure()
Checks whether this endpoint is secure. |
static Endpoint |
load(InputStream in)
Loads an endpoint from the given InputStream in. |
static Endpoint |
load(Properties props)
Loads an endpoint from the given Properties props. |
static Endpoint |
load(Properties props,
String domain)
Loads an endpoint from the given Properties props configured for
the given domain . |
static Endpoint |
load(String resource)
Loads an endpoint from the given resource from the classpath. |
static Endpoint |
load(URL resource)
Loads an endpoint from the given URL resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Endpoint(String consumerKey, String consumerSecret, boolean secure, String domain, String requestTokenUrl, String authorizationUrl, String accessTokenUrl, String sigMethod, String transportName)
public Endpoint(String consumerKey, String consumerSecret, boolean secure, String domain, String requestTokenUrl, String authorizeUrl, String accessTokenUrl, Signature signature, Transport transport)
Method Detail |
---|
public static Endpoint load(String resource) throws IOException
resource
from the classpath.
IOException
public static Endpoint load(URL resource) throws IOException
URL
resource.
IOException
public static Endpoint load(InputStream in) throws IOException
InputStream
in.
IOException
public static Endpoint load(Properties props)
Properties
props.
public static Endpoint load(Properties props, String domain)
Properties
props configured for
the given domain
.
public String getConsumerKey()
public String getConsumerSecret()
public String getDomain()
public String getRoot()
public boolean isSecure()
public String getRequestTokenUrl()
public String getAuthorizationUrl()
public String getAccessTokenUrl()
public Signature getSignature()
public Transport getTransport()
HttpAuthTransport
, HttpGetTransport
or
HttpPostTransport
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |