Skip to content

Commit

Permalink
feat(file): add POST FILE and PUT FILE definitions (#53)
Browse files Browse the repository at this point in the history
Use specific definitions to handle send file using a PUT or a POST http
request.
  • Loading branch information
rbioteau authored Nov 26, 2021
1 parent 3382036 commit c850fe5
Show file tree
Hide file tree
Showing 24 changed files with 1,439 additions and 451 deletions.
18 changes: 16 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,31 @@

<!--Post Connector -->
<post.def.id>rest-post</post.def.id>
<post.def.version>1.3.1</post.def.version>
<post.def.version>1.3.0</post.def.version>
<post.impl.id>${post.def.id}-impl</post.impl.id>
<post.impl.version>${project.version}</post.impl.version>
<post.main-class>org.bonitasoft.connectors.rest.PostConnectorImpl</post.main-class>

<!--File Post Connector -->
<file-post.def.id>rest-file-post</file-post.def.id>
<file-post.def.version>1.0.0</file-post.def.version>
<file-post.impl.id>${file-post.def.id}-impl</file-post.impl.id>
<file-post.impl.version>${project.version}</file-post.impl.version>
<file-post.main-class>org.bonitasoft.connectors.rest.PostConnectorImpl</file-post.main-class>

<!--Put Connector -->
<put.def.id>rest-put</put.def.id>
<put.def.version>1.3.1</put.def.version>
<put.def.version>1.3.0</put.def.version>
<put.impl.id>${put.def.id}-impl</put.impl.id>
<put.impl.version>${project.version}</put.impl.version>
<put.main-class>org.bonitasoft.connectors.rest.PutConnectorImpl</put.main-class>

<!--File Put Connector -->
<file-put.def.id>rest-file-put</file-put.def.id>
<file-put.def.version>1.0.0</file-put.def.version>
<file-put.impl.id>${file-put.def.id}-impl</file-put.impl.id>
<file-put.impl.version>${project.version}</file-put.impl.version>
<file-put.main-class>org.bonitasoft.connectors.rest.PutConnectorImpl</file-put.main-class>

<!--Delete Connector -->
<delete.def.id>rest-delete</delete.def.id>
Expand Down
41 changes: 41 additions & 0 deletions src/assembly/file-post-assembly.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>file-post-impl</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<outputDirectory/>
<directory>target/classes</directory>
<includes>
<include>rest-file-post.impl</include>
<include>classpath</include>
</includes>
</fileSet>
<fileSet>
<outputDirectory>classpath</outputDirectory>
<directory>${basedir}/target</directory>
<includes>
<include>*-sources.jar</include>
</includes>
</fileSet>
<fileSet>
<outputDirectory>classpath</outputDirectory>
<directory>${basedir}/target</directory>
<includes>
<include>*:jar</include>
</includes>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<unpack>false</unpack>
<scope>runtime</scope>
<outputDirectory>classpath</outputDirectory>
</dependencySet>
</dependencySets>
</assembly>
41 changes: 41 additions & 0 deletions src/assembly/file-put-assembly.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
<id>file-put-impl</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<outputDirectory/>
<directory>target/classes</directory>
<includes>
<include>rest-file-put.impl</include>
<include>classpath</include>
</includes>
</fileSet>
<fileSet>
<outputDirectory>classpath</outputDirectory>
<directory>${basedir}/target</directory>
<includes>
<include>*-sources.jar</include>
</includes>
</fileSet>
<fileSet>
<outputDirectory>classpath</outputDirectory>
<directory>${basedir}/target</directory>
<includes>
<include>*:jar</include>
</includes>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<unpack>false</unpack>
<scope>runtime</scope>
<outputDirectory>classpath</outputDirectory>
</dependencySet>
</dependencySets>
</assembly>
Loading

0 comments on commit c850fe5

Please sign in to comment.