org.javalite.http
Class Get
java.lang.Object
org.javalite.http.Request<Get>
org.javalite.http.Get
public class Get
- extends Request<Get>
Executes a GET request.
- Author:
- Igor Polevoy
|
Constructor Summary |
Get(String uri,
int connectTimeout,
int readTimeout)
Constructor for making GET requests. |
| Methods inherited from class org.javalite.http.Request |
basic, bytes, connect, dispose, getInputStream, header, headers, responseCode, responseMessage, text, text |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Get
public Get(String uri,
int connectTimeout,
int readTimeout)
- Constructor for making GET requests.
- Parameters:
uri - URI of resource.connectTimeout - connection timeout.readTimeout - read timeout.
doConnect
public Get doConnect()
- Description copied from class:
Request
- Makes a connection to the remote resource.
- Specified by:
doConnect in class Request<Get>
- Returns:
- self.
main
public static void main(String[] args)
Copyright © 2015 JavaLite. All rights reserved.