|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.buglabs.util.simplerestclient.DefaultConnectionProvider
com.buglabs.util.simplerestclient.BasicAuthenticationConnectionProvider
public class BasicAuthenticationConnectionProvider
A connection provider to use HTTP Basic Authentication Create this and pass it into the HTTPRequest construction when creating it to use basic authenticatioin: HettpRequest req = HTTPRequest(new BasicAuthenticationConnectionProvider("foo", "bar"));
| Constructor Summary | |
|---|---|
BasicAuthenticationConnectionProvider(java.lang.String username,
java.lang.String password)
|
|
| Method Summary | |
|---|---|
java.net.HttpURLConnection |
getConnection(java.lang.String urlStr)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicAuthenticationConnectionProvider(java.lang.String username,
java.lang.String password)
| Method Detail |
|---|
public java.net.HttpURLConnection getConnection(java.lang.String urlStr)
throws java.io.IOException
getConnection in interface IConnectionProvidergetConnection in class DefaultConnectionProviderjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||