-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First drop, not working, work in progress
- Loading branch information
Showing
16 changed files
with
1,531 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
*.class | ||
*~ | ||
.*.swp | ||
.*.swo | ||
.loadpath | ||
.buildpath | ||
.project | ||
.settings | ||
.classpath | ||
.metadata | ||
.idea | ||
*.iml | ||
*.ipr | ||
*.iws | ||
nbproject | ||
.DS_Store | ||
target | ||
test-output | ||
nbactions.xml | ||
samples/gwt-demo/src/main/webapp/WEB-INF/classes/ | ||
samples/gwt-chat/src/main/webapp/WEB-INF/classes/ | ||
samples/gwt-conn-share/src/main/webapp/WEB-INF/classes/ | ||
atlassian-ide-plugin.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,281 @@ | ||
<?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"> | ||
<parent> | ||
<groupId>org.sonatype.oss</groupId> | ||
<artifactId>oss-parent</artifactId> | ||
<version>5</version> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>org.atmosphere</groupId> | ||
<artifactId>atmosphere-client</artifactId> | ||
<name>atmosphere-client</name> | ||
<version>1.0.0-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
<description> | ||
Atmosphere Client Library | ||
</description> | ||
<url>http://github.com/Atmosphere/atmosphere</url> | ||
<scm> | ||
<connection>scm:git:[email protected]:Atmosphere/atmosphere-client.git</connection> | ||
<developerConnection>scm:git:[email protected]:Atmosphere/atmosphere-client.git</developerConnection> | ||
<url>http://github.com/Atmosphere/atmosphere-client</url> | ||
</scm> | ||
<prerequisites> | ||
<maven>2.2.0</maven> | ||
</prerequisites> | ||
<developers> | ||
<developer> | ||
<id>jfarcand</id> | ||
<name>Jeanfrancois Arcand</name> | ||
<email>[email protected]</email> | ||
</developer> | ||
</developers> | ||
<licenses> | ||
<license> | ||
<name>Apache License 2.0</name> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
</licenses> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.ning</groupId> | ||
<artifactId>async-http-client</artifactId> | ||
<version>1.7.6</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.atmosphere</groupId> | ||
<artifactId>atmosphere-runtime</artifactId> | ||
<version>1.0.3</version> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<sourceDirectory>src/main/java</sourceDirectory> | ||
<testSourceDirectory>src/test/java</testSourceDirectory> | ||
<extensions> | ||
<!-- Enabling the use of SSH --> | ||
<extension> | ||
<groupId>org.apache.maven.wagon</groupId> | ||
<artifactId>wagon-ssh-external</artifactId> | ||
<version>1.0-beta-6</version> | ||
</extension> | ||
</extensions> | ||
<defaultGoal>install</defaultGoal> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<version>2.8.1</version> | ||
<configuration> | ||
<aggregate>true</aggregate> | ||
<source>1.6</source> | ||
<encoding>UTF-8</encoding> | ||
<maxmemory>1g</maxmemory> | ||
<links> | ||
<link>http://java.sun.com/javase/6/docs/api/</link> | ||
</links> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>attach-javadocs</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>jar</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>2.3.2</version> | ||
<configuration> | ||
<source>${source.property}</source> | ||
<target>${target.property}</target> | ||
<maxmem>1024m</maxmem> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-shade-plugin</artifactId> | ||
<version>1.2.1</version> | ||
<executions> | ||
<execution> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>shade</goal> | ||
</goals> | ||
<configuration> | ||
<shadedArtifactAttached>true</shadedArtifactAttached> | ||
<shadedClassifierName>all</shadedClassifierName> | ||
<artifactSet> | ||
<excludes> | ||
<exclude>commons-codec:commons-codec</exclude> | ||
<exclude>commons-lang:commons-lang</exclude> | ||
<exclude>commons-logging:commons-logging</exclude> | ||
<exclude>junit:junit</exclude> | ||
<exclude>log4j:log4j</exclude> | ||
<exclude>commons-httpclient:commons-httpclient</exclude> | ||
<exclude>org.scala-lang:scala-library</exclude> | ||
<exclude>org.scala-lang:scala-compiler</exclude> | ||
</excludes> | ||
</artifactSet> | ||
<transformers> | ||
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> | ||
<transformer implementation="org.apache.maven.plugins.shade.resource.ComponentsXmlResourceTransformer" /> | ||
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" /> | ||
</transformers> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.felix</groupId> | ||
<artifactId>maven-bundle-plugin</artifactId> | ||
<version>2.3.4</version> | ||
<extensions>true</extensions> | ||
<configuration> | ||
<manifestLocation>META-INF</manifestLocation> | ||
<instructions> | ||
<Bundle-Version>$(replace;$(project.version);-SNAPSHOT;.$(tstamp;yyyyMMdd-HHmm)) | ||
</Bundle-Version> | ||
<Bundle-Vendor>jfarcand</Bundle-Vendor> | ||
<Import-Package> | ||
* | ||
</Import-Package> | ||
<Export-Package> | ||
org.jfarcand.*;version="$(replace;$(project.version);-SNAPSHOT;"")" | ||
</Export-Package> | ||
</instructions> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>osgi-bundle</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>bundle</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-resources-plugin</artifactId> | ||
<version>2.4.3</version> | ||
<configuration> | ||
<encoding>UTF-8</encoding> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-release-plugin</artifactId> | ||
<version>2.1</version> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-source-plugin</artifactId> | ||
<version>2.1.2</version> | ||
<executions> | ||
<execution> | ||
<id>attach-sources</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>jar-no-fork</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.scala-tools</groupId> | ||
<artifactId>maven-scala-plugin</artifactId> | ||
<version>2.15.2</version> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>compile</goal> | ||
<goal>testCompile</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<jvmArgs> | ||
<jvmArg>-Xmx384m</jvmArg> | ||
</jvmArgs> | ||
<args> | ||
<arg>-target:jvm-1.5</arg> | ||
<arg>-deprecation</arg> | ||
</args> | ||
<launchers> | ||
<launcher> | ||
<id>run-scalatest</id> | ||
<mainClass>org.scalatest.tools.Runner</mainClass> | ||
<args> | ||
<arg>-p</arg> | ||
<arg>${project.build.testOutputDirectory}</arg> | ||
</args> | ||
<jvmArgs> | ||
<jvmArg>-Xmx512m</jvmArg> | ||
</jvmArgs> | ||
</launcher> | ||
</launchers> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<reporting> | ||
<outputDirectory>target/site</outputDirectory> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.scala-tools</groupId> | ||
<artifactId>maven-scala-plugin</artifactId> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
<version>2.8.1</version> | ||
<configuration> | ||
<aggregate>true</aggregate> | ||
<source>1.6</source> | ||
<encoding>UTF-8</encoding> | ||
<maxmemory>1g</maxmemory> | ||
<links> | ||
<link>http://java.sun.com/javase/6/docs/api/</link> | ||
</links> | ||
<bootclasspath>${sun.boot.class.path}</bootclasspath> | ||
<doclet>com.google.doclava.Doclava</doclet> | ||
<useStandardDocletOptions>false</useStandardDocletOptions> | ||
<additionalJOption>-J-Xmx1024m</additionalJOption> | ||
<docletArtifact> | ||
<groupId>com.google.doclava</groupId> | ||
<artifactId>doclava</artifactId> | ||
<version>1.0.3</version> | ||
</docletArtifact> | ||
<additionalparam> | ||
-hdf project.name "${project.name} ${project.version}" | ||
-d ${project.reporting.outputDirectory}/apidocs | ||
</additionalparam> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</reporting> | ||
<distributionManagement> | ||
<repository> | ||
<id>sonatype-nexus-staging</id> | ||
<name>Sonatype Release</name> | ||
<url>http://oss.sonatype.org/service/local/staging/deploy/maven2</url> | ||
</repository> | ||
<snapshotRepository> | ||
<id>sonatype-nexus-snapshots</id> | ||
<name>sonatype-nexus-snapshots</name> | ||
<url>${distMgmtSnapshotsUrl}</url> | ||
</snapshotRepository> | ||
</distributionManagement> | ||
<properties> | ||
<distMgmtSnapshotsUrl>http://oss.sonatype.org/content/repositories/snapshots</distMgmtSnapshotsUrl> | ||
<surefire.redirectTestOutputToFile>true</surefire.redirectTestOutputToFile> | ||
<source.property>1.6</source.property> | ||
<target.property>1.6</target.property> | ||
</properties> | ||
</project> | ||
|
25 changes: 25 additions & 0 deletions
25
src/main/java/org/atmosphere/client/AtmosphereClientFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright 2012 Jeanfrancois Arcand | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
* use this file except in compliance with the License. You may obtain a copy of | ||
* the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations under | ||
* the License. | ||
*/ | ||
package org.atmosphere.client; | ||
|
||
public class AtmosphereClientFactory { | ||
|
||
private final AtmosphereClientFactory factory = new AtmosphereClientFactory(); | ||
|
||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright 2012 Jeanfrancois Arcand | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
* use this file except in compliance with the License. You may obtain a copy of | ||
* the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations under | ||
* the License. | ||
*/ | ||
package org.atmosphere.client; | ||
|
||
import java.io.IOException; | ||
|
||
public interface Client { | ||
|
||
Client open(Options options); | ||
|
||
Future fire(Request request) throws IOException; | ||
|
||
Client close(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright 2012 Jeanfrancois Arcand | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not | ||
* use this file except in compliance with the License. You may obtain a copy of | ||
* the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations under | ||
* the License. | ||
*/ | ||
package org.atmosphere.client; | ||
|
||
public interface Decoder<U, T> { | ||
|
||
T decode(U s); | ||
|
||
} |
Oops, something went wrong.