How to Access the Request Path in Spring Integration InboundChannelAdapter

  Kiến thức lập trình

I have a Spring Integration DSL Flow and I’m trying to access the HTTP request path. Possible paths look something like this

/import: imports everything
/import/case1: imports only part A
/import/case2: imports only part B
/import/case2/{filename}: imports only a single file from part B

My flow looks something like this

        return IntegrationFlow
                .from(Http.inboundChannelAdapter(IMPORT_BASE_PATH + "/**")
                        .requestMapping(mapping -> mapping.methods(POST)))

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT