Commit 8d2c40ab authored by Björn Butzin's avatar Björn Butzin
Browse files

- compiled jar now expects required libraries in the same folder and not in /dependencies

- ResourceType is now an interface and no an abstract class
parent f8c31c86
// Configure the scr plugin for gradle to generate the OSGi xml service description for // Configure the scr plugin for gradle to generate the OSGi xml service description for
group 'org.ws4d' group 'org.ws4d'
version '0.0.1-SNAPSHOT' version '1.1.0-SNAPSHOT'
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'osgi' apply plugin: 'osgi'
...@@ -14,7 +14,7 @@ repositories { ...@@ -14,7 +14,7 @@ repositories {
} }
dependencies { dependencies {
group: 'org.apache.logging.log4j:log4j-core:2.6.1' group: 'org.apache.logging.log4j:log4j-core:2.6.2'
testCompile 'junit:junit:4.12' testCompile 'junit:junit:4.12'
} }
......
...@@ -41,13 +41,11 @@ ...@@ -41,13 +41,11 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<version>2.4</version> <version>3.0.2</version>
<configuration> <configuration>
<archive> <archive>
<manifest> <manifest>
<addClasspath>true</addClasspath> <addClasspath>true</addClasspath>
<classpathPrefix>dependency</classpathPrefix>
<mainClass>com.test.entryClassOfJarHavingMainMethod</mainClass>
</manifest> </manifest>
</archive> </archive>
</configuration> </configuration>
...@@ -85,4 +83,9 @@ ...@@ -85,4 +83,9 @@
<url>http://www.ws4d.org/</url> <url>http://www.ws4d.org/</url>
<name>Web Services for Devices</name> <name>Web Services for Devices</name>
</organization> </organization>
<url>https://gitlab.amd.e-technik.uni-rostock.de/bjoern.konieczek/jcoap-draft18</url>
<issueManagement>
<url>https://gitlab.amd.e-technik.uni-rostock.de/bjoern.konieczek/jcoap-draft18/issues</url>
<system>GitLab</system>
</issueManagement>
</project> </project>
\ No newline at end of file
...@@ -5,18 +5,18 @@ import java.util.List; ...@@ -5,18 +5,18 @@ import java.util.List;
import org.ws4d.coap.core.enumerations.CoapMediaType; import org.ws4d.coap.core.enumerations.CoapMediaType;
import org.ws4d.coap.core.rest.CoapData; import org.ws4d.coap.core.rest.CoapData;
public abstract class ResourceHandler { public interface ResourceHandler {
public abstract CoapMediaType getMediaType(); public CoapMediaType getMediaType();
public abstract CoapData handleGet(); public CoapData handleGet();
public abstract CoapData handleGet(List<String> queryString); public CoapData handleGet(List<String> queryString);
public abstract boolean handlePost(byte[] data); public boolean handlePost(byte[] data);
public abstract boolean handlePut(byte[] data); public boolean handlePut(byte[] data);
public abstract boolean handleDelete(); public boolean handleDelete();
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment