diff --git a/README.md b/README.md index 09708afb6..b24234ded 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,16 @@ There are 4 available container profiles: reuse this instance to run the tests. Useful for development to avoid the server start up cost per sample. +Each of the containers allow you to override the version used + +* `-Dorg.wildfly=8.1.0.Final` + + This will change the version from 8.0.0 to 8.1.0.Final for WildFly. + +* `-Dglassfish.version=4.1` + + This will change the version from 4.0 to 4.1 for GlassFish testing purposes. + Similarly, there are 6 profiles to choose a browser to test on: * ``browser-firefox`` @@ -99,5 +109,5 @@ That's it! Welcome in the community! ## CI Job ## -* [WildFly](https://arungupta.ci.cloudbees.com/job/javaee7-samples-on-wildfly-cb/) -* [GlassFish](https://arungupta.ci.cloudbees.com/job/Java%20EE%207%20Samples%20on%20GlassFish-cb/) +* [WildFly](https://javaee-support.ci.cloudbees.com/job/javaee7-pull-request-builder/) +* [GlassFish](https://javaee-support.ci.cloudbees.com/job/javaee7-pull-request-builder-glassfish/) diff --git a/batch/pom.xml b/batch/pom.xml index bee6ff9d2..d8442991f 100644 --- a/batch/pom.xml +++ b/batch/pom.xml @@ -31,4 +31,11 @@ chunk-simple-nobeans scheduling + + + org.javaee7 + test-utils + ${project.version} + + diff --git a/cdi/alternatives-priority/src/test/resources/arquillian.xml b/cdi/alternatives-priority/src/test/resources/arquillian.xml deleted file mode 100644 index 7ff92fbce..000000000 --- a/cdi/alternatives-priority/src/test/resources/arquillian.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/cdi/alternatives/src/test/resources/arquillian.xml b/cdi/alternatives/src/test/resources/arquillian.xml deleted file mode 100644 index de1737b5c..000000000 --- a/cdi/alternatives/src/test/resources/arquillian.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/cdi/bean-discovery-all/src/test/resources/arquillian.xml b/cdi/bean-discovery-all/src/test/resources/arquillian.xml deleted file mode 100644 index de1737b5c..000000000 --- a/cdi/bean-discovery-all/src/test/resources/arquillian.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/cdi/bean-discovery-annotated/src/test/resources/arquillian.xml b/cdi/bean-discovery-annotated/src/test/resources/arquillian.xml deleted file mode 100644 index de1737b5c..000000000 --- a/cdi/bean-discovery-annotated/src/test/resources/arquillian.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/cdi/bean-discovery-none/src/test/resources/arquillian.xml b/cdi/bean-discovery-none/src/test/resources/arquillian.xml deleted file mode 100644 index de1737b5c..000000000 --- a/cdi/bean-discovery-none/src/test/resources/arquillian.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/cdi/beansxml-noversion/src/test/resources/arquillian.xml b/cdi/beansxml-noversion/src/test/resources/arquillian.xml deleted file mode 100644 index de1737b5c..000000000 --- a/cdi/beansxml-noversion/src/test/resources/arquillian.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/cdi/events/src/test/resources/arquillian.xml b/cdi/events/src/test/resources/arquillian.xml deleted file mode 100644 index 3be0ed583..000000000 --- a/cdi/events/src/test/resources/arquillian.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/cdi/interceptors-priority/src/test/resources/arquillian.xml b/cdi/interceptors-priority/src/test/resources/arquillian.xml deleted file mode 100644 index 7ff92fbce..000000000 --- a/cdi/interceptors-priority/src/test/resources/arquillian.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/cdi/interceptors/src/test/resources/arquillian.xml b/cdi/interceptors/src/test/resources/arquillian.xml deleted file mode 100644 index 7ff92fbce..000000000 --- a/cdi/interceptors/src/test/resources/arquillian.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/cdi/nobeans-xml/src/test/resources/arquillian.xml b/cdi/nobeans-xml/src/test/resources/arquillian.xml deleted file mode 100644 index de1737b5c..000000000 --- a/cdi/nobeans-xml/src/test/resources/arquillian.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/cdi/pom.xml b/cdi/pom.xml index b6ee7feee..6246be0d6 100644 --- a/cdi/pom.xml +++ b/cdi/pom.xml @@ -36,4 +36,11 @@ nobeans-el-injection-flowscoped events + + + org.javaee7 + test-utils + ${project.version} + + diff --git a/concurrency/managedexecutor/src/test/resources/arquillian.xml b/concurrency/managedexecutor/src/test/resources/arquillian.xml deleted file mode 100644 index de1737b5c..000000000 --- a/concurrency/managedexecutor/src/test/resources/arquillian.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/concurrency/pom.xml b/concurrency/pom.xml index 002160a70..10a9802cd 100644 --- a/concurrency/pom.xml +++ b/concurrency/pom.xml @@ -21,5 +21,11 @@ managedthreadfactory dynamicproxy - + + + org.javaee7 + test-utils + ${project.version} + + diff --git a/ejb/pom.xml b/ejb/pom.xml index 7e3756d29..7000ccbbf 100644 --- a/ejb/pom.xml +++ b/ejb/pom.xml @@ -23,4 +23,11 @@ timer async-ejb + + + org.javaee7 + test-utils + ${project.version} + + diff --git a/el/pom.xml b/el/pom.xml index 8ec44494e..4093f8eb9 100644 --- a/el/pom.xml +++ b/el/pom.xml @@ -17,4 +17,11 @@ standalone + + + org.javaee7 + test-utils + ${project.version} + + diff --git a/el/standalone/src/test/resources/arquillian.xml b/el/standalone/src/test/resources/arquillian.xml deleted file mode 100644 index de1737b5c..000000000 --- a/el/standalone/src/test/resources/arquillian.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/extra/nosql/hibernate-ogm/src/test/resources/arquillian.xml b/extra/nosql/hibernate-ogm/src/test/resources/arquillian.xml deleted file mode 100644 index de1737b5c..000000000 --- a/extra/nosql/hibernate-ogm/src/test/resources/arquillian.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/extra/pom.xml b/extra/pom.xml index 4f34511ca..32ba89c1b 100644 --- a/extra/pom.xml +++ b/extra/pom.xml @@ -21,4 +21,11 @@ --> nosql + + + org.javaee7 + test-utils + ${project.version} + + diff --git a/interceptor/around-construct/src/test/resources/arquillian.xml b/interceptor/around-construct/src/test/resources/arquillian.xml deleted file mode 100644 index 2650e410b..000000000 --- a/interceptor/around-construct/src/test/resources/arquillian.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/interceptor/pom.xml b/interceptor/pom.xml index 10baeedf2..9cbc7e15d 100644 --- a/interceptor/pom.xml +++ b/interceptor/pom.xml @@ -17,4 +17,11 @@ around-construct + + + org.javaee7 + test-utils + ${project.version} + + diff --git a/jacc/pom.xml b/jacc/pom.xml index eb78e053a..3794211f6 100644 --- a/jacc/pom.xml +++ b/jacc/pom.xml @@ -19,5 +19,11 @@ contexts - + + + org.javaee7 + test-utils + ${project.version} + + diff --git a/jaspic/pom.xml b/jaspic/pom.xml index f57a325eb..b11bc3ea3 100644 --- a/jaspic/pom.xml +++ b/jaspic/pom.xml @@ -42,5 +42,11 @@ this indeed happens. --> wrapping - + + + org.javaee7 + test-utils + ${project.version} + + diff --git a/javamail/pom.xml b/javamail/pom.xml index 42b4750fb..ff3eb4544 100644 --- a/javamail/pom.xml +++ b/javamail/pom.xml @@ -17,5 +17,11 @@ definition - + + + org.javaee7 + test-utils + ${project.version} + + diff --git a/jaxrs/angularjs/src/test/resources/arquillian.xml b/jaxrs/angularjs/src/test/resources/arquillian.xml deleted file mode 100644 index 50b792441..000000000 --- a/jaxrs/angularjs/src/test/resources/arquillian.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - ALTER SEQUENCE hibernate_sequence RESTART WITH 1000; - - - - phantomjs - - - diff --git a/jaxrs/jaxrs-endpoint/src/test/resources/arquillian.xml b/jaxrs/jaxrs-endpoint/src/test/resources/arquillian.xml deleted file mode 100644 index de1737b5c..000000000 --- a/jaxrs/jaxrs-endpoint/src/test/resources/arquillian.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/jaxrs/pom.xml b/jaxrs/pom.xml index 0651f3411..e84869882 100644 --- a/jaxrs/pom.xml +++ b/jaxrs/pom.xml @@ -46,4 +46,11 @@ jaxrs-security-declarative db-access + + + org.javaee7 + test-utils + ${project.version} + + diff --git a/jaxws/pom.xml b/jaxws/pom.xml index 8adfb0553..a07067356 100644 --- a/jaxws/pom.xml +++ b/jaxws/pom.xml @@ -18,4 +18,11 @@ jaxws-endpoint jaxws-client + + + org.javaee7 + test-utils + ${project.version} + + diff --git a/jca/pom.xml b/jca/pom.xml index 31c1fd6f5..6be5bc47c 100644 --- a/jca/pom.xml +++ b/jca/pom.xml @@ -17,4 +17,11 @@ connector-simple + + + org.javaee7 + test-utils + ${project.version} + + diff --git a/jms/jms-batch/src/test/resources/arquillian.xml b/jms/jms-batch/src/test/resources/arquillian.xml deleted file mode 100644 index de1737b5c..000000000 --- a/jms/jms-batch/src/test/resources/arquillian.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/jms/pom.xml b/jms/pom.xml index d7a055809..fe7bce5be 100644 --- a/jms/pom.xml +++ b/jms/pom.xml @@ -21,5 +21,11 @@ temp-destination jms-batch - + + + org.javaee7 + test-utils + ${project.version} + + diff --git a/jms/send-receive/src/test/resources/arquillian.xml b/jms/send-receive/src/test/resources/arquillian.xml deleted file mode 100644 index de1737b5c..000000000 --- a/jms/send-receive/src/test/resources/arquillian.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/jms/temp-destination/src/test/resources/arquillian.xml b/jms/temp-destination/src/test/resources/arquillian.xml deleted file mode 100644 index 76ede8688..000000000 --- a/jms/temp-destination/src/test/resources/arquillian.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - -Xrunjdwp:transport=dt_socket,address=55407,server=y,suspend=y -Xmx512m -XX:MaxPermSize=128m - - - - diff --git a/jpa/datasourcedefinition/src/test/resources/arquillian.xml b/jpa/datasourcedefinition/src/test/resources/arquillian.xml deleted file mode 100644 index de1737b5c..000000000 --- a/jpa/datasourcedefinition/src/test/resources/arquillian.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/jpa/jpa-converter/src/test/resources-glassfish-embedded/arquillian.xml b/jpa/jpa-converter/src/test/resources-glassfish-embedded/arquillian.xml deleted file mode 100644 index cd534e61c..000000000 --- a/jpa/jpa-converter/src/test/resources-glassfish-embedded/arquillian.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - target/deployment - - - - - src/test/resources-glassfish-embedded/glassfish-resources.xml - 9999 - - - - - true - - - - NEW_LINE - reset-sequence.sql - - - - SEQUENCE - SEQUENCE - - - diff --git a/jpa/jpa-converter/src/test/resources-glassfish-remote/arquillian.xml b/jpa/jpa-converter/src/test/resources-glassfish-remote/arquillian.xml deleted file mode 100644 index cf747bf6f..000000000 --- a/jpa/jpa-converter/src/test/resources-glassfish-remote/arquillian.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - target/deployment - - - - true - - - - NEW_LINE - reset-sequence.sql - - - - SEQUENCE - SEQUENCE - - - diff --git a/jpa/jpa-converter/src/test/resources-jbosseap-remote/arquillian.xml b/jpa/jpa-converter/src/test/resources-jbosseap-remote/arquillian.xml deleted file mode 100644 index eb05674d8..000000000 --- a/jpa/jpa-converter/src/test/resources-jbosseap-remote/arquillian.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - java:jboss/UserTransaction - - - - SET REFERENTIAL_INTEGRITY FALSE; - SET REFERENTIAL_INTEGRITY FALSE; - NEW_LINE - - - - org.dbunit.ext.h2.H2DataTypeFactory - - - diff --git a/jpa/jpa-converter/src/test/resources-wildfly-managed/arquillian.xml b/jpa/jpa-converter/src/test/resources-wildfly-managed/arquillian.xml deleted file mode 100644 index ae16ba4f8..000000000 --- a/jpa/jpa-converter/src/test/resources-wildfly-managed/arquillian.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - java:jboss/UserTransaction - - - - SET REFERENTIAL_INTEGRITY FALSE; - SET REFERENTIAL_INTEGRITY FALSE; - NEW_LINE - - - - org.dbunit.ext.h2.H2DataTypeFactory - - - diff --git a/jpa/jpa-converter/src/test/resources-wildfly-remote/arquillian.xml b/jpa/jpa-converter/src/test/resources-wildfly-remote/arquillian.xml deleted file mode 100644 index ae16ba4f8..000000000 --- a/jpa/jpa-converter/src/test/resources-wildfly-remote/arquillian.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - java:jboss/UserTransaction - - - - SET REFERENTIAL_INTEGRITY FALSE; - SET REFERENTIAL_INTEGRITY FALSE; - NEW_LINE - - - - org.dbunit.ext.h2.H2DataTypeFactory - - - diff --git a/jpa/pom.xml b/jpa/pom.xml index b5f48b112..e42fa65d9 100644 --- a/jpa/pom.xml +++ b/jpa/pom.xml @@ -42,5 +42,11 @@ jpa-converter default-datasource - + + + org.javaee7 + test-utils + ${project.version} + + diff --git a/jsf/pom.xml b/jsf/pom.xml index 3b9e810a8..ebef2e9a1 100644 --- a/jsf/pom.xml +++ b/jsf/pom.xml @@ -44,6 +44,11 @@ pom test + + org.javaee7 + test-utils + ${project.version} + diff --git a/jsf/simple-facelet/src/test/resources/arquillian.xml b/jsf/simple-facelet/src/test/resources/arquillian.xml deleted file mode 100644 index 933a31063..000000000 --- a/jsf/simple-facelet/src/test/resources/arquillian.xml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - target/ - - - - ${browser} - - - diff --git a/json/object-builder/src/test/resources/arquillian.xml b/json/object-builder/src/test/resources/arquillian.xml deleted file mode 100644 index de1737b5c..000000000 --- a/json/object-builder/src/test/resources/arquillian.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/json/pom.xml b/json/pom.xml index f26dceda3..3b89b8463 100644 --- a/json/pom.xml +++ b/json/pom.xml @@ -20,5 +20,11 @@ streaming-generate streaming-parser - + + + org.javaee7 + test-utils + ${project.version} + + diff --git a/jta/pom.xml b/jta/pom.xml index 710f01ecd..828008f30 100644 --- a/jta/pom.xml +++ b/jta/pom.xml @@ -19,4 +19,11 @@ tx-exception user-transaction + + + org.javaee7 + test-utils + ${project.version} + + diff --git a/jta/transactional/src/test/resources/arquillian.xml b/jta/transactional/src/test/resources/arquillian.xml deleted file mode 100644 index de1737b5c..000000000 --- a/jta/transactional/src/test/resources/arquillian.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/jta/tx-exception/src/test/resources/arquillian.xml b/jta/tx-exception/src/test/resources/arquillian.xml deleted file mode 100644 index de1737b5c..000000000 --- a/jta/tx-exception/src/test/resources/arquillian.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/jta/user-transaction/src/test/resources/arquillian.xml b/jta/user-transaction/src/test/resources/arquillian.xml deleted file mode 100644 index de1737b5c..000000000 --- a/jta/user-transaction/src/test/resources/arquillian.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - ${serverRoot:target/wildfly-8.0.0.Final} - ${serverProfile:standalone-full.xml} - - - - diff --git a/pom.xml b/pom.xml index fe66b4d10..ca0af4a7b 100644 --- a/pom.xml +++ b/pom.xml @@ -25,6 +25,7 @@ 1.3 0.7-groovy-2.0 2.1.5 + 4.0 @@ -32,6 +33,7 @@ + test-utils batch cdi concurrency @@ -665,7 +667,7 @@ org.glassfish.main.extras glassfish-embedded-all - 4.0 + ${glassfish.version} test diff --git a/servlet/pom.xml b/servlet/pom.xml index b45ab6979..b2115481b 100644 --- a/servlet/pom.xml +++ b/servlet/pom.xml @@ -35,4 +35,11 @@ security-basicauth-omission programmatic-registration + + + org.javaee7 + test-utils + ${project.version} + + diff --git a/test-utils/pom.xml b/test-utils/pom.xml new file mode 100644 index 000000000..37dc36c09 --- /dev/null +++ b/test-utils/pom.xml @@ -0,0 +1,16 @@ + + + + + javaee7-samples + org.javaee7 + 1.0-SNAPSHOT + + 4.0.0 + + test-utils + + + \ No newline at end of file diff --git a/jms/jms-xa/src/test/resources/arquillian.xml b/test-utils/src/main/resources/arquillian.xml similarity index 80% rename from jms/jms-xa/src/test/resources/arquillian.xml rename to test-utils/src/main/resources/arquillian.xml index 1a72e7a1f..caecf3bab 100644 --- a/jms/jms-xa/src/test/resources/arquillian.xml +++ b/test-utils/src/main/resources/arquillian.xml @@ -1,12 +1,13 @@ + - - target/deployment - + + + diff --git a/validation/pom.xml b/validation/pom.xml index b60a89801..daf300064 100644 --- a/validation/pom.xml +++ b/validation/pom.xml @@ -19,5 +19,12 @@ methods custom-constraint + + + org.javaee7 + test-utils + ${project.version} + + diff --git a/websocket/atmosphere-chat/overlays/org.atmosphere.client.javascript-2.0.7.info b/websocket/atmosphere-chat/overlays/org.atmosphere.client.javascript-2.0.7.info new file mode 100644 index 000000000..8302559f6 --- /dev/null +++ b/websocket/atmosphere-chat/overlays/org.atmosphere.client.javascript-2.0.7.info @@ -0,0 +1,3 @@ +1412104997000 +(?:[^/]+/)*?[^/]*? +META-INF(?:$|/.+) \ No newline at end of file diff --git a/websocket/atmosphere-chat/overlays/org.atmosphere.client.javascript-2.0.7/WEB-INF/web.xml b/websocket/atmosphere-chat/overlays/org.atmosphere.client.javascript-2.0.7/WEB-INF/web.xml new file mode 100644 index 000000000..c8f1294b9 --- /dev/null +++ b/websocket/atmosphere-chat/overlays/org.atmosphere.client.javascript-2.0.7/WEB-INF/web.xml @@ -0,0 +1 @@ +DUMMY web.xml diff --git a/websocket/atmosphere-chat/overlays/org.atmosphere.client.javascript-2.0.7/javascript/atmosphere-min.js b/websocket/atmosphere-chat/overlays/org.atmosphere.client.javascript-2.0.7/javascript/atmosphere-min.js new file mode 100644 index 000000000..4d175fc7c --- /dev/null +++ b/websocket/atmosphere-chat/overlays/org.atmosphere.client.javascript-2.0.7/javascript/atmosphere-min.js @@ -0,0 +1,1012 @@ +(function(){var c="2.0.7-javascript",a={},d,g=[],f=[],e=0,b=Object.prototype.hasOwnProperty; +a={onError:function(h){},onClose:function(h){},onOpen:function(h){},onReopen:function(h){},onMessage:function(h){},onReconnect:function(i,h){},onMessagePublished:function(h){},onTransportFailure:function(i,h){},onLocalMessage:function(h){},onFailureToReconnect:function(i,h){},onClientTimeout:function(h){},AtmosphereRequest:function(M){var O={timeout:300000,method:"GET",headers:{},contentType:"",callback:null,url:"",data:"",suspend:true,maxRequest:-1,reconnect:true,maxStreamingLength:10000000,lastIndex:0,logLevel:"info",requestCount:0,fallbackMethod:"GET",fallbackTransport:"streaming",transport:"long-polling",webSocketImpl:null,webSocketBinaryType:null,dispatchUrl:null,webSocketPathDelimiter:"@@",enableXDR:false,rewriteURL:false,attachHeadersAsQueryString:true,executeCallbackBeforeReconnect:false,readyState:0,lastTimestamp:0,withCredentials:false,trackMessageLength:false,messageDelimiter:"|",connectTimeout:-1,reconnectInterval:0,dropAtmosphereHeaders:true,uuid:0,async:true,shared:false,readResponsesHeaders:false,maxReconnectOnClose:5,enableProtocol:true,onError:function(aA){},onClose:function(aA){},onOpen:function(aA){},onMessage:function(aA){},onReopen:function(aB,aA){},onReconnect:function(aB,aA){},onMessagePublished:function(aA){},onTransportFailure:function(aB,aA){},onLocalMessage:function(aA){},onFailureToReconnect:function(aB,aA){},onClientTimeout:function(aA){}}; +var W={status:200,reasonPhrase:"OK",responseBody:"",messages:[],headers:[],state:"messageReceived",transport:"polling",error:null,request:null,partialMessage:"",errorHandled:false,closedByClientTimeout:false}; +var Z=null; +var o=null; +var v=null; +var E=null; +var G=null; +var ak=true; +var l=0; +var aw=false; +var aa=null; +var aq; +var q=null; +var J=a.util.now(); +var K; +var az; +ay(M); +function ar(){ak=true; +aw=false; +l=0; +Z=null; +o=null; +v=null; +E=null +}function A(){am(); +ar() +}function L(aB,aA){if(W.partialMessage===""&&(aA.transport==="streaming")&&(aB.responseText.length>aA.maxStreamingLength)){W.messages=[]; +ai(true); +D(); +am(); +R(aB,aA,0) +}}function D(){if(O.enableProtocol&&!O.firstMessage){var aC="X-Atmosphere-Transport=close&X-Atmosphere-tracking-id="+O.uuid; +a.util.each(O.headers,function(aE,aG){var aF=a.util.isFunction(aG)?aG.call(this,O,O,W):aG; +if(aF!=null){aC+="&"+encodeURIComponent(aE)+"="+encodeURIComponent(aF) +}}); +var aA=O.url.replace(/([?&])_=[^&]*/,aC); +aA=aA+(aA===O.url?(/\?/.test(O.url)?"&":"?")+aC:""); +var aB={connected:false,}; +var aD=new a.AtmosphereRequest(aB); +aD.attachHeadersAsQueryString=false; +aD.dropAtmosphereHeaders=true; +aD.url=aA; +aD.contentType="text/plain"; +aD.transport="polling"; +n("",aD) +}}function an(){if(O.reconnectId){clearTimeout(O.reconnectId) +}O.reconnect=false; +aw=true; +W.request=O; +W.state="unsubscribe"; +W.responseBody=""; +W.status=408; +W.partialMessage=""; +C(); +D(); +am() +}function am(){W.partialMessage=""; +if(O.id){clearTimeout(O.id) +}if(E!=null){E.close(); +E=null +}if(G!=null){G.abort(); +G=null +}if(v!=null){v.abort(); +v=null +}if(Z!=null){if(Z.webSocketOpened){Z.close() +}Z=null +}if(o!=null){o.close(); +o=null +}at() +}function at(){if(aq!=null){clearInterval(K); +document.cookie=az+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"; +aq.signal("close",{reason:"",heir:!aw?J:(aq.get("children")||[])[0]}); +aq.close() +}if(q!=null){q.close() +}}function ay(aA){A(); +O=a.util.extend(O,aA); +O.mrequest=O.reconnect; +if(!O.reconnect){O.reconnect=true +}}function p(){return O.webSocketImpl!=null||window.WebSocket||window.MozWebSocket +}function S(){return window.EventSource +}function t(){if(O.shared){q=ah(O); +if(q!=null){if(O.logLevel==="debug"){a.util.debug("Storage service available. All communication will be local") +}if(q.open(O)){return +}}if(O.logLevel==="debug"){a.util.debug("No Storage service available.") +}q=null +}O.firstMessage=e==0?true:false; +O.isOpen=false; +O.ctime=a.util.now(); +O.uuid=e; +W.closedByClientTimeout=false; +if(O.transport!=="websocket"&&O.transport!=="sse"){s(O) +}else{if(O.transport==="websocket"){if(!p()){Q("Websocket is not supported, using request.fallbackTransport ("+O.fallbackTransport+")") +}else{aj(false) +}}else{if(O.transport==="sse"){if(!S()){Q("Server Side Events(SSE) is not supported, using request.fallbackTransport ("+O.fallbackTransport+")") +}else{I(false) +}}}}}function ah(aE){var aF,aD,aI,aA="atmosphere-"+aE.url,aB={storage:function(){function aJ(aN){if(aN.key===aA&&aN.newValue){aC(aN.newValue) +}}if(!a.util.storage){return +}var aM=window.localStorage,aK=function(aN){return a.util.parseJSON(aM.getItem(aA+"-"+aN)) +},aL=function(aN,aO){aM.setItem(aA+"-"+aN,a.util.stringifyJSON(aO)) +}; +return{init:function(){aL("children",aK("children").concat([J])); +a.util.on(window,"storage",aJ); +return aK("opened") +},signal:function(aN,aO){aM.setItem(aA,a.util.stringifyJSON({target:"p",type:aN,data:aO})) +},close:function(){var aN=aK("children"); +a.util.off(window,"storage",aJ); +if(aN){if(aG(aN,aE.id)){aL("children",aN) +}}}} +},windowref:function(){var aJ=window.open("",aA.replace(/\W/g,"")); +if(!aJ||aJ.closed||!aJ.callbacks){return +}return{init:function(){aJ.callbacks.push(aC); +aJ.children.push(J); +return aJ.opened +},signal:function(aK,aL){if(!aJ.closed&&aJ.fire){aJ.fire(a.util.stringifyJSON({target:"p",type:aK,data:aL})) +}},close:function(){if(!aI){aG(aJ.callbacks,aC); +aG(aJ.children,J) +}}} +}}; +function aG(aM,aL){var aJ,aK=aM.length; +for(aJ=0; +aJ1000){return +}aD=aB.storage()||aB.windowref(); +if(!aD){return +}return{open:function(){var aJ; +K=setInterval(function(){var aK=aF; +aF=aH(); +if(!aF||aK.ts===aF.ts){aC(a.util.stringifyJSON({target:"c",type:"close",data:{reason:"error",heir:aK.heir}})) +}},1000); +aJ=aD.init(); +if(aJ){setTimeout(function(){N("opening","local",aE) +},50) +}return aJ +},send:function(aJ){aD.signal("send",aJ) +},localSend:function(aJ){aD.signal("localSend",a.util.stringifyJSON({id:J,event:aJ})) +},close:function(){if(!aw){clearInterval(K); +aD.signal("close"); +aD.close() +}}} +}function ad(){var aB,aA="atmosphere-"+O.url,aF={storage:function(){function aG(aI){if(aI.key===aA&&aI.newValue){aC(aI.newValue) +}}if(!a.util.storage){return +}var aH=window.localStorage; +return{init:function(){a.util.on(window,"storage",aG) +},signal:function(aI,aJ){aH.setItem(aA,a.util.stringifyJSON({target:"c",type:aI,data:aJ})) +},get:function(aI){return a.util.parseJSON(aH.getItem(aA+"-"+aI)) +},set:function(aI,aJ){aH.setItem(aA+"-"+aI,a.util.stringifyJSON(aJ)) +},close:function(){a.util.off(window,"storage",aG); +aH.removeItem(aA); +aH.removeItem(aA+"-opened"); +aH.removeItem(aA+"-children") +}} +},windowref:function(){var aH=aA.replace(/\W/g,""),aG=document.getElementById(aH),aI; +if(!aG){aG=document.createElement("div"); +aG.id=aH; +aG.style.display="none"; +aG.innerHTML='