|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.client.http.HttpGDataRequest.Factory
public static class HttpGDataRequest.Factory
The HttpGDataRequest.Factory class is a factory class for constructing new HttpGDataRequest instances.
| Field Summary | |
|---|---|
protected HttpAuthToken |
authToken
|
protected java.util.Map<java.lang.String,java.lang.String> |
headerMap
|
protected java.util.Map<java.lang.String,java.lang.String> |
privateHeaderMap
|
protected boolean |
useSsl
|
| Constructor Summary | |
|---|---|
HttpGDataRequest.Factory()
|
|
| Method Summary | |
|---|---|
Service.GDataRequest |
getRequest(Query query,
ContentType contentType)
Creates a new GDataRequest instance for querying a service. |
Service.GDataRequest |
getRequest(Service.GDataRequest.RequestType type,
java.net.URL requestUrl,
ContentType contentType)
Creates a new GDataRequest instance of the specified RequestType. |
void |
setAuthToken(AuthTokenFactory.AuthToken authToken)
Set authentication token to be used on subsequent requests created via Service.GDataRequestFactory.getRequest(
com.google.gdata.client.Service.GDataRequest.RequestType, URL,
ContentType). |
void |
setAuthToken(HttpAuthToken authToken)
|
void |
setHeader(java.lang.String header,
java.lang.String value)
Set a header that will be included in all requests. |
void |
setPrivateHeader(java.lang.String header,
java.lang.String value)
Set a header that will be included in all requests and do not log the value. |
void |
useSsl()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HttpAuthToken authToken
protected java.util.Map<java.lang.String,java.lang.String> headerMap
protected java.util.Map<java.lang.String,java.lang.String> privateHeaderMap
protected boolean useSsl
| Constructor Detail |
|---|
public HttpGDataRequest.Factory()
| Method Detail |
|---|
public void setAuthToken(AuthTokenFactory.AuthToken authToken)
Service.GDataRequestFactoryService.GDataRequestFactory.getRequest(
com.google.gdata.client.Service.GDataRequest.RequestType, URL,
ContentType).
An IllegalArgumentException is thrown if an auth token of the
wrong type is passed, or if authentication is not supported.
setAuthToken in interface Service.GDataRequestFactoryauthToken - Authentication token.public void setAuthToken(HttpAuthToken authToken)
public void useSsl()
public void setHeader(java.lang.String header,
java.lang.String value)
Service.GDataRequestFactory
setHeader in interface Service.GDataRequestFactoryheader - the name of the headervalue - the value of the header, if null, then unset that header.
public void setPrivateHeader(java.lang.String header,
java.lang.String value)
Service.GDataRequestFactory
setPrivateHeader in interface Service.GDataRequestFactoryheader - the name of the headervalue - the value of the header. If null, then unset that header.
public Service.GDataRequest getRequest(Service.GDataRequest.RequestType type,
java.net.URL requestUrl,
ContentType contentType)
throws java.io.IOException,
ServiceException
Service.GDataRequestFactory
getRequest in interface Service.GDataRequestFactoryjava.io.IOException
ServiceException
public Service.GDataRequest getRequest(Query query,
ContentType contentType)
throws java.io.IOException,
ServiceException
Service.GDataRequestFactory
getRequest in interface Service.GDataRequestFactoryjava.io.IOException
ServiceException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||