Package | Description |
---|---|
org.javalite.activeweb |
ActiveWeb - the agile java framework
|
Modifier and Type | Method and Description |
---|---|
RequestBuilder |
RequestBuilder.content(byte[] content) |
RequestBuilder |
RequestBuilder.contentType(String contentType)
Sets content type on request.
|
protected RequestBuilder |
AppIntegrationSpec.controller(String controllerPath)
Takes controller path.
|
protected RequestBuilder |
IntegrationSpec.controller(String controllerName) |
RequestBuilder |
RequestBuilder.cookie(Cookie cookie)
Adds cookie to current request.
|
RequestBuilder |
RequestBuilder.format(String format)
Sets format for this request.
|
RequestBuilder |
RequestBuilder.formItem(FormItem item)
Adds "uploaded" file to the request.
|
RequestBuilder |
RequestBuilder.formItem(Object fieldName,
Object value)
Convenience method to add a non-file form item to request.
|
RequestBuilder |
RequestBuilder.formItem(String fileName,
String fieldName,
boolean isFile,
String contentType,
byte[] content)
Adds an "uploaded" file to the request.
|
RequestBuilder |
RequestBuilder.formItems(Object... namesAndValues)
Convenience method for sending pairs of name and values with multi-part request.
|
RequestBuilder |
RequestBuilder.header(String name,
String value)
Sets a single header for the request.
|
RequestBuilder |
RequestBuilder.headers(String... namesAndValues)
Convenience method to set names and values for headers.
|
RequestBuilder |
RequestBuilder.id(Object id)
Sets ID for this request.
|
RequestBuilder |
RequestBuilder.param(String name)
Convenience method, exists to pass parameters with blank values.
|
RequestBuilder |
RequestBuilder.param(String name,
Object value)
Sets a single parameter for request.
|
RequestBuilder |
RequestBuilder.params(Object... namesAndValues)
Convenience method for setting parameters of the request.
|
RequestBuilder |
RequestBuilder.queryString(String queryString)
Sets a query string (as in URL) for the request.
|
RequestBuilder |
RequestBuilder.remoteAddress(String remoteAddress)
Use to simulate a remote IP address.
|
protected RequestBuilder |
ControllerSpec.request()
Use this DSL-ish method to send requests to controllers from specs.
|
Copyright © 2019 JavaLite. All rights reserved.