Package | Description |
---|---|
HTTPClient |
The Grinder HTTP Plugin incorporates Ronald Tschal�r's HTTPClient
library.
|
net.grinder.plugin.http |
HTTP plug-in that provides a pool of connections per worker thread.
|
Modifier and Type | Method and Description |
---|---|
NVPair[] |
HTTPConnection.getDefaultHeaders()
Gets the current list of default http headers.
|
NVPair[] |
Request.getHeaders() |
NVPair[] |
RoRequest.getHeaders() |
NVPair[] |
AuthorizationInfo.getParams()
Get the authentication parameters.
|
NVPair[] |
HttpHeaderElement.getParams() |
NVPair[] |
HttpOutputStream.getTrailers()
Gets the trailers which were set with
setTrailers() . |
NVPair |
AuthorizationPrompter.getUsernamePassword(AuthorizationInfo challenge,
boolean forProxy)
This method is invoked whenever a username and password is required
for an authentication challenge to proceed.
|
static NVPair[] |
Codecs.mpFormDataDecode(byte[] data,
String cont_type,
String dir)
This method decodes a multipart/form-data encoded string.
|
static NVPair[] |
Codecs.mpFormDataDecode(byte[] data,
String cont_type,
String dir,
FilenameMangler mangler)
This method decodes a multipart/form-data encoded string.
|
static NVPair[] |
Codecs.query2nv(String query)
Turns a string of the form "name1=value1&name2=value2&name3=value3"
into an array of name/value pairs.
|
Modifier and Type | Method and Description |
---|---|
static void |
AuthorizationInfo.addAuthorization(String host,
int port,
String scheme,
String realm,
String cookie,
NVPair[] params,
Object info)
Adds an authorization entry to the list using the default context.
|
static void |
AuthorizationInfo.addAuthorization(String host,
int port,
String scheme,
String realm,
String cookie,
NVPair[] params,
Object info,
Object context)
Adds an authorization entry to the list.
|
static byte[] |
Codecs.chunkedEncode(byte[] data,
int off,
int len,
NVPair[] ftrs,
boolean last)
Encodes data used the chunked encoding.
|
static byte[] |
Codecs.chunkedEncode(byte[] data,
NVPair[] ftrs,
boolean last)
Encodes data used the chunked encoding.
|
HTTPResponse |
HTTPConnection.Delete(String file,
NVPair[] headers)
Requests that file be DELETEd from the server.
|
HTTPResponse |
HTTPConnection.ExtensionMethod(String method,
String file,
byte[] data,
NVPair[] headers)
This is here to allow an arbitrary, non-standard request to be sent.
|
HTTPResponse |
HTTPConnection.ExtensionMethod(String method,
String file,
HttpOutputStream os,
NVPair[] headers)
This is here to allow an arbitrary, non-standard request to be sent.
|
HTTPResponse |
HTTPConnection.Get(String file,
NVPair[] form_data)
GETs the file with a query consisting of the specified form-data.
|
HTTPResponse |
HTTPConnection.Get(String file,
NVPair[] form_data,
NVPair[] headers)
GETs the file with a query consisting of the specified form-data.
|
HTTPResponse |
HTTPConnection.Get(String file,
NVPair[] form_data,
NVPair[] headers)
GETs the file with a query consisting of the specified form-data.
|
HTTPResponse |
HTTPConnection.Get(String file,
String query,
NVPair[] headers)
GETs the file using the specified query string.
|
HTTPResponse |
HTTPConnection.Head(String file,
NVPair[] form_data)
Sends the HEAD request.
|
HTTPResponse |
HTTPConnection.Head(String file,
NVPair[] form_data,
NVPair[] headers)
Sends the HEAD request.
|
HTTPResponse |
HTTPConnection.Head(String file,
NVPair[] form_data,
NVPair[] headers)
Sends the HEAD request.
|
HTTPResponse |
HTTPConnection.Head(String file,
String query,
NVPair[] headers)
Sends the HEAD request.
|
static byte[] |
Codecs.mpFormDataEncode(NVPair[] opts,
NVPair[] files,
NVPair[] ct_hdr)
This method encodes name/value pairs and files into a byte array
using the multipart/form-data encoding.
|
static byte[] |
Codecs.mpFormDataEncode(NVPair[] opts,
NVPair[] files,
NVPair[] ct_hdr)
This method encodes name/value pairs and files into a byte array
using the multipart/form-data encoding.
|
static byte[] |
Codecs.mpFormDataEncode(NVPair[] opts,
NVPair[] files,
NVPair[] ct_hdr)
This method encodes name/value pairs and files into a byte array
using the multipart/form-data encoding.
|
static byte[] |
Codecs.mpFormDataEncode(NVPair[] opts,
NVPair[] files,
NVPair[] ct_hdr,
FilenameMangler mangler)
This method encodes name/value pairs and files into a byte array
using the multipart/form-data encoding.
|
static byte[] |
Codecs.mpFormDataEncode(NVPair[] opts,
NVPair[] files,
NVPair[] ct_hdr,
FilenameMangler mangler)
This method encodes name/value pairs and files into a byte array
using the multipart/form-data encoding.
|
static byte[] |
Codecs.mpFormDataEncode(NVPair[] opts,
NVPair[] files,
NVPair[] ct_hdr,
FilenameMangler mangler)
This method encodes name/value pairs and files into a byte array
using the multipart/form-data encoding.
|
static String |
Codecs.nv2query(NVPair[] pairs)
Turns an array of name/value pairs into the string
"name1=value1&name2=value2&name3=value3".
|
HTTPResponse |
HTTPConnection.Options(String file,
NVPair[] headers)
Request OPTIONS from the server.
|
HTTPResponse |
HTTPConnection.Options(String file,
NVPair[] headers,
byte[] data)
Request OPTIONS from the server.
|
HTTPResponse |
HTTPConnection.Options(String file,
NVPair[] headers,
HttpOutputStream stream)
Request OPTIONS from the server.
|
HTTPResponse |
HTTPConnection.Post(String file,
byte[] data,
NVPair[] headers)
POSTs the raw data to the specified file using the specified headers.
|
HTTPResponse |
HTTPConnection.Post(String file,
HttpOutputStream stream,
NVPair[] headers)
POSTs the data written to the output stream to the specified file
using the specified headers.
|
HTTPResponse |
HTTPConnection.Post(String file,
NVPair[] form_data)
POSTs form-data to the specified file.
|
HTTPResponse |
HTTPConnection.Post(String file,
NVPair[] form_data,
NVPair[] headers)
POST's form-data to the specified file using the specified headers.
|
HTTPResponse |
HTTPConnection.Post(String file,
NVPair[] form_data,
NVPair[] headers)
POST's form-data to the specified file using the specified headers.
|
HTTPResponse |
HTTPConnection.Post(String file,
String data,
NVPair[] headers)
POSTs the data to the specified file using the specified headers.
|
HTTPResponse |
HTTPConnection.Put(String file,
byte[] data,
NVPair[] headers)
PUTs the raw data into the specified file using the additional
headers.
|
HTTPResponse |
HTTPConnection.Put(String file,
HttpOutputStream stream,
NVPair[] headers)
PUTs the data written to the output stream into the specified file
using the additional headers.
|
HTTPResponse |
HTTPConnection.Put(String file,
String data,
NVPair[] headers)
PUTs the data into the specified file using the additional headers
for the request.
|
void |
HTTPConnection.setDefaultHeaders(NVPair[] headers)
Sets the default http headers to be sent with each request.
|
void |
Request.setHeaders(NVPair[] headers) |
void |
AuthorizationInfo.setParams(NVPair[] params)
Set the authentication parameters.
|
void |
HttpOutputStream.setTrailers(NVPair[] trailers)
Sets the trailers to be sent if the output is sent with the
chunked transfer encoding.
|
protected HTTPResponse |
HTTPConnection.setupRequest(String method,
String resource,
NVPair[] headers,
byte[] entity,
HttpOutputStream stream)
Sets up the request, creating the list of headers to send and
creating instances of the modules.
|
HTTPResponse |
HTTPConnection.Trace(String file,
NVPair[] headers)
Requests a TRACE.
|
Constructor and Description |
---|
AuthorizationInfo(String host,
int port,
String scheme,
String realm,
NVPair[] params,
Object info)
Creates a new info structure for the specified host and port with the
specified scheme, realm, params.
|
HttpHeaderElement(String name,
String value,
NVPair[] params) |
NVPair(NVPair p)
Creates a copy of a given name/value pair.
|
Request(HTTPConnection con,
String method,
String req_uri,
NVPair[] headers,
byte[] data,
HttpOutputStream stream,
boolean allow_ui)
Creates a new request structure.
|
Response(String version,
int status,
String reason,
NVPair[] headers,
byte[] data,
InputStream is,
int cont_len)
Create a new response with the given info.
|
Modifier and Type | Method and Description |
---|---|
NVPair |
HTTPUtilities.basicAuthorizationHeader(String userID,
String password)
Create a
NVPair for an HTTP Basic Authorization header. |
NVPair[] |
HTTPRequest.getFormData()
Gets the default form data.
|
NVPair[] |
HTTPRequest.getHeaders()
Gets the default headers.
|
Modifier and Type | Method and Description |
---|---|
HTTPResponse |
HTTPRequest.DELETE(String uri,
NVPair[] headers)
Makes an HTTP
DELETE request. |
HTTPResponse |
HTTPRequest.GET(NVPair[] queryData)
Makes an HTTP
GET request. |
HTTPResponse |
HTTPRequest.GET(String uri,
NVPair[] queryData)
Makes an HTTP
GET request. |
HTTPResponse |
HTTPRequest.GET(String uri,
NVPair[] queryData,
NVPair[] headers)
Makes an HTTP
GET request. |
HTTPResponse |
HTTPRequest.GET(String uri,
NVPair[] queryData,
NVPair[] headers)
Makes an HTTP
GET request. |
HTTPResponse |
HTTPRequest.HEAD(NVPair[] queryData)
Makes an HTTP
HEAD request. |
HTTPResponse |
HTTPRequest.HEAD(String uri,
NVPair[] queryData)
Makes an HTTP
HEAD request. |
HTTPResponse |
HTTPRequest.HEAD(String uri,
NVPair[] queryData,
NVPair[] headers)
Makes an HTTP
HEAD request. |
HTTPResponse |
HTTPRequest.HEAD(String uri,
NVPair[] queryData,
NVPair[] headers)
Makes an HTTP
HEAD request. |
HTTPResponse |
HTTPRequest.OPTIONS(String uri,
byte[] data,
NVPair[] headers)
Makes an HTTP
OPTIONS request. |
HTTPResponse |
HTTPRequest.OPTIONS(String uri,
InputStream inputStream,
NVPair[] headers)
Makes an HTTP
OPTIONS request. |
HTTPResponse |
HTTPRequest.POST(NVPair[] formData)
Makes an HTTP
POST request. |
HTTPResponse |
HTTPRequest.POST(String uri,
byte[] data,
NVPair[] headers)
Makes an HTTP
POST request. |
HTTPResponse |
HTTPRequest.POST(String uri,
InputStream inputStream,
NVPair[] headers)
Makes an HTTP
POST request. |
HTTPResponse |
HTTPRequest.POST(String uri,
NVPair[] formData)
Makes an HTTP
POST request. |
HTTPResponse |
HTTPRequest.POST(String uri,
NVPair[] formData,
NVPair[] headers)
Makes an HTTP
POST request. |
HTTPResponse |
HTTPRequest.POST(String uri,
NVPair[] formData,
NVPair[] headers)
Makes an HTTP
POST request. |
HTTPResponse |
HTTPRequest.POST(String uri,
NVPair[] formData,
NVPair[] headers,
boolean isMultipart)
Makes an HTTP
POST request. |
HTTPResponse |
HTTPRequest.POST(String uri,
NVPair[] formData,
NVPair[] headers,
boolean isMultipart)
Makes an HTTP
POST request. |
HTTPResponse |
HTTPRequest.PUT(String uri,
byte[] data,
NVPair[] headers)
Makes an HTTP
PUT request. |
HTTPResponse |
HTTPRequest.PUT(String uri,
InputStream inputStream,
NVPair[] headers)
Makes an HTTP
PUT request. |
void |
HTTPPluginConnection.setDefaultHeaders(NVPair[] defaultHeaders)
Sets the default HTTP headers to be sent with each request.
|
void |
HTTPRequest.setFormData(NVPair[] formData)
Sets the default form data.
|
void |
HTTPRequest.setHeaders(NVPair[] headers)
Sets the default headers.
|
HTTPResponse |
HTTPRequest.TRACE(String uri,
NVPair[] headers)
Makes an HTTP
TRACE request. |
Copyright © 2000-2014. All Rights Reserved.