org.javalite.http
Class Post
java.lang.Object
org.javalite.http.Request<Post>
org.javalite.http.Post
public class Post
- extends Request<Post>
Executes a POST request.
- Author:
- Igor Polevoy
|
Constructor Summary |
Post(String uri,
byte[] content,
int connectTimeout,
int readTimeout)
Constructor for making POST 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 |
Post
public Post(String uri,
byte[] content,
int connectTimeout,
int readTimeout)
- Constructor for making POST requests.
- Parameters:
uri - URI of resource.content - content to be posted to the resource.connectTimeout - connection timeout.readTimeout - read timeout.
doConnect
public Post doConnect()
- Description copied from class:
Request
- Makes a connection to the remote resource.
- Specified by:
doConnect in class Request<Post>
- Returns:
- self.
main
public static void main(String[] args)
Copyright © 2015 JavaLite. All rights reserved.