org.javalite.http
Class Post

java.lang.Object
  extended by org.javalite.http.Request<Post>
      extended by org.javalite.http.Post

public class Post
extends Request<Post>

Executes a POST request.

Author:
Igor Polevoy

Field Summary
 
Fields inherited from class org.javalite.http.Request
connection, url
 
Constructor Summary
Post(String uri, byte[] content, int connectTimeout, int readTimeout)
          Constructor for making POST requests.
 
Method Summary
 Post doConnect()
          Makes a connection to the remote resource.
static void main(String[] args)
           
 
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
 

Constructor Detail

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.
Method Detail

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.