246.4. 생산자 끝점
생산자 엔드포인트는 다음에 나열된 끝점 이름과 옵션을 사용할 수 있습니다. 생산자 엔드포인트는 Camel Exchange In 메시지에 포함된 엔드포인트 옵션의 이름을 포함해야 하는 특수 옵션 inBody
를 사용할 수도 있습니다. inBody 옵션은 기본적으로 해당 옵션을 사용하는 끝점의 데이터 로 설정됩니다.
끝점 URI에서 또는 메시지 헤더에서 동적으로 끝점 옵션을 제공할 수 있습니다. 메시지 헤더 이름은 CamelOlingo4.<option> 형식이어야 합니다
. inBody
옵션은 메시지 헤더를 덮어씁니다. 즉 inBody=option
의 엔드포인트 옵션은 CamelOlingo4.option
헤더를 재정의합니다. 또한 쿼리 매개 변수를 지정할 수 있습니다.In addition, query parameters can be specified.
resourcePath 옵션은 URI 경로의 일부로 URI 경로에 지정된 in에 있는 ?resourcePath=<resource-path> 또는 헤더 값 CamelOlingo4.resourcePath로 지정할 수 있습니다. OData 엔터티 키 서술자는 리소스 경로의 일부일 수 있습니다(예: manufacturers ( ' 1' ), 여기서 '__1' 은 핵심 서술자이거나 리소스 경로 manufacturers 및 keyPredicate 옵션 '1'로 별도로 지정됩니다.
끝점 | 옵션 | HTTP 메서드 | 결과 본문 유형 |
---|---|---|---|
batch | data, endpointHttpHeaders | multipart/mixed 일괄 요청이 있는 POST | java.util.List<org.apache.camel.component.olingo4.api.batch.Olingo4BatchResponse> |
create | data, resourcePath, endpointHttpHeaders | POST | org.apache.olingo.client.api.domain.ClientEntity - 다른 OData 리소스의 경우 org.apache.olingo.commons.api.http.HttpStatusCode |
delete | resourcePath, endpointHttpHeaders | DELETE | org.apache.olingo.commons.api.http.HttpStatusCode |
merge | data, resourcePath, endpointHttpHeaders | MERGE | org.apache.olingo.commons.api.http.HttpStatusCode |
patch | data, resourcePath, endpointHttpHeaders | PATCH | org.apache.olingo.commons.api.http.HttpStatusCode |
read | queryParams, resourcePath, endpointHttpHeaders | GET | 다음에 설명되는 OData 리소스에 따라 쿼리됩니다.Depends on OData resource being queried as described next. |
update | data, resourcePath, endpointHttpHeaders | PUT | org.apache.olingo.commons.api.http.HttpStatusCode |