org.javalite.http
Class Put
java.lang.Object
org.javalite.http.Request<Put>
org.javalite.http.Put
public class Put
- extends Request<Put>
Executes a PUT request.
- Author:
- Igor Polevoy
|
Constructor Summary |
Put(String uri,
byte[] content,
int connectTimeout,
int readTimeout)
Constructor for making PUT 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 |
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.
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.