protected GenericApiGatewayRequest configureRequest(final ProcessContext context, final ProcessSession session, final String resourcePath, final FlowFile requestFlowFile) { String method = trimToEmpty( context.getProperty(PROP_METHOD).evaluateAttributeExpressions(requestFlowFile) .getValue()).toUpperCase(); HttpMethodName methodName = HttpMethodName.fromValue(method); return configureRequest(context, session, resourcePath,requestFlowFile, methodName); }
&& validationContext.isExpressionLanguagePresent(method))) { try { HttpMethodName methodName = HttpMethodName.fromValue(method); } catch (IllegalArgumentException e) { results.add(new ValidationResult.Builder().subject(PROP_METHOD.getName()).input(method)
@Override public HttpMethodName getHttpMethod() { return HttpMethodName.fromValue(urlConnection.getRequestMethod()); }
protected GenericApiGatewayRequest configureRequest(final ProcessContext context, final ProcessSession session, final String resourcePath, final FlowFile requestFlowFile) { String method = trimToEmpty( context.getProperty(PROP_METHOD).evaluateAttributeExpressions(requestFlowFile) .getValue()).toUpperCase(); HttpMethodName methodName = HttpMethodName.fromValue(method); return configureRequest(context, session, resourcePath,requestFlowFile, methodName); }
public SimpleSignableRequest(final HttpClient httpClient) { super("kinesisvideo"); try { setHttpMethod(HttpMethodName.fromValue(httpClient.getMethod().name())); setEndpoint(new URI(httpClient.getUri().getScheme() + "://" + httpClient.getUri().getHost())); setResourcePath(httpClient.getUri().getPath()); setHeaders(httpClient.getHeaders()); setContent(httpClient.getContent()); } catch (final Throwable e) { throw new RuntimeException("Exception while creating signable request ! ", e); } } }
&& validationContext.isExpressionLanguagePresent(method))) { try { HttpMethodName methodName = HttpMethodName.fromValue(method); } catch (IllegalArgumentException e) { results.add(new ValidationResult.Builder().subject(PROP_METHOD.getName()).input(method)
awsRequest.setHttpMethod(HttpMethodName.fromValue(httpMethodName)); awsRequest.setEndpoint(httpEndpointUri); awsRequest.setResourcePath(resourcePath);