karl li
karl li

Reputation: 479

how to write HttpRequest with "get" Method

I'm using com.google.api.client.http

I want to send some request with this package.

HttpRequest request = new HttpRequest(new HttpTransport(),"GET");

But the HttpTransport in the package is abstract ,so it means I need to implement this class?

Is there anyone who can help me ?

Upvotes: 1

Views: 223

Answers (1)

Hui Zheng
Hui Zheng

Reputation: 10224

You don't have to implement this class if the library supplies some concrete classes inheriting from this abstract class(unless none of them fits your needs). For example, ApacheHttpTransport, NetHttpTransport and UrlFetchTransport.

Upvotes: 1

Related Questions