adams.flow.transformer.HttpRequest
Sends the incoming text/bytes payload to the specified URL (with optional HTTP headers) and forwards the retrieved HTML as text.
Flow input/output:
- input: byte[], java.lang.String
- output: adams.flow.container.HttpRequestResult
Container information:
- adams.flow.container.HttpRequestResult:
- Status code: HTTP status code; java.lang.Integer
- Status message: HTTP status message; java.lang.String
- Body: HTML of the request; java.lang.String
- Cookies: cookie mappings (String/String); java.util.Map
The logging level for outputting errors and debugging output.
command-line | -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> |
default | WARNING |
min-user-mode | Expert |
The name of the actor.
command-line | -name <java.lang.String> |
default | HttpRequest |
The annotations to attach to this actor.
command-line | -annotation <adams.core.base.BaseAnnotation> |
default |
|
If set to true, transformation is skipped and the input token is just forwarded as it is.
command-line | -skip <boolean> |
default | false |
If set to true, the flow execution at this level gets stopped in case this actor encounters an error; the error gets propagated; useful for critical actors.
command-line | -stop-flow-on-error <boolean> |
default | false |
min-user-mode | Expert |
If enabled, then no errors are output in the console; Note: the enclosing actor handler must have this enabled as well.
command-line | -silent <boolean> |
default | false |
min-user-mode | Expert |
The URL for the request.
command-line | -url <adams.core.base.BaseURL> |
default | http://localhost |
The method to use for the request.
command-line | -method <GET|POST|PUT|PATCH|HEAD|DELETE|OPTIONS> |
default | POST |
The mime-type for the request, leave empty for application/octet-stream.
command-line | -mime-type <java.lang.String> |
default |
|
The (optional) request headers to send.
command-line | -header <adams.core.base.BaseKeyValuePair> [-header ...] |
default |
|
The type of encoding to use for incoming strings.
command-line | -encoding <adams.core.base.BaseCharset> |
default | UTF-8 |