org.javalite.http
Class Put

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

public class Put
extends Request<Put>

Executes a PUT request.

Author:
Igor Polevoy

Field Summary
 
Fields inherited from class org.javalite.http.Request
connection, url
 
Constructor Summary
Put(String uri, byte[] content, int connectTimeout, int readTimeout)
          Constructor for making PUT requests.
 
Method Summary
 Put 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

Put

public Put(String uri,
           byte[] content,
           int connectTimeout,
           int readTimeout)
Constructor for making PUT requests.

Parameters:
uri - URI of resource.
content - content to be "put" into a resource.
connectTimeout - connection timeout.
readTimeout - read timeout.
Method Detail

doConnect

public Put doConnect()
Description copied from class: Request
Makes a connection to the remote resource.

Specified by:
doConnect in class Request<Put>
Returns:
self.

main

public static void main(String[] args)


Copyright © 2015 JavaLite. All rights reserved.