| 134 | "timeout or general exception. It will have new attributes detailing the request."); |
| 135 | |
| 136 | void InvokeHTTP::initialize() { |
| 137 | logger_->log_trace("Initializing InvokeHTTP"); |
| 138 | |
| 139 | // Set the supported properties |
| 140 | std::set<core::Property> properties; |
| 141 | properties.insert(Method); |
| 142 | properties.insert(URL); |
| 143 | properties.insert(ConnectTimeout); |
| 144 | properties.insert(ReadTimeout); |
| 145 | properties.insert(DateHeader); |
| 146 | properties.insert(AttributesToSend); |
| 147 | properties.insert(SSLContext); |
| 148 | properties.insert(ProxyHost); |
| 149 | properties.insert(ProxyPort); |
| 150 | properties.insert(ProxyUsername); |
| 151 | properties.insert(ProxyPassword); |
| 152 | properties.insert(UseChunkedEncoding); |
| 153 | properties.insert(ContentType); |
| 154 | properties.insert(SendBody); |
| 155 | properties.insert(DisablePeerVerification); |
| 156 | properties.insert(AlwaysOutputResponse); |
| 157 | |
| 158 | setSupportedProperties(properties); |
| 159 | // Set the supported relationships |
| 160 | setSupportedRelationships({Success, RelResponse, RelFailure, RelRetry, RelNoRetry}); |
| 161 | } |
| 162 | |
| 163 | bool getTimeMSFromString(const std::string& propertyName, uint64_t& valInt) { |
| 164 | core::TimeUnit unit; |