Skip to content

Commit

Permalink
Added support for websockets
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Javier Estrella Liébana <estrella@ujaen.es>
  • Loading branch information
javiEstrella committed Feb 7, 2018
1 parent 0d90b73 commit b80e178
Show file tree
Hide file tree
Showing 12 changed files with 810 additions and 0 deletions.
4 changes: 4 additions & 0 deletions iot.challenge.jura.graba/META-INF/MANIFEST.MF
Expand Up @@ -15,3 +15,7 @@ Import-Package: com.eclipsesource.json;version="0.9.4",
org.osgi.service.component;version="1.2.2"
Service-Component: OSGI-INF/*.xml
Bundle-ActivationPolicy: lazy
Export-Package: iot.challenge.jura.graba,
iot.challenge.jura.graba.aggregator,
iot.challenge.jura.graba.player,
iot.challenge.jura.graba.recorder
11 changes: 11 additions & 0 deletions iot.challenge.jura.websocket/.classpath
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src/"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
3 changes: 3 additions & 0 deletions iot.challenge.jura.websocket/.gitignore
@@ -0,0 +1,3 @@
/bin/
/target/
/src/
34 changes: 34 additions & 0 deletions iot.challenge.jura.websocket/.project
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>iot.challenge.jura.websocket</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
@@ -0,0 +1,8 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.8
@@ -0,0 +1,4 @@
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
@@ -0,0 +1,4 @@
eclipse.preferences.version=1
pluginProject.equinox=false
pluginProject.extensions=false
resolve.requirebundle=false
41 changes: 41 additions & 0 deletions iot.challenge.jura.websocket/META-INF/MANIFEST.MF
@@ -0,0 +1,41 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Websocket
Bundle-SymbolicName: iot.challenge.jura.websocket
Bundle-Version: 1.0.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Import-Package: javax.servlet;version="3.1.0",
javax.servlet.http;version="3.1.0",
org.eclipse.jetty.http;version="9.4.7",
org.eclipse.jetty.http.pathmap;version="9.4.7",
org.eclipse.jetty.io;version="9.4.7",
org.eclipse.jetty.server;version="9.4.7",
org.eclipse.jetty.server.handler;version="9.4.7",
org.eclipse.jetty.servlet;version="9.4.7",
org.eclipse.jetty.util;version="9.4.7",
org.eclipse.jetty.util.annotation;version="9.4.7",
org.eclipse.jetty.util.component;version="9.4.7",
org.eclipse.jetty.util.log;version="9.4.7",
org.eclipse.jetty.util.ssl;version="9.4.7",
org.eclipse.jetty.util.thread;version="9.4.7"
Export-Package: org.eclipse.jetty.websocket.api,
org.eclipse.jetty.websocket.api.annotations,
org.eclipse.jetty.websocket.api.extensions,
org.eclipse.jetty.websocket.api.util,
org.eclipse.jetty.websocket.common,
org.eclipse.jetty.websocket.common.events,
org.eclipse.jetty.websocket.common.events.annotated,
org.eclipse.jetty.websocket.common.extensions,
org.eclipse.jetty.websocket.common.extensions.compress,
org.eclipse.jetty.websocket.common.extensions.fragment,
org.eclipse.jetty.websocket.common.extensions.identity,
org.eclipse.jetty.websocket.common.frames,
org.eclipse.jetty.websocket.common.io,
org.eclipse.jetty.websocket.common.io.http,
org.eclipse.jetty.websocket.common.io.payload,
org.eclipse.jetty.websocket.common.message,
org.eclipse.jetty.websocket.common.scopes,
org.eclipse.jetty.websocket.common.util,
org.eclipse.jetty.websocket.server,
org.eclipse.jetty.websocket.server.pathmap,
org.eclipse.jetty.websocket.servlet
4 changes: 4 additions & 0 deletions iot.challenge.jura.websocket/build.properties
@@ -0,0 +1,4 @@
source.. = src/
output.. = target/classes/
bin.includes = META-INF/,\
.
108 changes: 108 additions & 0 deletions iot.challenge.jura.websocket/pom.xml
@@ -0,0 +1,108 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>iot.challenge.jura</groupId>
<artifactId>jura</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>

<artifactId>iot.challenge.jura.websocket</artifactId>
<packaging>eclipse-plugin</packaging>

<properties>
<kura.basedir>${project.basedir}/../../kura/kura</kura.basedir>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<filesets>
<fileset>
<directory>src</directory>
<includes>
<include>**/*</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>org.eclipse.jetty.websocket</groupId>
<artifactId>websocket-api</artifactId>
<version>9.4.7.v20170914</version>
<classifier>sources</classifier>
</artifactItem>
<artifactItem>
<groupId>org.eclipse.jetty.websocket</groupId>
<artifactId>websocket-common</artifactId>
<version>9.4.7.v20170914</version>
<classifier>sources</classifier>
</artifactItem>
<artifactItem>
<groupId>org.eclipse.jetty.websocket</groupId>
<artifactId>websocket-server</artifactId>
<version>9.4.7.v20170914</version>
<classifier>sources</classifier>
</artifactItem>
<artifactItem>
<groupId>org.eclipse.jetty.websocket</groupId>
<artifactId>websocket-servlet</artifactId>
<version>9.4.7.v20170914</version>
<classifier>sources</classifier>
</artifactItem>
</artifactItems>
<stripVersion>true</stripVersion>
<outputDirectory>src</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.2</version>
<executions>
<execution>
<id>copy-resources</id>
<phase>process-sources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>src</outputDirectory>
<resources>
<resource>
<directory>resources/patches</directory>
<filtering>true</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>

</plugins>
</build>

</project>

0 comments on commit b80e178

Please sign in to comment.