├── .gitignore ├── .travis.yml ├── CONTRIBUTING.md ├── LICENSE ├── NOTICE ├── README.md ├── build.gradle ├── comsat-actors-api └── src │ └── main │ └── java │ └── co │ └── paralleluniverse │ └── comsat │ └── webactors │ ├── Cookie.java │ ├── HttpMessage.java │ ├── HttpRequest.java │ ├── HttpResponse.java │ ├── HttpStreamOpened.java │ ├── SSE.java │ ├── WebActor.java │ ├── WebDataMessage.java │ ├── WebMessage.java │ ├── WebSocketOpened.java │ ├── WebStreamOpened.java │ └── package-info.java ├── comsat-actors-netty └── src │ ├── main │ └── java │ │ └── co │ │ └── paralleluniverse │ │ └── comsat │ │ └── webactors │ │ └── netty │ │ ├── AutoWebActorHandler.java │ │ ├── NettyHttpRequest.java │ │ ├── WebActorHandler.java │ │ └── package-info.java │ └── test │ └── java │ └── co │ └── paralleluniverse │ └── comsat │ └── webactors │ └── netty │ ├── HttpRequestWrapperTest.java │ ├── NettyWebActor.java │ └── WebActorTest.java ├── comsat-actors-servlet ├── build.gradle └── src │ ├── main │ └── java │ │ └── co │ │ └── paralleluniverse │ │ └── comsat │ │ └── webactors │ │ └── servlet │ │ ├── EmbedHttpSessionWsConfigurator.java │ │ ├── ServletHttpRequest.java │ │ ├── ServletWebActors.java │ │ ├── WebActorEndpoint.java │ │ ├── WebActorInitializer.java │ │ ├── WebActorServlet.java │ │ └── package-info.java │ └── test │ └── java │ └── co │ └── paralleluniverse │ └── comsat │ └── webactors │ └── servlet │ ├── HttpRequestWrapperTest.java │ ├── ServletWebActor.java │ └── WebActorServletTest.java ├── comsat-actors-undertow └── src │ ├── main │ └── java │ │ └── co │ │ └── paralleluniverse │ │ └── comsat │ │ └── webactors │ │ └── undertow │ │ ├── AutoWebActorHandler.java │ │ ├── ByteArrayReadChannelListener.java │ │ ├── StringWriteChannelListener.java │ │ ├── UndertowHttpRequest.java │ │ ├── WebActorHandler.java │ │ └── package-info.java │ └── test │ └── java │ └── co │ └── paralleluniverse │ └── comsat │ └── webactors │ └── undertow │ ├── HttpRequestWrapperTest.java │ ├── UndertowWebActor.java │ └── WebActorTest.java ├── comsat-dropwizard └── src │ ├── main │ ├── java │ │ └── co │ │ │ └── paralleluniverse │ │ │ └── fibers │ │ │ └── dropwizard │ │ │ ├── FiberApplication.java │ │ │ ├── FiberDBIFactory.java │ │ │ ├── FiberDataSourceFactory.java │ │ │ ├── FiberHttpClientBuilder.java │ │ │ ├── FiberManagedDataSource.java │ │ │ ├── FiberServletContainer.java │ │ │ ├── InstrumentedNClientConnManager.java │ │ │ └── InstrumentedNHttpClientBuilder.java │ └── resources │ │ └── META-INF │ │ └── suspendables │ └── test │ ├── java │ └── co │ │ └── paralleluniverse │ │ └── fibers │ │ └── dropwizard │ │ ├── FiberDropwizardTest.java │ │ └── MyDropwizardApp.java │ └── resources │ └── server.yml ├── comsat-httpclient └── src │ ├── main │ ├── java │ │ └── co │ │ │ └── paralleluniverse │ │ │ └── fibers │ │ │ ├── httpasyncclient │ │ │ └── FiberCloseableHttpAsyncClient.java │ │ │ └── httpclient │ │ │ ├── AsyncHttpReq.java │ │ │ ├── DelegatingHttpResponse.java │ │ │ ├── FiberHttpClient.java │ │ │ └── FiberHttpClientBuilder.java │ └── resources │ │ └── META-INF │ │ └── suspendables │ └── test │ └── java │ └── co │ └── paralleluniverse │ └── fibers │ ├── httpasyncclient │ └── FiberHttpAsyncClientTest.java │ └── httpclient │ └── FiberHttpClientBuilderTest.java ├── comsat-httpkit ├── project.clj ├── src │ └── co │ │ └── paralleluniverse │ │ └── fiber │ │ └── httpkit │ │ └── client.clj ├── test-resources │ └── ssl_keystore └── test │ ├── co │ └── paralleluniverse │ │ └── fiber │ │ └── httpkit │ │ ├── client_test.clj │ │ └── test_util.clj │ └── logback-test.xml ├── comsat-jax-rs-client └── src │ ├── main │ ├── java │ │ └── co │ │ │ └── paralleluniverse │ │ │ └── fibers │ │ │ └── ws │ │ │ └── rs │ │ │ └── client │ │ │ ├── AsyncClientBuilder.java │ │ │ ├── AsyncRs.java │ │ │ ├── FiberBuilder.java │ │ │ ├── FiberClient.java │ │ │ ├── FiberInvocation.java │ │ │ ├── FiberWebTarget.java │ │ │ └── package-info.java │ └── resources │ │ └── META-INF │ │ └── suspendable-supers │ └── test │ └── java │ └── co │ └── paralleluniverse │ └── fibers │ └── ws │ └── rs │ └── client │ └── AsyncClientBuilderTest.java ├── comsat-jdbc └── src │ ├── main │ ├── java │ │ └── co │ │ │ └── paralleluniverse │ │ │ └── fibers │ │ │ └── jdbc │ │ │ ├── FiberArray.java │ │ │ ├── FiberBlob.java │ │ │ ├── FiberCallableStatement.java │ │ │ ├── FiberClob.java │ │ │ ├── FiberConnection.java │ │ │ ├── FiberDataSource.java │ │ │ ├── FiberDataSourceFactory.java │ │ │ ├── FiberDatabaseMetaData.java │ │ │ ├── FiberDriver.java │ │ │ ├── FiberNClob.java │ │ │ ├── FiberParameterMetadata.java │ │ │ ├── FiberPreparedStatement.java │ │ │ ├── FiberRef.java │ │ │ ├── FiberResultSet.java │ │ │ ├── FiberResultSetMetaData.java │ │ │ ├── FiberSQLXML.java │ │ │ ├── FiberSavepoint.java │ │ │ ├── FiberStatement.java │ │ │ ├── FiberStruct.java │ │ │ ├── JDBCFiberAsync.java │ │ │ └── package-info.java │ └── resources │ │ └── META-INF │ │ └── services │ │ └── java.sql.Driver │ └── test │ └── java │ └── co │ └── paralleluniverse │ └── fibers │ └── jdbc │ ├── FiberConnectionTest.java │ └── FiberDataSourceTest.java ├── comsat-jdbi └── src │ ├── main │ ├── java │ │ └── co │ │ │ └── paralleluniverse │ │ │ └── fibers │ │ │ └── jdbi │ │ │ ├── FiberDBI.java │ │ │ └── JdbiClassifier.java │ └── resources │ │ └── META-INF │ │ ├── services │ │ └── co.paralleluniverse.fibers.instrument.SuspendableClassifier │ │ └── suspendables │ └── test │ └── java │ └── co │ └── paralleluniverse │ └── fibers │ └── jdbi │ ├── FiberFluentAPITest.java │ └── FiberSqlObjectAPITest.java ├── comsat-jersey-server └── src │ ├── main │ ├── java │ │ └── co │ │ │ └── paralleluniverse │ │ │ └── fibers │ │ │ └── jersey │ │ │ ├── ServletContainer.java │ │ │ └── package-info.java │ └── resources │ │ └── META-INF │ │ ├── suspendable-supers │ │ └── suspendables │ └── test │ └── java │ └── co │ └── paralleluniverse │ └── fibers │ └── jersey │ ├── AddTestFiltersFeature.java │ ├── FiberServletContainerTest.java │ └── TestResource.java ├── comsat-jetty-loader ├── build.gradle └── src │ ├── main │ └── java │ │ └── co │ │ └── paralleluniverse │ │ └── comsat │ │ └── jetty │ │ └── QuasarWebAppClassLoader.java │ └── test │ ├── java │ └── co │ │ └── paralleluniverse │ │ └── embedded │ │ └── containers │ │ └── JettyLoaderTest.java │ └── resources │ ├── log4j.xml │ └── webapps │ └── dep.xml ├── comsat-jooq └── src │ ├── main │ ├── java │ │ └── co │ │ │ └── paralleluniverse │ │ │ └── fibers │ │ │ └── jooq │ │ │ └── JooqClassifier.java │ └── resources │ │ └── META-INF │ │ └── services │ │ └── co.paralleluniverse.fibers.instrument.SuspendableClassifier │ └── test │ └── java │ └── co │ └── paralleluniverse │ └── fibers │ └── jooq │ └── JooqContextTest.java ├── comsat-kafka └── src │ ├── main │ └── java │ │ └── co │ │ └── paralleluniverse │ │ └── fibers │ │ └── kafka │ │ └── FiberKafkaProducer.java │ └── test │ └── java │ └── co │ └── paralleluniverse │ └── fibers │ └── kafka │ └── FiberKafkaProducerTest.java ├── comsat-mongodb-allanbank └── src │ ├── main │ ├── java │ │ └── co │ │ │ └── paralleluniverse │ │ │ └── fibers │ │ │ └── mongodb │ │ │ ├── FiberMongoCallback.java │ │ │ ├── FiberMongoClientImpl.java │ │ │ ├── FiberMongoCollectionImpl.java │ │ │ ├── FiberMongoDatabaseImpl.java │ │ │ ├── FiberMongoFactory.java │ │ │ ├── FiberMongoUtils.java │ │ │ └── SettableListenableFuture.java │ └── resources │ │ └── META-INF │ │ └── suspendables │ └── test │ └── java │ └── co │ └── paralleluniverse │ └── fibers │ └── mongodb │ ├── AbstractTestFiberMongo.java │ ├── FiberMongoCollTest.java │ └── FiberMongoDbTest.java ├── comsat-okhttp └── src │ ├── main │ ├── java │ │ ├── co │ │ │ └── paralleluniverse │ │ │ │ └── fibers │ │ │ │ └── okhttp │ │ │ │ ├── FiberCall.java │ │ │ │ ├── FiberOkHttpClient.java │ │ │ │ └── FiberOkHttpUtil.java │ │ └── com │ │ │ └── squareup │ │ │ └── okhttp │ │ │ └── CallProxy.java │ └── resources │ │ └── META-INF │ │ └── suspendables │ └── test │ └── java │ ├── co │ └── paralleluniverse │ │ └── fibers │ │ └── okhttp │ │ └── test │ │ ├── InterceptorTest.java │ │ ├── apache │ │ ├── OkApacheClientTest.java │ │ └── OkApacheTestWrapper.java │ │ └── utils │ │ ├── FiberCallTestWrapper.java │ │ ├── FiberOkHttpClientTestWrapper.java │ │ └── original │ │ ├── DelegatingSSLSocket.java │ │ ├── DelegatingSSLSocketFactory.java │ │ ├── DelegatingServerSocketFactory.java │ │ ├── DelegatingSocketFactory.java │ │ ├── DoubleInetAddressDns.java │ │ ├── FallbackTestClientSocketFactory.java │ │ ├── RecordedResponse.java │ │ ├── RecordingAuthenticator.java │ │ ├── RecordingCallback.java │ │ ├── RecordingOkAuthenticator.java │ │ ├── SingleInetAddressDns.java │ │ ├── SocksProxy.java │ │ ├── SocksProxyTest.java │ │ ├── TestLogHandler.java │ │ ├── http │ │ └── FakeDns.java │ │ ├── io │ │ └── InMemoryFileSystem.java │ │ └── testing │ │ └── RecordingHostnameVerifier.java │ └── com │ └── squareup │ └── okhttp │ ├── CacheTest.java │ ├── CallTest.java │ ├── DispatcherTest.java │ ├── OkUrlFactoryTest.java │ ├── README.md │ ├── URLConnectionTest.java │ └── UrlConnectionCacheTest.java ├── comsat-retrofit └── src │ ├── main │ ├── java │ │ └── co │ │ │ └── paralleluniverse │ │ │ └── fibers │ │ │ └── retrofit │ │ │ └── FiberRestAdapterBuilder.java │ └── resources │ │ └── META-INF │ │ └── suspendables │ └── test │ └── java │ └── co │ └── paralleluniverse │ └── fibers │ └── retrofit │ ├── FiberRestAdapterBuilderTest.java │ └── HelloWorldApplication.java ├── comsat-ring-jetty9 ├── project.clj ├── src │ └── co │ │ └── paralleluniverse │ │ └── fiber │ │ └── ring │ │ └── jetty9.clj └── test │ ├── co │ └── paralleluniverse │ │ └── fiber │ │ └── ring │ │ └── test │ │ └── jetty9_test.clj │ └── keystore.jks ├── comsat-servlet └── src │ ├── main │ └── java │ │ └── co │ │ └── paralleluniverse │ │ └── fibers │ │ └── servlet │ │ ├── FiberHttpServlet.java │ │ ├── FiberHttpServletRequest.java │ │ ├── FiberRequestDispatcher.java │ │ ├── FiberServletContext.java │ │ ├── FiberServletRequest.java │ │ └── package-info.java │ └── test │ └── java │ └── co │ └── paralleluniverse │ └── fibers │ └── servlet │ └── FiberHttpServletTest.java ├── comsat-shiro └── src │ ├── main │ └── resources │ │ └── META-INF │ │ ├── suspendable-supers │ │ └── suspendables │ └── test │ ├── java │ └── co │ │ └── paralleluniverse │ │ └── fibers │ │ └── shiro │ │ ├── FiberShiroRealmTest.java │ │ └── FiberedRealm.java │ └── resources │ ├── shiro-multi-realm.ini │ └── shiro-single-realm.ini ├── comsat-spring ├── build.gradle ├── comsat-spring-boot-security │ ├── build.gradle │ └── src │ │ └── main │ │ └── java │ │ └── co │ │ └── paralleluniverse │ │ └── springframework │ │ └── boot │ │ └── security │ │ └── autoconfigure │ │ └── web │ │ └── FiberSecureSpringBootApplication.java ├── comsat-spring-boot │ ├── build.gradle │ ├── comsat-spring-boot-sample-actuator-async │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── actuator │ │ │ │ │ ├── HelloWorldService.java │ │ │ │ │ ├── SampleActuatorApplication.java │ │ │ │ │ ├── SampleController.java │ │ │ │ │ └── ServiceProperties.java │ │ │ └── resources │ │ │ │ └── application.properties │ │ │ └── test │ │ │ ├── java │ │ │ └── comsat │ │ │ │ └── sample │ │ │ │ └── actuator │ │ │ │ └── SampleActuatorApplicationTests.java │ │ │ └── resources │ │ │ └── application-endpoints.properties │ ├── comsat-spring-boot-sample-actuator-log4j │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── actuator │ │ │ │ │ └── log4j │ │ │ │ │ ├── HelloWorldService.java │ │ │ │ │ ├── SampleActuatorApplication.java │ │ │ │ │ ├── SampleController.java │ │ │ │ │ └── ServiceProperties.java │ │ │ └── resources │ │ │ │ ├── application.properties │ │ │ │ └── log4j.properties │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── actuator │ │ │ └── log4j │ │ │ └── SampleActuatorApplicationTests.java │ ├── comsat-spring-boot-sample-actuator-log4j2 │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── actuator │ │ │ │ │ └── log4j2 │ │ │ │ │ ├── HelloWorldService.java │ │ │ │ │ ├── SampleActuatorLog4J2Application.java │ │ │ │ │ ├── SampleController.java │ │ │ │ │ └── ServiceProperties.java │ │ │ └── resources │ │ │ │ ├── application.properties │ │ │ │ └── log4j2.xml │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── actuator │ │ │ └── log4j2 │ │ │ └── SampleActuatorApplicationTests.java │ ├── comsat-spring-boot-sample-actuator-ui │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── actuator │ │ │ │ │ └── ui │ │ │ │ │ └── SampleActuatorUiApplication.java │ │ │ └── resources │ │ │ │ ├── static │ │ │ │ └── css │ │ │ │ │ └── bootstrap.min.css │ │ │ │ └── templates │ │ │ │ ├── error.ftl │ │ │ │ └── home.ftl │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── actuator │ │ │ └── ui │ │ │ ├── SampleActuatorUiApplicationPortTests.java │ │ │ └── SampleActuatorUiApplicationTests.java │ ├── comsat-spring-boot-sample-actuator │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── actuator │ │ │ │ │ ├── HelloWorldService.java │ │ │ │ │ ├── SampleActuatorApplication.java │ │ │ │ │ ├── SampleController.java │ │ │ │ │ └── ServiceProperties.java │ │ │ └── resources │ │ │ │ └── application.properties │ │ │ └── test │ │ │ ├── java │ │ │ └── comsat │ │ │ │ └── sample │ │ │ │ └── actuator │ │ │ │ └── SampleActuatorApplicationTests.java │ │ │ └── resources │ │ │ └── application-endpoints.properties │ ├── comsat-spring-boot-sample-data-jpa │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── data │ │ │ │ │ └── jpa │ │ │ │ │ ├── SampleDataJpaApplication.java │ │ │ │ │ ├── domain │ │ │ │ │ ├── City.java │ │ │ │ │ ├── Hotel.java │ │ │ │ │ ├── HotelSummary.java │ │ │ │ │ ├── Rating.java │ │ │ │ │ ├── RatingCount.java │ │ │ │ │ ├── Review.java │ │ │ │ │ ├── ReviewDetails.java │ │ │ │ │ └── TripType.java │ │ │ │ │ ├── service │ │ │ │ │ ├── CityRepository.java │ │ │ │ │ ├── CitySearchCriteria.java │ │ │ │ │ ├── CityService.java │ │ │ │ │ ├── CityServiceImpl.java │ │ │ │ │ ├── HotelRepository.java │ │ │ │ │ ├── HotelService.java │ │ │ │ │ ├── HotelServiceImpl.java │ │ │ │ │ ├── ReviewRepository.java │ │ │ │ │ └── ReviewsSummary.java │ │ │ │ │ └── web │ │ │ │ │ └── SampleController.java │ │ │ └── resources │ │ │ │ └── import.sql │ │ │ └── test │ │ │ ├── java │ │ │ └── comsat │ │ │ │ └── sample │ │ │ │ └── data │ │ │ │ └── jpa │ │ │ │ └── SampleDataJpaApplicationTests.java │ │ │ └── resources │ │ │ └── application-scratch.properties │ ├── comsat-spring-boot-sample-jetty-ssl │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── jetty │ │ │ │ │ ├── SampleJettySslApplication.java │ │ │ │ │ ├── service │ │ │ │ │ └── HelloWorldService.java │ │ │ │ │ └── web │ │ │ │ │ └── SampleController.java │ │ │ └── resources │ │ │ │ ├── application.properties │ │ │ │ └── sample.jks │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── jetty │ │ │ └── SampleJettySslApplicationTests.java │ ├── comsat-spring-boot-sample-jetty │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ └── java │ │ │ │ └── comsat │ │ │ │ └── sample │ │ │ │ └── jetty │ │ │ │ ├── SampleJettyApplication.java │ │ │ │ ├── service │ │ │ │ └── HelloWorldService.java │ │ │ │ └── web │ │ │ │ └── SampleController.java │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── jetty │ │ │ └── SampleJettyApplicationTests.java │ ├── comsat-spring-boot-sample-jetty8-ssl │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── jetty │ │ │ │ │ ├── SampleJetty8SslApplication.java │ │ │ │ │ ├── service │ │ │ │ │ └── HelloWorldService.java │ │ │ │ │ └── web │ │ │ │ │ └── SampleController.java │ │ │ └── resources │ │ │ │ ├── application.properties │ │ │ │ └── sample.jks │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── jetty │ │ │ └── SampleJetty8SslApplicationTests.java │ ├── comsat-spring-boot-sample-jetty8 │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ └── java │ │ │ │ └── comsat │ │ │ │ └── sample │ │ │ │ └── jetty │ │ │ │ ├── SampleJetty8Application.java │ │ │ │ ├── service │ │ │ │ └── HelloWorldService.java │ │ │ │ └── web │ │ │ │ └── SampleController.java │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── jetty │ │ │ └── SampleJetty8ApplicationTests.java │ ├── comsat-spring-boot-sample-jpa │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── jpa │ │ │ │ │ ├── SampleJpaApplication.java │ │ │ │ │ ├── domain │ │ │ │ │ ├── Note.java │ │ │ │ │ └── Tag.java │ │ │ │ │ ├── repository │ │ │ │ │ ├── JpaNoteRepository.java │ │ │ │ │ ├── JpaTagRepository.java │ │ │ │ │ ├── NoteRepository.java │ │ │ │ │ └── TagRepository.java │ │ │ │ │ └── web │ │ │ │ │ └── IndexController.java │ │ │ └── resources │ │ │ │ ├── import.sql │ │ │ │ └── templates │ │ │ │ └── index.ftl │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── jpa │ │ │ ├── SampleJpaApplicationTests.java │ │ │ └── repository │ │ │ ├── JpaNoteRepositoryIntegrationTests.java │ │ │ └── JpaTagRepositoryIntegrationTests.java │ ├── comsat-spring-boot-sample-servlet │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ └── java │ │ │ │ └── comsat │ │ │ │ └── sample │ │ │ │ └── servlet │ │ │ │ └── SampleServletApplication.java │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── servlet │ │ │ └── SampleServletApplicationTests.java │ ├── comsat-spring-boot-sample-tomcat-jsp │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── jsp │ │ │ │ │ ├── SampleTomcatJspApplication.java │ │ │ │ │ └── WelcomeController.java │ │ │ ├── resources │ │ │ │ └── application.properties │ │ │ └── webapp │ │ │ │ └── WEB-INF │ │ │ │ └── jsp │ │ │ │ └── welcome.jsp │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── jsp │ │ │ └── SampleWebJspApplicationTests.java │ ├── comsat-spring-boot-sample-tomcat-multi-connectors │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── tomcat │ │ │ │ │ ├── SampleTomcatTwoConnectorsApplication.java │ │ │ │ │ └── web │ │ │ │ │ └── SampleController.java │ │ │ └── resources │ │ │ │ └── keystore │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── tomcat │ │ │ └── SampleTomcatTwoConnectorsApplicationTests.java │ ├── comsat-spring-boot-sample-tomcat-ssl │ │ ├── build.gradle │ │ ├── sample.jks │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── tomcat │ │ │ │ │ ├── SampleTomcatSslApplication.java │ │ │ │ │ └── web │ │ │ │ │ └── SampleController.java │ │ │ └── resources │ │ │ │ └── application.properties │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── tomcat │ │ │ └── SampleTomcatSslApplicationTests.java │ ├── comsat-spring-boot-sample-tomcat │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── tomcat │ │ │ │ │ ├── SampleTomcatApplication.java │ │ │ │ │ ├── service │ │ │ │ │ └── HelloWorldService.java │ │ │ │ │ └── web │ │ │ │ │ └── SampleController.java │ │ │ └── resources │ │ │ │ └── public │ │ │ │ └── test.css │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── tomcat │ │ │ ├── NonAutoConfigurationSampleTomcatApplicationTests.java │ │ │ └── SampleTomcatApplicationTests.java │ ├── comsat-spring-boot-sample-tomcat7-jsp │ │ ├── .gitignore │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── jsp │ │ │ │ │ ├── SampleTomcat7JspApplication.java │ │ │ │ │ └── WelcomeController.java │ │ │ ├── resources │ │ │ │ └── application.properties │ │ │ └── webapp │ │ │ │ └── WEB-INF │ │ │ │ └── jsp │ │ │ │ └── welcome.jsp │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── jsp │ │ │ └── SampleWebJspApplicationTests.java │ ├── comsat-spring-boot-sample-traditional │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── traditional │ │ │ │ │ ├── SampleTraditionalApplication.java │ │ │ │ │ └── config │ │ │ │ │ └── WebConfig.java │ │ │ ├── resources │ │ │ │ └── log4j.properties │ │ │ └── webapp │ │ │ │ ├── WEB-INF │ │ │ │ ├── views │ │ │ │ │ └── home.jsp │ │ │ │ └── web.xml │ │ │ │ └── index.html │ │ │ └── test │ │ │ ├── java │ │ │ └── comsat │ │ │ │ └── sample │ │ │ │ └── traditional │ │ │ │ └── SampleTraditionalApplicationTests.java │ │ │ └── resources │ │ │ └── log4j.properties │ ├── comsat-spring-boot-sample-undertow-ssl │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── undertow │ │ │ │ │ ├── SampleUndertowSslApplication.java │ │ │ │ │ ├── service │ │ │ │ │ └── HelloWorldService.java │ │ │ │ │ └── web │ │ │ │ │ └── SampleController.java │ │ │ └── resources │ │ │ │ ├── application.properties │ │ │ │ └── sample.jks │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── undertow │ │ │ └── SampleUndertowSslApplicationTests.java │ ├── comsat-spring-boot-sample-undertow │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ └── java │ │ │ │ └── comsat │ │ │ │ └── sample │ │ │ │ └── undertow │ │ │ │ ├── SampleUndertowApplication.java │ │ │ │ ├── service │ │ │ │ └── HelloWorldService.java │ │ │ │ └── web │ │ │ │ └── SampleController.java │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── undertow │ │ │ └── SampleUndertowApplicationTests.java │ ├── comsat-spring-boot-sample-web-freemarker │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── freemarker │ │ │ │ │ ├── SampleWebFreeMarkerApplication.java │ │ │ │ │ └── WelcomeController.java │ │ │ └── resources │ │ │ │ ├── application.properties │ │ │ │ └── templates │ │ │ │ ├── error.ftl │ │ │ │ └── welcome.ftl │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── freemarker │ │ │ └── SampleWebFreeMarkerApplicationTests.java │ ├── comsat-spring-boot-sample-web-groovy-templates │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── ui │ │ │ │ │ ├── InMemoryMessageRespository.java │ │ │ │ │ ├── Message.java │ │ │ │ │ ├── MessageRepository.java │ │ │ │ │ ├── SampleGroovyTemplateApplication.java │ │ │ │ │ └── mvc │ │ │ │ │ └── MessageController.java │ │ │ └── resources │ │ │ │ ├── application.properties │ │ │ │ ├── static │ │ │ │ ├── css │ │ │ │ │ └── bootstrap.min.css │ │ │ │ └── js │ │ │ │ │ ├── jquery-1.7.2.js │ │ │ │ │ └── jquery.validate.js │ │ │ │ └── templates │ │ │ │ ├── layout.tpl │ │ │ │ └── messages │ │ │ │ ├── form.tpl │ │ │ │ ├── list.tpl │ │ │ │ └── view.tpl │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── ui │ │ │ └── SampleGroovyTemplateApplicationTests.java │ ├── comsat-spring-boot-sample-web-jsp │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── jsp │ │ │ │ │ ├── SampleWebJspApplication.java │ │ │ │ │ └── WelcomeController.java │ │ │ ├── resources │ │ │ │ └── application.properties │ │ │ └── webapp │ │ │ │ └── WEB-INF │ │ │ │ └── jsp │ │ │ │ └── welcome.jsp │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── jsp │ │ │ └── SampleWebJspApplicationTests.java │ ├── comsat-spring-boot-sample-web-method-security │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── ui │ │ │ │ │ └── method │ │ │ │ │ └── SampleMethodSecurityApplication.java │ │ │ └── resources │ │ │ │ ├── application.properties │ │ │ │ ├── static │ │ │ │ └── css │ │ │ │ │ └── bootstrap.min.css │ │ │ │ └── templates │ │ │ │ ├── access.html │ │ │ │ ├── error.html │ │ │ │ ├── home.html │ │ │ │ └── login.html │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── ui │ │ │ └── method │ │ │ └── SampleMethodSecurityApplicationTests.java │ ├── comsat-spring-boot-sample-web-mustache │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── mustache │ │ │ │ │ ├── SampleWebMustacheApplication.java │ │ │ │ │ └── WelcomeController.java │ │ │ └── resources │ │ │ │ ├── application.properties │ │ │ │ └── templates │ │ │ │ ├── error.html │ │ │ │ └── welcome.html │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── mustache │ │ │ └── SampleWebMustacheApplicationTests.java │ ├── comsat-spring-boot-sample-web-secure-custom │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── ui │ │ │ │ │ └── secure │ │ │ │ │ └── SampleWebSecureCustomApplication.java │ │ │ └── resources │ │ │ │ ├── application.properties │ │ │ │ ├── static │ │ │ │ └── css │ │ │ │ │ └── bootstrap.min.css │ │ │ │ └── templates │ │ │ │ ├── error.html │ │ │ │ ├── home.html │ │ │ │ └── login.html │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── ui │ │ │ └── secure │ │ │ └── SampleWebSecureCustomApplicationTests.java │ ├── comsat-spring-boot-sample-web-secure-jdbc │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── ui │ │ │ │ │ └── secure │ │ │ │ │ └── SampleWebSecureCustomApplication.java │ │ │ └── resources │ │ │ │ ├── application.properties │ │ │ │ ├── data.sql │ │ │ │ ├── schema.sql │ │ │ │ ├── static │ │ │ │ └── css │ │ │ │ │ └── bootstrap.min.css │ │ │ │ └── templates │ │ │ │ ├── error.html │ │ │ │ ├── home.html │ │ │ │ └── login.html │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── ui │ │ │ └── secure │ │ │ └── SampleWebSecureCustomApplicationTests.java │ ├── comsat-spring-boot-sample-web-secure │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── ui │ │ │ │ │ └── secure │ │ │ │ │ └── SampleWebSecureApplication.java │ │ │ └── resources │ │ │ │ ├── application.properties │ │ │ │ ├── schema.sql │ │ │ │ ├── static │ │ │ │ └── css │ │ │ │ │ └── bootstrap.min.css │ │ │ │ └── templates │ │ │ │ ├── error.html │ │ │ │ ├── home.html │ │ │ │ └── login.html │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── ui │ │ │ └── secure │ │ │ └── SampleSecureApplicationTests.java │ ├── comsat-spring-boot-sample-web-static │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── ui │ │ │ │ │ └── SampleWebStaticApplication.java │ │ │ └── webapp │ │ │ │ └── index.html │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── ui │ │ │ └── SampleWebStaticApplicationTests.java │ ├── comsat-spring-boot-sample-web-ui │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── ui │ │ │ │ │ ├── InMemoryMessageRepository.java │ │ │ │ │ ├── Message.java │ │ │ │ │ ├── MessageRepository.java │ │ │ │ │ ├── SampleWebUiApplication.java │ │ │ │ │ └── mvc │ │ │ │ │ └── MessageController.java │ │ │ └── resources │ │ │ │ ├── application.properties │ │ │ │ ├── favicon.ico │ │ │ │ ├── logback.xml │ │ │ │ ├── static │ │ │ │ ├── css │ │ │ │ │ └── bootstrap.min.css │ │ │ │ └── js │ │ │ │ │ ├── jquery-1.7.2.js │ │ │ │ │ └── jquery.validate.js │ │ │ │ └── templates │ │ │ │ ├── layout.html │ │ │ │ └── messages │ │ │ │ ├── form.html │ │ │ │ ├── list.html │ │ │ │ └── view.html │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── ui │ │ │ └── SampleWebUiApplicationTests.java │ ├── comsat-spring-boot-sample-web-velocity │ │ ├── build.gradle │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── comsat │ │ │ │ │ └── sample │ │ │ │ │ └── velocity │ │ │ │ │ ├── SampleWebVelocityApplication.java │ │ │ │ │ └── WelcomeController.java │ │ │ └── resources │ │ │ │ ├── application.properties │ │ │ │ └── templates │ │ │ │ ├── error.vm │ │ │ │ └── welcome.vm │ │ │ └── test │ │ │ └── java │ │ │ └── comsat │ │ │ └── sample │ │ │ └── velocity │ │ │ └── SampleWebVelocityApplicationTests.java │ └── src │ │ └── main │ │ └── java │ │ └── co │ │ └── paralleluniverse │ │ └── springframework │ │ └── boot │ │ └── autoconfigure │ │ └── web │ │ ├── FiberSpringBootApplication.java │ │ └── FiberWebMvcAutoConfiguration.java ├── comsat-spring-security │ ├── build.gradle │ └── src │ │ └── main │ │ └── java │ │ └── co │ │ └── paralleluniverse │ │ └── springframework │ │ └── security │ │ └── config │ │ └── FiberSecurityContextHolderConfig.java └── comsat-spring-webmvc │ ├── build.gradle │ └── src │ └── main │ └── java │ ├── co │ └── paralleluniverse │ │ └── springframework │ │ └── web │ │ ├── method │ │ └── support │ │ │ └── FiberInvocableHandlerMethod.java │ │ └── servlet │ │ ├── config │ │ └── annotation │ │ │ └── FiberWebMvcConfigurationSupport.java │ │ └── mvc │ │ └── method │ │ └── annotation │ │ ├── FiberRequestMappingHandlerAdapter.java │ │ └── FiberServletInvocableHandlerMethod.java │ └── org │ └── springframework │ └── web │ └── servlet │ └── config │ └── annotation │ └── ServletConfigAnnotationProtectedProxy.java ├── comsat-test-utils └── src │ ├── main │ └── java │ │ └── co │ │ └── paralleluniverse │ │ ├── comsat │ │ └── webactors │ │ │ ├── AbstractWebActorTest.java │ │ │ └── MyWebActor.java │ │ ├── embedded │ │ ├── containers │ │ │ ├── AbstractEmbeddedServer.java │ │ │ ├── EmbeddedServer.java │ │ │ ├── JettyServer.java │ │ │ ├── TomcatServer.java │ │ │ └── UndertowServer.java │ │ └── db │ │ │ └── H2JdbcDatasource.java │ │ └── test │ │ └── categories │ │ └── CI.java │ └── test │ └── java │ └── co │ └── paralleluniverse │ └── embedded │ └── containers │ └── EmbeddedServerTest.java ├── comsat-test-war ├── TestServlet.java ├── build.gradle └── src │ └── main │ ├── java │ └── co │ │ └── paralleluniverse │ │ └── examples │ │ └── test │ │ └── MyFiberServlet.java │ └── webapp │ ├── META-INF │ └── context.xml │ └── WEB-INF │ ├── jetty-env.xml │ └── web.xml ├── comsat-tomcat-loader ├── build.gradle └── src │ ├── main │ └── java │ │ └── co │ │ └── paralleluniverse │ │ └── comsat │ │ └── tomcat │ │ └── QuasarWebAppClassLoader.java │ └── test │ └── java │ └── co │ └── paralleluniverse │ └── embedded │ └── containers │ └── TomcatLoaderTest.java ├── docs ├── _config.yml ├── _includes │ ├── footer.html │ ├── head.html │ ├── header.html │ ├── meta.html │ └── top-nav.html ├── _layouts │ └── default.html ├── _plugins │ ├── domain_name.filter.rb │ ├── enhanced_kramdown.rb │ ├── exclude_toc.filter.rb │ ├── include_external.rb │ ├── include_snippet.rb │ ├── markdown_converter.rb │ ├── sorted_for.rb │ ├── svg_support.rb │ └── toc.filter.rb ├── css │ ├── PIE.htc │ ├── fonts │ │ ├── FairpNarMedIta.eot │ │ ├── FairpNarMedIta.otf │ │ ├── FairpNarMedIta.svg │ │ ├── FairpNarMedIta.ttf │ │ └── FairpNarMedIta.woff │ ├── pygments │ │ ├── default.css │ │ ├── github.css │ │ ├── jekyll-github.css │ │ └── linenos.css │ └── screen.css ├── images │ ├── arrow.png │ ├── arrow2.png │ ├── arrow3.png │ ├── arrow4.png │ ├── arrow5.png │ ├── arrow6.png │ ├── bg-docs.png │ ├── bg-orange.png │ ├── bg.png │ ├── comsat_big.png │ ├── cross.png │ ├── download-icon.png │ ├── engine.png │ ├── galaxy_big.png │ ├── galaxy_shadow.png │ ├── icon-doc.png │ ├── icon-doc1.png │ ├── icon-doc11.png │ ├── icon-doc2.png │ ├── icon-doc21.png │ ├── icon-doc3.png │ ├── icon-doc31.png │ ├── icon-doc4.png │ ├── icon-doc41.png │ ├── icon-email.png │ ├── icon-git.png │ ├── icon-package1.png │ ├── icon-package2.png │ ├── icon-package3.png │ ├── icon-title.png │ ├── icon.png │ ├── icon1.png │ ├── icon10.png │ ├── icon2.png │ ├── icon3.png │ ├── icon4.png │ ├── icon5.png │ ├── icon6.png │ ├── icon7.png │ ├── icon8.png │ ├── icon9.png │ ├── icon_hover.png │ ├── icons.png │ ├── indicator.png │ ├── inner-head-icon.png │ ├── logo-footer.png │ ├── logo.png │ ├── logo1.png │ ├── logo2.png │ ├── p1.jpg │ ├── p2.jpg │ ├── part1.png │ ├── part11.png │ ├── part2.png │ ├── part21.png │ ├── part212.png │ ├── part3.png │ ├── part31.png │ ├── part4.png │ ├── quasar_big.png │ ├── shadow.png │ ├── shadow1.png │ ├── shadow2.png │ ├── shadow3.png │ ├── spacebase_big.png │ ├── spacebase_big_shadow.png │ ├── spacebase_sm.png │ ├── t1.jpg │ ├── t2.jpg │ ├── t3.jpg │ ├── title1.png │ ├── title2.png │ ├── title3.png │ ├── title4.png │ └── x.png ├── index.md └── js │ ├── main.js │ ├── plugins.js │ └── vendor │ ├── html5shiv.js │ ├── jquery-1.9.1.min.js │ └── modernizr-2.6.2.min.js ├── gradle-app.setting ├── settings.gradle └── travis ├── build_clj.sh └── post_build.sh /.gitignore: -------------------------------------------------------------------------------- 1 | /dist/ 2 | /out/ 3 | _site/ 4 | /docs/javadoc/ 5 | .idea/ 6 | *.iml 7 | /artifacts 8 | /nbproject/private/ 9 | /.nb-gradle 10 | build/ 11 | .DS_Store 12 | .gradle/ 13 | .nb-gradle-properties 14 | .bdb/ 15 | tomcat.8080 16 | **/.lein* 17 | **/target 18 | /comsat-ring-jetty9/pom.xml 19 | /comsat-ring-jetty9/pom.xml.asc 20 | /comsat-httpkit/pom.xml 21 | /comsat-httpkit/pom.xml.asc 22 | .project 23 | .classpath 24 | .settings/ 25 | bin/ 26 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: java 2 | install: gradle -q assemble 3 | script: set -o pipefail; gradle check | sed 's/\e\[?.*?[\@-~]//g' 4 | jdk: 5 | - oraclejdk7 6 | - oraclejdk8 7 | branches: 8 | except: 9 | - gh-pages 10 | env: 11 | global: 12 | - secure: "I8awdba2QYgO+vKmbsIa10L7dGPpcvt/l0sfE+NH2On4ZtBFuX7X4tFncmWizHhrqa0xvoAEl8hZFZ6+RjbAOzd9kDLfdHevLVv6z8VQusvY58GbAHPP0h4yd4PA0YsSeiLv1F7X7bCH6weZo16t42lVh4NrAS2XHqSOOvMyAWo=" 13 | - DOCS_BRANCH="release" 14 | - GEN_APIDOCS="gradle javadoc" 15 | 16 | after_success: 17 | - chmod a+x travis/build_clj.sh 18 | - ./travis/build_clj.sh 19 | - chmod a+x travis/post_build.sh 20 | - ./travis/post_build.sh 21 | 22 | notifications: 23 | slack: puniverse:OsnbakHrYeTcLyalVgtUeI4F 24 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | We are happy to receive contributions from the developer community to this free software project. If you make a non-trivial contribution and wish it merged into this project's main repository, you must first agree to and sign this [Contributor's Agreement](https://docs.google.com/a/paralleluniverse.co/forms/d/1U5GinUnRsYbvAP5W3-o11wmRkMmicD_WgRDS6Sy30HA/viewform). We appreciate your effort to making this free software better. 2 | 3 | If you create a new GitHub Pull Request, please base bugfix changes upon the `release` branch and any other change (improvements, features etc.) upon the `master` branch. 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | COMSAT 2 | Copyright (C) ${year}, Parallel Universe Software Co. All rights reserved. 3 | 4 | This program and the accompanying materials are dual-licensed under 5 | either the terms of the Eclipse Public License v1.0 as published by 6 | the Eclipse Foundation 7 | 8 | or (per the licensee's choosing) 9 | 10 | under the terms of the GNU Lesser General Public License version 3.0 11 | as published by the Free Software Foundation. -------------------------------------------------------------------------------- /comsat-actors-api/src/main/java/co/paralleluniverse/comsat/webactors/WebSocketOpened.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | package co.paralleluniverse.comsat.webactors; 15 | 16 | import co.paralleluniverse.actors.ActorRef; 17 | 18 | /** 19 | * A message sent to a web actor indicating that a new WebSocket has been opened by the client. 20 | */ 21 | public class WebSocketOpened extends WebStreamOpened { 22 | public WebSocketOpened(ActorRef actor) { 23 | super(actor); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /comsat-actors-api/src/main/java/co/paralleluniverse/comsat/webactors/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 3 | * 4 | * This program and the accompanying materials are dual-licensed under 5 | * either the terms of the Eclipse Public License v1.0 as published by 6 | * the Eclipse Foundation 7 | * 8 | * or (per the licensee's choosing) 9 | * 10 | * under the terms of the GNU Lesser General Public License version 3.0 11 | * as published by the Free Software Foundation. 12 | */ 13 | /** 14 | * The Web Actors API 15 | */ 16 | package co.paralleluniverse.comsat.webactors; 17 | -------------------------------------------------------------------------------- /comsat-actors-netty/src/main/java/co/paralleluniverse/comsat/webactors/netty/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2016, Parallel Universe Software Co. All rights reserved. 3 | * 4 | * This program and the accompanying materials are dual-licensed under 5 | * either the terms of the Eclipse Public License v1.0 as published by 6 | * the Eclipse Foundation 7 | * 8 | * or (per the licensee's choosing) 9 | * 10 | * under the terms of the GNU Lesser General Public License version 3.0 11 | * as published by the Free Software Foundation. 12 | */ 13 | /** 14 | * A Web Actors backend implementation based on Netty 15 | */ 16 | package co.paralleluniverse.comsat.webactors.netty; 17 | -------------------------------------------------------------------------------- /comsat-actors-netty/src/test/java/co/paralleluniverse/comsat/webactors/netty/HttpRequestWrapperTest.java: -------------------------------------------------------------------------------- 1 | package co.paralleluniverse.comsat.webactors.netty; 2 | 3 | import io.netty.buffer.EmptyByteBuf; 4 | import io.netty.buffer.UnpooledByteBufAllocator; 5 | import io.netty.handler.codec.http.DefaultFullHttpRequest; 6 | import io.netty.handler.codec.http.HttpMethod; 7 | import io.netty.handler.codec.http.HttpVersion; 8 | import org.junit.Test; 9 | 10 | import static org.junit.Assert.assertEquals; 11 | 12 | /** 13 | * @author rodedb 14 | */ 15 | public class HttpRequestWrapperTest { 16 | 17 | @Test 18 | public void httpHeaderCaseInsensitivity() { 19 | DefaultFullHttpRequest httpRequest = 20 | new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, "uri", new EmptyByteBuf(UnpooledByteBufAllocator.DEFAULT)); 21 | String headerValue = "application/json"; 22 | httpRequest.headers().add("Content-Type", headerValue); 23 | NettyHttpRequest requestWrapper = new NettyHttpRequest(null, null, httpRequest, "sessionId"); 24 | assertEquals(headerValue, requestWrapper.getHeader("content-type")); 25 | } 26 | } -------------------------------------------------------------------------------- /comsat-actors-netty/src/test/java/co/paralleluniverse/comsat/webactors/netty/NettyWebActor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (C) 2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | package co.paralleluniverse.comsat.webactors.netty; 15 | 16 | import co.paralleluniverse.comsat.webactors.MyWebActor; 17 | import co.paralleluniverse.comsat.webactors.WebActor; 18 | 19 | /** 20 | * @author circlespainter 21 | */ 22 | @WebActor(httpUrlPatterns = {"/*"}, webSocketUrlPatterns = {"/ws"}) 23 | public final class NettyWebActor extends MyWebActor {} 24 | -------------------------------------------------------------------------------- /comsat-actors-servlet/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | testCompile "org.springframework:spring-test:$springVer" 3 | } -------------------------------------------------------------------------------- /comsat-actors-servlet/src/main/java/co/paralleluniverse/comsat/webactors/servlet/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013-2016, Parallel Universe Software Co. All rights reserved. 3 | * 4 | * This program and the accompanying materials are dual-licensed under 5 | * either the terms of the Eclipse Public License v1.0 as published by 6 | * the Eclipse Foundation 7 | * 8 | * or (per the licensee's choosing) 9 | * 10 | * under the terms of the GNU Lesser General Public License version 3.0 11 | * as published by the Free Software Foundation. 12 | */ 13 | /** 14 | * A Web Actors backend implementation based on Servlets 15 | */ 16 | package co.paralleluniverse.comsat.webactors.servlet; 17 | -------------------------------------------------------------------------------- /comsat-actors-servlet/src/test/java/co/paralleluniverse/comsat/webactors/servlet/HttpRequestWrapperTest.java: -------------------------------------------------------------------------------- 1 | package co.paralleluniverse.comsat.webactors.servlet; 2 | 3 | import org.junit.Test; 4 | import org.springframework.mock.web.MockHttpServletRequest; 5 | 6 | import static org.junit.Assert.assertEquals; 7 | 8 | /** 9 | * @author rodedb 10 | */ 11 | public class HttpRequestWrapperTest { 12 | 13 | @Test 14 | public void httpHeaderCaseInsensitivity() { 15 | MockHttpServletRequest mockRequest = new MockHttpServletRequest(); 16 | String headerValue = "application/json"; 17 | mockRequest.addHeader("Authorization", headerValue); 18 | ServletHttpRequest requestWrapper = new ServletHttpRequest(null, mockRequest, null); 19 | assertEquals(headerValue, requestWrapper.getHeader("authorization")); 20 | } 21 | } -------------------------------------------------------------------------------- /comsat-actors-servlet/src/test/java/co/paralleluniverse/comsat/webactors/servlet/ServletWebActor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (C) 2014-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | package co.paralleluniverse.comsat.webactors.servlet; 15 | 16 | import co.paralleluniverse.comsat.webactors.MyWebActor; 17 | import co.paralleluniverse.comsat.webactors.WebActor; 18 | 19 | /** 20 | * @author circlespainter 21 | */ 22 | @WebActor(httpUrlPatterns = {"/*"}, webSocketUrlPatterns = {"/ws"}) 23 | public final class ServletWebActor extends MyWebActor {} 24 | -------------------------------------------------------------------------------- /comsat-actors-undertow/src/main/java/co/paralleluniverse/comsat/webactors/undertow/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2015-2016, Parallel Universe Software Co. All rights reserved. 3 | * 4 | * This program and the accompanying materials are dual-licensed under 5 | * either the terms of the Eclipse Public License v1.0 as published by 6 | * the Eclipse Foundation 7 | * 8 | * or (per the licensee's choosing) 9 | * 10 | * under the terms of the GNU Lesser General Public License version 3.0 11 | * as published by the Free Software Foundation. 12 | */ 13 | /** 14 | * A Web Actors backend implementation based on Undertow 15 | */ 16 | package co.paralleluniverse.comsat.webactors.undertow; 17 | -------------------------------------------------------------------------------- /comsat-actors-undertow/src/test/java/co/paralleluniverse/comsat/webactors/undertow/HttpRequestWrapperTest.java: -------------------------------------------------------------------------------- 1 | package co.paralleluniverse.comsat.webactors.undertow; 2 | 3 | import io.undertow.server.HttpServerExchange; 4 | import io.undertow.util.HttpString; 5 | import org.junit.Test; 6 | 7 | import static org.junit.Assert.*; 8 | 9 | /** 10 | * @author rodedb 11 | */ 12 | public class HttpRequestWrapperTest { 13 | 14 | @Test 15 | public void httpHeaderCaseInsensitivity() { 16 | String headerValue = "application/json"; 17 | HttpServerExchange httpServerExchange = new HttpServerExchange(null); 18 | httpServerExchange.getRequestHeaders().put(new HttpString("Content-Type"), headerValue); 19 | UndertowHttpRequest requestWrapper = new UndertowHttpRequest(null, httpServerExchange, null); 20 | assertEquals(headerValue, requestWrapper.getHeader("content-type")); 21 | } 22 | } -------------------------------------------------------------------------------- /comsat-actors-undertow/src/test/java/co/paralleluniverse/comsat/webactors/undertow/UndertowWebActor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (C) 2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | package co.paralleluniverse.comsat.webactors.undertow; 15 | 16 | import co.paralleluniverse.comsat.webactors.MyWebActor; 17 | import co.paralleluniverse.comsat.webactors.WebActor; 18 | 19 | /** 20 | * @author circlespainter 21 | */ 22 | @WebActor(httpUrlPatterns = {"/*"}, webSocketUrlPatterns = {"/ws"}) 23 | public final class UndertowWebActor extends MyWebActor {} 24 | -------------------------------------------------------------------------------- /comsat-dropwizard/src/main/resources/META-INF/suspendables: -------------------------------------------------------------------------------- 1 | org.apache.tomcat.jdbc.pool.ProxyConnection.invoke 2 | org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke 3 | org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke 4 | org.glassfish.jersey.servlet.ServletContainer.service 5 | org.glassfish.jersey.servlet.WebComponent.service 6 | org.glassfish.jersey.server.ApplicationHandler.handle 7 | org.glassfish.jersey.server.ServerRuntime.process 8 | org.glassfish.jersey.process.internal.RequestScope.runInScope 9 | org.glassfish.jersey.internal.Errors.process 10 | org.glassfish.jersey.internal.Errors$1.call 11 | org.glassfish.jersey.server.ServerRuntime$2.run 12 | org.glassfish.jersey.server.model.ResourceMethodInvoker.apply 13 | org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke 14 | org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch 15 | org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch 16 | org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run 17 | org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke 18 | org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke 19 | org.glassfish.jersey.servlet.WebComponent.service 20 | org.glassfish.jersey.servlet.WebComponent.serviceImpl 21 | -------------------------------------------------------------------------------- /comsat-dropwizard/src/test/resources/server.yml: -------------------------------------------------------------------------------- 1 | # snippet server 2 | server: 3 | maxThreads: 200 4 | minThreads: 200 5 | maxQueuedRequests: 9999 6 | requestLog: 7 | appenders: [] 8 | # end of snippet 9 | 10 | # snippet httpclient 11 | httpClient: 12 | maxConnectionsPerRoute: 9999 13 | maxConnections: 9999 14 | # end of snippet 15 | 16 | # snippet db 17 | database: 18 | driverClass: 19 | org.h2.Driver 20 | url: 21 | jdbc:h2:./build/h2testdb 22 | # end of snippet 23 | 24 | # for mysql use url such as this 25 | # jdbc:fiber:mysql://localhost:3306/testjdbi?zeroDateTimeBehavior=convertToNull 26 | 27 | properties: 28 | charSet: UTF-8 29 | 30 | # the maximum amount of time to wait on an empty pool before throwing an exception 31 | maxWaitForConnection: 1s 32 | user: root 33 | password: root 34 | 35 | # the SQL query to run when validating a connection's liveness 36 | validationQuery: 37 | "/* MyService Health Check */ VALUES 1" 38 | # for mysql use validationQuery such as this 39 | # "/* MyService Health Check */ SELECT 1" 40 | 41 | # the minimum number of connections to keep open 42 | minSize: 8 43 | 44 | # the maximum number of connections to keep open 45 | maxSize: 32 46 | 47 | # whether or not idle connections should be validated 48 | checkConnectionWhileIdle: false 49 | -------------------------------------------------------------------------------- /comsat-httpclient/src/main/resources/META-INF/suspendables: -------------------------------------------------------------------------------- 1 | org.apache.http.impl.client.CloseableHttpClient.doExecute 2 | org.apache.http.impl.client.CloseableHttpClient.execute 3 | -------------------------------------------------------------------------------- /comsat-httpkit/project.clj: -------------------------------------------------------------------------------- 1 | (def quasar-pulsar-version "0.7.6") 2 | 3 | (defproject co.paralleluniverse/comsat-httpkit "0.7.1-SNAPSHOT" 4 | :description "'httpkit' Quasar integration" 5 | 6 | :url "https://github.com/puniverse/comsat" 7 | 8 | :scm {:name "git" :url "https://github.com/puniverse/comsat"} 9 | 10 | :licenses [{:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} 11 | {:name "GNU Lesser General Public License - v 3" :url "http://www.gnu.org/licenses/lgpl.html"}] 12 | 13 | :distribution :repo 14 | 15 | :dependencies 16 | [[org.clojure/clojure "1.7.0"] 17 | [http-kit "2.1.19"] 18 | [co.paralleluniverse/pulsar ~quasar-pulsar-version]] 19 | 20 | :profiles {:dev {:dependencies 21 | [[clj-http "2.1.0"] 22 | [ch.qos.logback/logback-classic "1.1.7"] 23 | [compojure "1.5.0"] 24 | [ring/ring-jetty-adapter "1.4.0"] 25 | [ring/ring-core "1.4.0"]]}} 26 | 27 | :repositories [["snapshots" "http://oss.sonatype.org/content/repositories/snapshots"]] 28 | 29 | :java-agents [[co.paralleluniverse/quasar-core ~quasar-pulsar-version]] 30 | ) 31 | -------------------------------------------------------------------------------- /comsat-httpkit/src/co/paralleluniverse/fiber/httpkit/client.clj: -------------------------------------------------------------------------------- 1 | ; Pulsar: lightweight threads and Erlang-like actors for Clojure. 2 | ; Copyright (C) 2015, Parallel Universe Software Co. All rights reserved. 3 | ; 4 | ; This program and the accompanying materials are dual-licensed under 5 | ; either the terms of the Eclipse Public License v1.0 as published by 6 | ; the Eclipse Foundation 7 | ; 8 | ; or (per the licensee's choosing) 9 | ; 10 | ; under the terms of the GNU Lesser General Public License version 3.0 11 | ; as published by the Free Software Foundation. 12 | 13 | (ns ^{:author "circlespainter"} co.paralleluniverse.fiber.httpkit.client 14 | (:refer-clojure :exclude [get await]) 15 | (:require [org.httpkit.client :as hc] 16 | [co.paralleluniverse.pulsar.core :refer [defsfn await]])) 17 | 18 | (defsfn request [req] (await hc/request req)) 19 | 20 | (defmacro ^:private defreq [method] 21 | `(defsfn 22 | ~method 23 | ([^String ~'url] 24 | (await ~(symbol "hc" (name method)) ~'url {})) 25 | ([^String ~'url ~'opts] 26 | (await ~(symbol "hc" (name method)) ~'url ~'opts)))) 27 | 28 | (defreq get) 29 | (defreq delete) 30 | (defreq head) 31 | (defreq post) 32 | (defreq put) 33 | (defreq options) 34 | (defreq patch) 35 | -------------------------------------------------------------------------------- /comsat-httpkit/test-resources/ssl_keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/comsat-httpkit/test-resources/ssl_keystore -------------------------------------------------------------------------------- /comsat-httpkit/test/logback-test.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger - %msg%n 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /comsat-jax-rs-client/src/main/java/co/paralleluniverse/fibers/ws/rs/client/AsyncRs.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | package co.paralleluniverse.fibers.ws.rs.client; 15 | 16 | import co.paralleluniverse.fibers.FiberAsync; 17 | import co.paralleluniverse.fibers.SuspendExecution; 18 | import javax.ws.rs.client.InvocationCallback; 19 | 20 | abstract class AsyncRs extends FiberAsync implements InvocationCallback { 21 | @Override 22 | public ResponseType run() throws SuspendExecution { 23 | try { 24 | final ResponseType run = super.run(); 25 | return run; 26 | } catch (InterruptedException e) { 27 | throw new AssertionError(e); 28 | } 29 | } 30 | 31 | @Override 32 | public void completed(ResponseType response) { 33 | asyncCompleted(response); 34 | } 35 | 36 | @Override 37 | public void failed(Throwable throwable) { 38 | asyncFailed(throwable); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /comsat-jax-rs-client/src/main/java/co/paralleluniverse/fibers/ws/rs/client/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 3 | * 4 | * This program and the accompanying materials are dual-licensed under 5 | * either the terms of the Eclipse Public License v1.0 as published by 6 | * the Eclipse Foundation 7 | * 8 | * or (per the licensee's choosing) 9 | * 10 | * under the terms of the GNU Lesser General Public License version 3.0 11 | * as published by the Free Software Foundation. 12 | */ 13 | /** 14 | * {@link javax.ws.rs.client JAX-RS Client} Integration for Quasar Fibers 15 | */ 16 | package co.paralleluniverse.fibers.ws.rs.client; 17 | -------------------------------------------------------------------------------- /comsat-jax-rs-client/src/main/resources/META-INF/suspendable-supers: -------------------------------------------------------------------------------- 1 | javax.ws.rs.client.SyncInvoker.get 2 | javax.ws.rs.client.SyncInvoker.put 3 | javax.ws.rs.client.SyncInvoker.post 4 | javax.ws.rs.client.SyncInvoker.delete 5 | javax.ws.rs.client.SyncInvoker.head 6 | javax.ws.rs.client.SyncInvoker.options 7 | javax.ws.rs.client.SyncInvoker.trace 8 | javax.ws.rs.client.SyncInvoker.method 9 | javax.ws.rs.client.Invocation.invoke -------------------------------------------------------------------------------- /comsat-jdbc/src/main/java/co/paralleluniverse/fibers/jdbc/JDBCFiberAsync.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | package co.paralleluniverse.fibers.jdbc; 15 | 16 | import co.paralleluniverse.common.util.CheckedCallable; 17 | import co.paralleluniverse.fibers.FiberAsync; 18 | import co.paralleluniverse.fibers.SuspendExecution; 19 | import co.paralleluniverse.fibers.Suspendable; 20 | import java.util.concurrent.ExecutorService; 21 | 22 | /** 23 | * @author circlespainter 24 | */ 25 | public abstract class JDBCFiberAsync extends FiberAsync { 26 | @Suspendable 27 | public static V exec(ExecutorService es, CheckedCallable cc) throws E { 28 | try { 29 | return runBlocking(es, cc); 30 | } catch (final SuspendExecution se) { 31 | throw new AssertionError(se); 32 | } catch (final InterruptedException ie) { 33 | throw new RuntimeException(ie); 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /comsat-jdbc/src/main/java/co/paralleluniverse/fibers/jdbc/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 3 | * 4 | * This program and the accompanying materials are dual-licensed under 5 | * either the terms of the Eclipse Public License v1.0 as published by 6 | * the Eclipse Foundation 7 | * 8 | * or (per the licensee's choosing) 9 | * 10 | * under the terms of the GNU Lesser General Public License version 3.0 11 | * as published by the Free Software Foundation. 12 | */ 13 | /** 14 | * {@link java.sql JDBC} Integration for Quasar Fibers 15 | */ 16 | package co.paralleluniverse.fibers.jdbc; 17 | -------------------------------------------------------------------------------- /comsat-jdbc/src/main/resources/META-INF/services/java.sql.Driver: -------------------------------------------------------------------------------- 1 | co.paralleluniverse.fibers.jdbc.FiberDriver -------------------------------------------------------------------------------- /comsat-jdbi/src/main/resources/META-INF/services/co.paralleluniverse.fibers.instrument.SuspendableClassifier: -------------------------------------------------------------------------------- 1 | co.paralleluniverse.fibers.jdbi.JdbiClassifier -------------------------------------------------------------------------------- /comsat-jdbi/src/main/resources/META-INF/suspendables: -------------------------------------------------------------------------------- 1 | org.skife.jdbi.v2.SQLStatement.internalExecute 2 | org.skife.jdbi.v2.Update.execute 3 | org.skife.jdbi.v2.Update.executeAndReturnGeneratedKeys 4 | org.skife.jdbi.v2.Query.fold 5 | org.skife.jdbi.v2.BaseStatement.beforeExecution 6 | org.skife.jdbi.v2.BaseStatement.cleanup 7 | org.skife.jdbi.v2.sqlobject.SqlObject.invoke 8 | org.skife.jdbi.v2.sqlobject.SqlObject$1.intercept 9 | org.skife.jdbi.v2.sqlobject.SqlObject$2.intercept 10 | org.skife.jdbi.v2.sqlobject.UpdateHandler.invoke 11 | org.skife.jdbi.v2.sqlobject.UpdateHandler$1.value 12 | org.skife.jdbi.v2.sqlobject.UpdateHandler$2.value 13 | org.skife.jdbi.v2.sqlobject.ResultReturnThing.map 14 | org.skife.jdbi.v2.sqlobject.FigureItOutResultSetMapper.map 15 | org.skife.jdbi.v2.tweak.transactions.LocalTransactionHandler.restoreAutoCommitState 16 | -------------------------------------------------------------------------------- /comsat-jersey-server/src/main/java/co/paralleluniverse/fibers/jersey/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 3 | * 4 | * This program and the accompanying materials are dual-licensed under 5 | * either the terms of the Eclipse Public License v1.0 as published by 6 | * the Eclipse Foundation 7 | * 8 | * or (per the licensee's choosing) 9 | * 10 | * under the terms of the GNU Lesser General Public License version 3.0 11 | * as published by the Free Software Foundation. 12 | */ 13 | /** 14 | * {@link javax.ws.rs JAX-RS Server} Integration for Quasar Fibers Using Jersey 15 | */ 16 | package co.paralleluniverse.fibers.jersey; 17 | -------------------------------------------------------------------------------- /comsat-jersey-server/src/main/resources/META-INF/suspendable-supers: -------------------------------------------------------------------------------- 1 | javax.ws.rs.container.ContainerRequestFilter.filter 2 | javax.ws.rs.container.ContainerResponseFilter.filter 3 | org.glassfish.jersey.process.internal.Stage.apply 4 | -------------------------------------------------------------------------------- /comsat-jetty-loader/src/test/resources/log4j.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /comsat-jetty-loader/src/test/resources/webapps/dep.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | ./build/wars/dep.war 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jetty.webapp.WebInfConfiguration 21 | org.eclipse.jetty.plus.webapp.EnvConfiguration 22 | org.eclipse.jetty.plus.webapp.PlusConfiguration 23 | org.eclipse.jetty.annotations.AnnotationConfiguration 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /comsat-jooq/src/main/resources/META-INF/services/co.paralleluniverse.fibers.instrument.SuspendableClassifier: -------------------------------------------------------------------------------- 1 | co.paralleluniverse.fibers.jooq.JooqClassifier -------------------------------------------------------------------------------- /comsat-mongodb-allanbank/src/main/java/co/paralleluniverse/fibers/mongodb/FiberMongoCallback.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | package co.paralleluniverse.fibers.mongodb; 15 | 16 | import co.paralleluniverse.fibers.FiberAsync; 17 | import com.allanbank.mongodb.Callback; 18 | import com.allanbank.mongodb.MongoDbException; 19 | 20 | /** 21 | * Base class for async-to-fiber-blocking Async Java Mongo Driver transformations 22 | * 23 | * @author circlespainter 24 | * @param 25 | */ 26 | public abstract class FiberMongoCallback extends FiberAsync implements Callback { 27 | @Override 28 | public void callback(T success) { 29 | asyncCompleted(success); 30 | } 31 | 32 | @Override 33 | public void exception(Throwable failure) { 34 | asyncFailed(failure); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /comsat-mongodb-allanbank/src/main/java/co/paralleluniverse/fibers/mongodb/FiberMongoFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | package co.paralleluniverse.fibers.mongodb; 15 | 16 | import com.allanbank.mongodb.MongoClient; 17 | import com.allanbank.mongodb.MongoClientConfiguration; 18 | import com.allanbank.mongodb.MongoDbUri; 19 | 20 | /** 21 | * 22 | * @author circlespainter 23 | */ 24 | public class FiberMongoFactory { 25 | 26 | public static MongoClient createClient(MongoClientConfiguration mcc) { 27 | return new FiberMongoClientImpl(mcc); 28 | } 29 | 30 | public static MongoClient createClient(MongoDbUri uri) { 31 | return new FiberMongoClientImpl(new MongoClientConfiguration(uri)); 32 | } 33 | 34 | public static MongoClient createClient(String uri) { 35 | return new FiberMongoClientImpl(new MongoClientConfiguration(uri)); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /comsat-okhttp/src/main/java/co/paralleluniverse/fibers/okhttp/FiberOkHttpClient.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (C) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | package co.paralleluniverse.fibers.okhttp; 15 | 16 | import com.squareup.okhttp.Call; 17 | import com.squareup.okhttp.OkHttpClient; 18 | import com.squareup.okhttp.Request; 19 | 20 | /** 21 | * Fiber-blocking OkHttp's {@link OkHttpClient} implementation. 22 | * 23 | * @author circlespainter 24 | */ 25 | public class FiberOkHttpClient extends OkHttpClient { 26 | 27 | @Override 28 | public Call newCall(Request request) { 29 | return new FiberCall(this, request); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /comsat-okhttp/src/main/java/com/squareup/okhttp/CallProxy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | package com.squareup.okhttp; 15 | 16 | /** 17 | * Proxy to open up the {@link Call} protected (since version 2.4.0) constructor. 18 | * 19 | * @author circlespainter 20 | */ 21 | public class CallProxy extends Call { 22 | public CallProxy(final OkHttpClient client, final Request originalRequest) { 23 | super(client, originalRequest); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /comsat-okhttp/src/main/resources/META-INF/suspendables: -------------------------------------------------------------------------------- 1 | com.squareup.okhttp.apache.OkApacheClient.execute -------------------------------------------------------------------------------- /comsat-okhttp/src/test/java/co/paralleluniverse/fibers/okhttp/test/apache/OkApacheTestWrapper.java: -------------------------------------------------------------------------------- 1 | package co.paralleluniverse.fibers.okhttp.test.apache; 2 | 3 | import co.paralleluniverse.fibers.okhttp.FiberOkHttpUtil; 4 | import com.squareup.okhttp.apache.OkApacheClient; 5 | import org.apache.http.HttpResponse; 6 | import org.apache.http.client.methods.HttpRequestBase; 7 | 8 | import java.io.IOException; 9 | 10 | public final class OkApacheTestWrapper { 11 | private OkApacheClient underlying; 12 | 13 | public OkApacheTestWrapper(OkApacheClient underlying) { 14 | this.underlying = underlying; 15 | } 16 | 17 | public HttpResponse execute(HttpRequestBase request) throws IOException, InterruptedException { 18 | return FiberOkHttpUtil.executeInFiber(underlying, request); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /comsat-okhttp/src/test/java/co/paralleluniverse/fibers/okhttp/test/utils/FiberCallTestWrapper.java: -------------------------------------------------------------------------------- 1 | package co.paralleluniverse.fibers.okhttp.test.utils; 2 | 3 | import co.paralleluniverse.fibers.okhttp.FiberCall; 4 | import co.paralleluniverse.fibers.okhttp.FiberOkHttpClient; 5 | import co.paralleluniverse.fibers.okhttp.FiberOkHttpUtil; 6 | import com.squareup.okhttp.Call; 7 | import com.squareup.okhttp.Callback; 8 | import com.squareup.okhttp.Request; 9 | import com.squareup.okhttp.Response; 10 | 11 | import java.io.IOException; 12 | 13 | public final class FiberCallTestWrapper extends FiberCall { 14 | private final Call underlying; 15 | 16 | public FiberCallTestWrapper(FiberOkHttpClient client, Call call, Request request) { 17 | super(client, request); 18 | this.underlying = call; 19 | } 20 | 21 | @Override 22 | public Response execute() throws IOException { 23 | try { 24 | return FiberOkHttpUtil.executeInFiber(underlying); 25 | } catch (final InterruptedException e) { 26 | throw new RuntimeException(e); 27 | } 28 | } 29 | 30 | @Override 31 | public void enqueue(Callback responseCallback) { 32 | underlying.enqueue(responseCallback); 33 | } 34 | 35 | @Override 36 | public void cancel() { 37 | underlying.cancel(); 38 | } 39 | 40 | @Override 41 | public boolean isCanceled() { 42 | return underlying.isCanceled(); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /comsat-okhttp/src/test/java/co/paralleluniverse/fibers/okhttp/test/utils/FiberOkHttpClientTestWrapper.java: -------------------------------------------------------------------------------- 1 | package co.paralleluniverse.fibers.okhttp.test.utils; 2 | 3 | import co.paralleluniverse.fibers.okhttp.FiberOkHttpClient; 4 | import com.squareup.okhttp.Call; 5 | import com.squareup.okhttp.Request; 6 | 7 | final public class FiberOkHttpClientTestWrapper extends FiberOkHttpClient { 8 | @Override 9 | public Call newCall(Request request) { 10 | return new FiberCallTestWrapper(this, super.newCall(request), request); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /comsat-okhttp/src/test/java/co/paralleluniverse/fibers/okhttp/test/utils/original/DoubleInetAddressDns.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2014 Square, Inc. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package co.paralleluniverse.fibers.okhttp.test.utils.original; 17 | 18 | import com.squareup.okhttp.Dns; 19 | import java.net.InetAddress; 20 | import java.net.UnknownHostException; 21 | import java.util.Arrays; 22 | import java.util.List; 23 | 24 | /** 25 | * A network that always resolves two IP addresses per host. Use this when testing route selection 26 | * fallbacks to guarantee that a fallback address is available. 27 | */ 28 | public class DoubleInetAddressDns implements Dns { 29 | @Override public List lookup(String hostname) throws UnknownHostException { 30 | List addresses = Dns.SYSTEM.lookup(hostname); 31 | return Arrays.asList(addresses.get(0), addresses.get(0)); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /comsat-okhttp/src/test/java/co/paralleluniverse/fibers/okhttp/test/utils/original/testing/RecordingHostnameVerifier.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2013 The Android Open Source Project 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package co.paralleluniverse.fibers.okhttp.test.utils.original.testing; 17 | 18 | import java.util.ArrayList; 19 | import java.util.List; 20 | import javax.net.ssl.HostnameVerifier; 21 | import javax.net.ssl.SSLSession; 22 | 23 | public final class RecordingHostnameVerifier implements HostnameVerifier { 24 | public final List calls = new ArrayList<>(); 25 | 26 | public boolean verify(String hostname, SSLSession session) { 27 | calls.add("verify " + hostname); 28 | return true; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /comsat-okhttp/src/test/java/com/squareup/okhttp/README.md: -------------------------------------------------------------------------------- 1 | Unfortunately these tests can't be moved as they use package-local functionality. 2 | -------------------------------------------------------------------------------- /comsat-retrofit/src/main/resources/META-INF/suspendables: -------------------------------------------------------------------------------- 1 | retrofit.client.ApacheClient.execute 2 | retrofit.RestAdapter$RestHandler.invokeRequest 3 | retrofit.RestAdapter$RestHandler.invoke -------------------------------------------------------------------------------- /comsat-ring-jetty9/project.clj: -------------------------------------------------------------------------------- 1 | (def quasar-pulsar-version "0.7.6") 2 | 3 | (defproject co.paralleluniverse/comsat-ring-jetty9 "0.7.1-SNAPSHOT" 4 | :description "Comsat integration for the Ring Clojure web framework: Jetty 9 fiber-blocking adapter." 5 | :url "https://github.com/puniverse/comsat" 6 | :scm {:name "git" :url "https://github.com/puniverse/comsat"} 7 | 8 | :licenses [{:name "Eclipse Public License" :url "http://www.eclipse.org/legal/epl-v10.html"} 9 | {:name "GNU Lesser General Public License - v 3" :url "http://www.gnu.org/licenses/lgpl.html"}] 10 | 11 | :distribution :repo 12 | 13 | :dependencies 14 | [[org.clojure/clojure "1.7.0"] 15 | 16 | [ring/ring-core "1.4.0"] 17 | [ring/ring-devel "1.4.0"] 18 | [ring/ring-servlet "1.4.0"] 19 | 20 | [org.eclipse.jetty/jetty-server "9.3.8.v20160314"] 21 | 22 | [org.slf4j/slf4j-simple "1.7.21"] 23 | 24 | [co.paralleluniverse/pulsar ~quasar-pulsar-version]] 25 | 26 | :repositories [["snapshots" "http://oss.sonatype.org/content/repositories/snapshots"]] 27 | 28 | :java-agents [[co.paralleluniverse/quasar-core ~quasar-pulsar-version]] 29 | 30 | :profiles 31 | {:dev {:dependencies [[clj-http "2.1.0"]]}}) 32 | -------------------------------------------------------------------------------- /comsat-ring-jetty9/test/keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/comsat-ring-jetty9/test/keystore.jks -------------------------------------------------------------------------------- /comsat-servlet/src/main/java/co/paralleluniverse/fibers/servlet/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 3 | * 4 | * This program and the accompanying materials are dual-licensed under 5 | * either the terms of the Eclipse Public License v1.0 as published by 6 | * the Eclipse Foundation 7 | * 8 | * or (per the licensee's choosing) 9 | * 10 | * under the terms of the GNU Lesser General Public License version 3.0 11 | * as published by the Free Software Foundation. 12 | */ 13 | /** 14 | * {@link javax.servlet Servlet} Integration for Quasar Fibers 15 | */ 16 | package co.paralleluniverse.fibers.servlet; 17 | -------------------------------------------------------------------------------- /comsat-shiro/src/main/resources/META-INF/suspendable-supers: -------------------------------------------------------------------------------- 1 | org.apache.shiro.authc.AbstractAuthenticator.doAuthenticate 2 | org.apache.shiro.authc.Authenticator.authenticate 3 | org.apache.shiro.realm.Realm.getAuthenticationInfo 4 | org.apache.shiro.realm.AuthenticatingRealm.doGetAuthenticationInfo 5 | org.apache.shiro.realm.AuthorizingRealm.doGetAuthorizationInfo 6 | org.apache.shiro.mgt.SecurityManager.login 7 | org.apache.shiro.subject.Subject.isPermitted 8 | org.apache.shiro.subject.Subject.isPermittedAll 9 | org.apache.shiro.subject.Subject.checkPermission 10 | org.apache.shiro.subject.Subject.checkPermissions 11 | org.apache.shiro.subject.Subject.hasRole 12 | org.apache.shiro.subject.Subject.hasRoles 13 | org.apache.shiro.subject.Subject.hasAllRoles 14 | org.apache.shiro.subject.Subject.checkRole 15 | org.apache.shiro.subject.Subject.checkRoles 16 | org.apache.shiro.subject.Subject.login 17 | org.apache.shiro.authz.Authorizer.isPermitted 18 | org.apache.shiro.authz.Authorizer.isPermittedAll 19 | org.apache.shiro.authz.Authorizer.checkPermission 20 | org.apache.shiro.authz.Authorizer.checkPermissions 21 | org.apache.shiro.authz.Authorizer.hasRole 22 | org.apache.shiro.authz.Authorizer.hasRoles 23 | org.apache.shiro.authz.Authorizer.hasAllRoles 24 | org.apache.shiro.authz.Authorizer.checkRole 25 | org.apache.shiro.authz.Authorizer.checkRoles 26 | org.apache.shiro.authz.Authorizer.checkRoles -------------------------------------------------------------------------------- /comsat-shiro/src/test/resources/shiro-multi-realm.ini: -------------------------------------------------------------------------------- 1 | [main] 2 | fiberedRealmA = co.paralleluniverse.fibers.shiro.FiberedRealm 3 | fiberedRealmB = co.paralleluniverse.fibers.shiro.FiberedRealm 4 | securityManager.realms = $fiberedRealmA, $fiberedRealmB -------------------------------------------------------------------------------- /comsat-shiro/src/test/resources/shiro-single-realm.ini: -------------------------------------------------------------------------------- 1 | [main] 2 | fiberedRealm = co.paralleluniverse.fibers.shiro.FiberedRealm 3 | securityManager.realms = $fiberedRealm -------------------------------------------------------------------------------- /comsat-spring/build.gradle: -------------------------------------------------------------------------------- 1 | subprojects { 2 | dependencies { 3 | testCompile 'org.assertj:assertj-core:2.4.0' 4 | 5 | testCompile (project(':comsat-test-utils')) { 6 | exclude group: 'org.eclipse.jetty', module: '*' 7 | exclude group: 'org.eclipse.jetty.websocket', module: '*' 8 | exclude group: 'org.glassfish.jersey.core', module: '*' 9 | exclude group: 'org.glassfish.jersey.media', module: '*' 10 | exclude group: 'io.undertow', module: '*' 11 | exclude group: 'com.h2database', module: '*' 12 | exclude group: 'org.apache.tomcat', module: '*' 13 | exclude group: 'org.apache.tomcat.embed', module: '*' 14 | exclude group: 'org.apache.httpcomponents', module: '*' 15 | } 16 | } 17 | 18 | if ('true' == "$System.env.CI") { 19 | test { 20 | useJUnit { 21 | includeCategories 'co.paralleluniverse.test.categories.CI' 22 | } 23 | } 24 | } 25 | } 26 | 27 | classes.enabled = false 28 | install.enabled = false 29 | uploadArchives.enabled = false 30 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot-security/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile project(":comsat-spring:comsat-spring-boot") 3 | compile project(":comsat-spring:comsat-spring-security") 4 | } 5 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/build.gradle: -------------------------------------------------------------------------------- 1 | subprojects { 2 | install.enabled = false 3 | uploadArchives.enabled = false 4 | } 5 | 6 | dependencies { 7 | compile ("org.springframework.boot:spring-boot-starter-web:$springBootVer") { 8 | exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat' 9 | } 10 | compile "org.springframework.boot:spring-boot-starter:$springBootVer" 11 | compile project(":comsat-spring:comsat-spring-webmvc") 12 | } 13 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator-async/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.springframework.boot:spring-boot-starter-actuator:$springBootVer" 3 | compile "org.springframework.boot:spring-boot-starter-jdbc:$springBootVer" 4 | compile "org.springframework.boot:spring-boot-starter-security:$springBootVer" 5 | compile "com.h2database:h2:$h2Ver" 6 | compile project(":comsat-spring:comsat-spring-boot-security") 7 | 8 | runtime "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 9 | 10 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 11 | } 12 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator-async/src/main/java/comsat/sample/actuator/HelloWorldService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.actuator; 20 | 21 | import org.springframework.beans.factory.annotation.Autowired; 22 | import org.springframework.stereotype.Component; 23 | 24 | @Component 25 | public class HelloWorldService { 26 | 27 | @Autowired 28 | private ServiceProperties configuration; 29 | 30 | public String getHelloMessage() { 31 | return "Hello " + this.configuration.getName(); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator-async/src/main/java/comsat/sample/actuator/ServiceProperties.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.actuator; 20 | 21 | import org.springframework.boot.context.properties.ConfigurationProperties; 22 | import org.springframework.stereotype.Component; 23 | 24 | @ConfigurationProperties(prefix = "service", ignoreUnknownFields = false) 25 | @Component 26 | public class ServiceProperties { 27 | 28 | private String name = "World"; 29 | 30 | public String getName() { 31 | return this.name; 32 | } 33 | 34 | public void setName(String name) { 35 | this.name = name; 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator-async/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | logging.file: /tmp/logs/app.log 2 | logging.level.org.springframework.security: INFO 3 | management.address: 127.0.0.1 4 | #management.port: 8181 5 | endpoints.shutdown.enabled: true 6 | server.tomcat.basedir: target/tomcat 7 | server.tomcat.access_log_enabled: true 8 | server.tomcat.access_log_pattern: %h %t "%r" %s %b 9 | security.require_ssl: false 10 | service.name: Phil 11 | #http.mappers.json_pretty_print: true 12 | shell.ssh.enabled: true 13 | shell.ssh.port: 2222 14 | #shell.telnet.enabled: false 15 | #shell.telnet.port: 1111 16 | shell.auth: spring 17 | #shell.auth: key 18 | #shell.auth.key.path: ${user.home}/test/id_rsa.pub.pem 19 | #shell.auth: simple 20 | spring.jmx.enabled: true 21 | 22 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator-async/src/test/resources/application-endpoints.properties: -------------------------------------------------------------------------------- 1 | error.path: /oops 2 | management.contextPath: /admin -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator-log4j/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile("org.springframework.boot:spring-boot-starter-actuator:$springBootVer") { 3 | exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging' 4 | } 5 | compile("org.springframework.boot:spring-boot-starter-log4j:$springBootVer") { 6 | exclude group: 'org.slf4j', module: 'slf4j-log4j12' 7 | } 8 | compile project(":comsat-spring:comsat-spring-boot") 9 | 10 | runtime "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 11 | 12 | testCompile("org.springframework.boot:spring-boot-starter-test:$springBootVer") { 13 | exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging' 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator-log4j/src/main/java/comsat/sample/actuator/log4j/HelloWorldService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.actuator.log4j; 20 | 21 | import org.springframework.beans.factory.annotation.Autowired; 22 | import org.springframework.stereotype.Component; 23 | 24 | @Component 25 | public class HelloWorldService { 26 | 27 | @Autowired 28 | private ServiceProperties configuration; 29 | 30 | public String getHelloMessage() { 31 | return "Hello " + this.configuration.getName(); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator-log4j/src/main/java/comsat/sample/actuator/log4j/SampleActuatorApplication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.actuator.log4j; 20 | 21 | import co.paralleluniverse.springframework.boot.autoconfigure.web.FiberSpringBootApplication; 22 | import org.springframework.boot.SpringApplication; 23 | import org.springframework.boot.context.properties.EnableConfigurationProperties; 24 | import org.springframework.scheduling.annotation.EnableAsync; 25 | 26 | @FiberSpringBootApplication 27 | @EnableConfigurationProperties 28 | @EnableAsync 29 | public class SampleActuatorApplication { 30 | public static void main(String[] args) throws Exception, InterruptedException { 31 | SpringApplication.run(SampleActuatorApplication.class, args); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator-log4j/src/main/java/comsat/sample/actuator/log4j/ServiceProperties.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.actuator.log4j; 20 | 21 | import org.springframework.boot.context.properties.ConfigurationProperties; 22 | import org.springframework.stereotype.Component; 23 | 24 | @ConfigurationProperties(prefix = "service", ignoreUnknownFields = false) 25 | @Component 26 | public class ServiceProperties { 27 | 28 | private String name = "World"; 29 | 30 | public String getName() { 31 | return this.name; 32 | } 33 | 34 | public void setName(String name) { 35 | this.name = name; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator-log4j/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | logging.file: /tmp/logs/app.log 2 | #server.port: 8080 3 | #management.port: 8080 4 | management.address: 127.0.0.1 5 | endpoints.shutdown.enabled: true 6 | server.tomcat.basedir: target/tomcat 7 | server.tomcat.access_log_pattern: %h %t "%r" %s %b 8 | security.require_ssl: false 9 | service.name: Phil 10 | shell.ssh.enabled: true 11 | shell.ssh.port: 2222 12 | #shell.telnet.enabled: false 13 | #shell.telnet.port: 1111 14 | shell.auth: spring 15 | #shell.auth: key 16 | #shell.auth.key.path: ${user.home}/test/id_rsa.pub.pem 17 | #shell.auth: simple 18 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator-log4j/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootCategory=INFO, CONSOLE 2 | 3 | PID=???? 4 | LOG_PATTERN=[%d{yyyy-MM-dd HH:mm:ss.SSS}] log4j%X{context} - ${PID} %5p [%t] --- %c{1}: %m%n 5 | 6 | # CONSOLE is set to be a ConsoleAppender using a PatternLayout. 7 | log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender 8 | log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout 9 | log4j.appender.CONSOLE.layout.ConversionPattern=${LOG_PATTERN} 10 | 11 | log4j.category.org.hibernate.validator.internal.util.Version=WARN 12 | log4j.category.org.apache.coyote.http11.Http11NioProtocol=WARN 13 | log4j.category.org.apache.tomcat.util.net.NioSelectorPool=WARN 14 | log4j.category.org.apache.catalina.startup.DigesterFactory=ERROR 15 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator-log4j2/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile("org.springframework.boot:spring-boot-starter-actuator:$springBootVer") { 3 | exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging' 4 | } 5 | compile("org.springframework.boot:spring-boot-starter-log4j:$springBootVer") { 6 | exclude group: 'org.slf4j', module: 'slf4j-log4j12' 7 | } 8 | compile project(":comsat-spring:comsat-spring-boot") 9 | 10 | runtime "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 11 | 12 | testCompile("org.springframework.boot:spring-boot-starter-test:$springBootVer") { 13 | exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging' 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator-log4j2/src/main/java/comsat/sample/actuator/log4j2/HelloWorldService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.actuator.log4j2; 20 | 21 | import co.paralleluniverse.fibers.Fiber; 22 | import co.paralleluniverse.fibers.SuspendExecution; 23 | import org.springframework.beans.factory.annotation.Autowired; 24 | import org.springframework.stereotype.Component; 25 | 26 | @Component 27 | public class HelloWorldService { 28 | @Autowired 29 | private ServiceProperties configuration; 30 | 31 | public String getHelloMessage() throws InterruptedException, SuspendExecution { 32 | Fiber.sleep(10); 33 | return "Hello " + this.configuration.getName(); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator-log4j2/src/main/java/comsat/sample/actuator/log4j2/SampleActuatorLog4J2Application.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.actuator.log4j2; 20 | 21 | import co.paralleluniverse.springframework.boot.autoconfigure.web.FiberSpringBootApplication; 22 | import org.springframework.boot.SpringApplication; 23 | import org.springframework.boot.context.properties.EnableConfigurationProperties; 24 | import org.springframework.scheduling.annotation.EnableAsync; 25 | 26 | @FiberSpringBootApplication 27 | @EnableConfigurationProperties 28 | @EnableAsync 29 | public class SampleActuatorLog4J2Application { 30 | public static void main(String[] args) throws Exception { 31 | SpringApplication.run(SampleActuatorLog4J2Application.class, args); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator-log4j2/src/main/java/comsat/sample/actuator/log4j2/ServiceProperties.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.actuator.log4j2; 20 | 21 | import org.springframework.boot.context.properties.ConfigurationProperties; 22 | import org.springframework.stereotype.Component; 23 | 24 | @ConfigurationProperties(prefix = "service", ignoreUnknownFields = false) 25 | @Component 26 | public class ServiceProperties { 27 | private String name = "World"; 28 | 29 | public String getName() { 30 | return this.name; 31 | } 32 | 33 | public void setName(String name) { 34 | this.name = name; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator-log4j2/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | #logging.file: /tmp/logs/app.log 2 | #server.port: 8080 3 | #management.port: 8080 4 | management.address: 127.0.0.1 5 | endpoints.shutdown.enabled: true 6 | server.tomcat.basedir: target/tomcat 7 | server.tomcat.access_log_pattern: %h %t "%r" %s %b 8 | security.require_ssl: false 9 | service.name: Daniel 10 | shell.ssh.enabled: true 11 | shell.ssh.port: 2222 12 | #shell.telnet.enabled: false 13 | #shell.telnet.port: 1111 14 | shell.auth: spring 15 | #shell.auth: key 16 | #shell.auth.key.path: ${user.home}/test/id_rsa.pub.pem 17 | #shell.auth: simple 18 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator-log4j2/src/main/resources/log4j2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ???? 5 | [%d{yyyy-MM-dd HH:mm:ss.SSS}] log4j2%X{context} - ${sys:PID} %5p [%t] --- %c{1}: %m%n 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator-ui/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.springframework.boot:spring-boot-starter-actuator:$springBootVer" 3 | compile "org.springframework.boot:spring-boot-starter-freemarker:$springBootVer" 4 | compile "org.springframework.boot:spring-boot-starter-security:$springBootVer" 5 | compile "org.jolokia:jolokia-core:$jolokiaVer" 6 | compile project(":comsat-spring:comsat-spring-boot-security") 7 | 8 | runtime "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 9 | 10 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 11 | } 12 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator-ui/src/main/resources/templates/error.ftl: -------------------------------------------------------------------------------- 1 | <#import "/spring.ftl" as spring /> 2 | 3 | 4 | 5 | Error 6 | <#assign home><@spring.url relativeUrl="/"/> 7 | <#assign bootstrap><@spring.url relativeUrl="/css/bootstrap.min.css"/> 8 | 9 | 10 | 11 |
12 | 21 |

Error Page

22 |
${timestamp?datetime}
23 |
24 | There was an unexpected error (type=${error}, status=${status}). 25 |
26 |
${message}
27 |
28 | Please contact the operator with the above information. 29 |
30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator-ui/src/main/resources/templates/home.ftl: -------------------------------------------------------------------------------- 1 | <#import "/spring.ftl" as spring /> 2 | 3 | 4 | 5 | ${title} 6 | <#assign home><@spring.url relativeUrl="/"/> 7 | <#assign bootstrap><@spring.url relativeUrl="/css/bootstrap.min.css"/> 8 | 9 | 10 | 11 |
12 | 21 |

${title}

22 |
${message}
23 |
${date?datetime}
24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.springframework.boot:spring-boot-starter-actuator:$springBootVer" 3 | compile "org.springframework.boot:spring-boot-starter-jdbc:$springBootVer" 4 | compile "org.springframework.boot:spring-boot-starter-security:$springBootVer" 5 | compile "com.h2database:h2:$h2Ver" 6 | compile project(":comsat-spring:comsat-spring-boot-security") 7 | 8 | runtime "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 9 | 10 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 11 | } 12 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator/src/main/java/comsat/sample/actuator/HelloWorldService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.actuator; 20 | 21 | import org.springframework.beans.factory.annotation.Autowired; 22 | import org.springframework.stereotype.Component; 23 | 24 | @Component 25 | public class HelloWorldService { 26 | 27 | @Autowired 28 | private ServiceProperties configuration; 29 | 30 | public String getHelloMessage() { 31 | return "Hello " + this.configuration.getName(); 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator/src/main/java/comsat/sample/actuator/ServiceProperties.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.actuator; 20 | 21 | import org.springframework.boot.context.properties.ConfigurationProperties; 22 | import org.springframework.stereotype.Component; 23 | 24 | @ConfigurationProperties(prefix = "service", ignoreUnknownFields = false) 25 | @Component 26 | public class ServiceProperties { 27 | 28 | private String name = "World"; 29 | 30 | public String getName() { 31 | return this.name; 32 | } 33 | 34 | public void setName(String name) { 35 | this.name = name; 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | logging.file: /tmp/logs/app.log 2 | logging.level.org.springframework.security: INFO 3 | management.address: 127.0.0.1 4 | #management.port: 8181 5 | endpoints.shutdown.enabled: true 6 | server.tomcat.basedir: target/tomcat 7 | server.tomcat.access_log_enabled: true 8 | server.tomcat.access_log_pattern: %h %t "%r" %s %b 9 | security.require_ssl: false 10 | service.name: Phil 11 | #http.mappers.json_pretty_print: true 12 | shell.ssh.enabled: true 13 | shell.ssh.port: 2222 14 | #shell.telnet.enabled: false 15 | #shell.telnet.port: 1111 16 | shell.auth: spring 17 | #shell.auth: key 18 | #shell.auth.key.path: ${user.home}/test/id_rsa.pub.pem 19 | #shell.auth: simple 20 | spring.jmx.enabled: true 21 | 22 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-actuator/src/test/resources/application-endpoints.properties: -------------------------------------------------------------------------------- 1 | error.path: /oops 2 | management.contextPath: /admin -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-data-jpa/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.springframework.boot:spring-boot-starter-data-jpa:$springBootVer" 3 | compile project(":comsat-spring:comsat-spring-boot") 4 | 5 | runtime "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 6 | runtime "org.hsqldb:hsqldb:$hsqlVer" 7 | 8 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 9 | } -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-data-jpa/src/main/java/comsat/sample/data/jpa/SampleDataJpaApplication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.data.jpa; 20 | 21 | import co.paralleluniverse.springframework.boot.autoconfigure.web.FiberSpringBootApplication; 22 | import org.springframework.boot.SpringApplication; 23 | 24 | @FiberSpringBootApplication // This will enable fiber-blocking 25 | public class SampleDataJpaApplication { 26 | public static void main(String[] args) throws Exception { 27 | SpringApplication.run(SampleDataJpaApplication.class, args); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-data-jpa/src/main/java/comsat/sample/data/jpa/domain/Rating.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.data.jpa.domain; 20 | 21 | public enum Rating { 22 | TERRIBLE, POOR, AVERAGE, GOOD, EXCELLENT, 23 | } 24 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-data-jpa/src/main/java/comsat/sample/data/jpa/domain/RatingCount.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.data.jpa.domain; 20 | 21 | import java.io.Serializable; 22 | 23 | public class RatingCount implements Serializable { 24 | 25 | private static final long serialVersionUID = 1L; 26 | 27 | private final Rating rating; 28 | 29 | private final long count; 30 | 31 | public RatingCount(Rating rating, long count) { 32 | this.rating = rating; 33 | this.count = count; 34 | } 35 | 36 | public Rating getRating() { 37 | return this.rating; 38 | } 39 | 40 | public long getCount() { 41 | return this.count; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-data-jpa/src/main/java/comsat/sample/data/jpa/domain/TripType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.data.jpa.domain; 20 | 21 | public enum TripType { 22 | BUSINESS, COUPLES, FAMILY, FRIENDS, SOLO 23 | } 24 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-data-jpa/src/main/java/comsat/sample/data/jpa/service/CityRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.data.jpa.service; 20 | 21 | import org.springframework.data.domain.Page; 22 | import org.springframework.data.domain.Pageable; 23 | import org.springframework.data.repository.Repository; 24 | 25 | import comsat.sample.data.jpa.domain.City; 26 | 27 | interface CityRepository extends Repository { 28 | 29 | Page findAll(Pageable pageable); 30 | 31 | Page findByNameContainingAndCountryContainingAllIgnoringCase(String name, 32 | String country, Pageable pageable); 33 | 34 | City findByNameAndCountryAllIgnoringCase(String name, String country); 35 | } 36 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-data-jpa/src/main/java/comsat/sample/data/jpa/service/CitySearchCriteria.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.data.jpa.service; 20 | 21 | import java.io.Serializable; 22 | 23 | import org.springframework.util.Assert; 24 | 25 | public class CitySearchCriteria implements Serializable { 26 | 27 | private static final long serialVersionUID = 1L; 28 | 29 | private String name; 30 | 31 | public CitySearchCriteria() { 32 | } 33 | 34 | public CitySearchCriteria(String name) { 35 | Assert.notNull(name, "Name must not be null"); 36 | this.name = name; 37 | } 38 | 39 | public String getName() { 40 | return this.name; 41 | } 42 | 43 | public void setName(String name) { 44 | this.name = name; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-data-jpa/src/main/java/comsat/sample/data/jpa/service/CityService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.data.jpa.service; 20 | 21 | import org.springframework.data.domain.Page; 22 | import org.springframework.data.domain.Pageable; 23 | 24 | import comsat.sample.data.jpa.domain.City; 25 | import comsat.sample.data.jpa.domain.HotelSummary; 26 | 27 | public interface CityService { 28 | 29 | Page findCities(CitySearchCriteria criteria, Pageable pageable); 30 | 31 | City getCity(String name, String country); 32 | 33 | Page getHotels(City city, Pageable pageable); 34 | 35 | } 36 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-data-jpa/src/main/java/comsat/sample/data/jpa/service/ReviewRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.data.jpa.service; 20 | 21 | import org.springframework.data.domain.Page; 22 | import org.springframework.data.domain.Pageable; 23 | import org.springframework.data.repository.Repository; 24 | 25 | import comsat.sample.data.jpa.domain.Hotel; 26 | import comsat.sample.data.jpa.domain.Review; 27 | 28 | interface ReviewRepository extends Repository { 29 | 30 | Page findByHotel(Hotel hotel, Pageable pageable); 31 | 32 | Review findByHotelAndIndex(Hotel hotel, int index); 33 | 34 | Review save(Review review); 35 | } 36 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-data-jpa/src/main/java/comsat/sample/data/jpa/service/ReviewsSummary.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.data.jpa.service; 20 | 21 | import comsat.sample.data.jpa.domain.Rating; 22 | 23 | public interface ReviewsSummary { 24 | 25 | long getNumberOfReviewsWithRating(Rating rating); 26 | } 27 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-data-jpa/src/test/resources/application-scratch.properties: -------------------------------------------------------------------------------- 1 | spring.datasource.url: jdbc:hsqldb:mem:scratchdb 2 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jetty-ssl/build.gradle: -------------------------------------------------------------------------------- 1 | configurations.testRuntime { 2 | resolutionStrategy { 3 | force "javax.servlet:javax.servlet-api:3.1.0" 4 | } 5 | } 6 | 7 | dependencies { 8 | compile "org.apache.httpcomponents:httpclient:$httpClientVer" 9 | 10 | compile project(":comsat-spring:comsat-spring-boot") 11 | 12 | runtime "org.springframework.boot:spring-boot-starter-jetty:$springBootVer" 13 | 14 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 15 | } 16 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jetty-ssl/src/main/java/comsat/sample/jetty/SampleJettySslApplication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.jetty; 20 | 21 | import co.paralleluniverse.springframework.boot.autoconfigure.web.FiberSpringBootApplication; 22 | import org.springframework.boot.SpringApplication; 23 | import org.springframework.boot.context.properties.EnableConfigurationProperties; 24 | 25 | @FiberSpringBootApplication // This will enable fiber-blocking 26 | @EnableConfigurationProperties 27 | public class SampleJettySslApplication { 28 | public static void main(String[] args) throws Exception { 29 | SpringApplication.run(SampleJettySslApplication.class, args); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jetty-ssl/src/main/java/comsat/sample/jetty/service/HelloWorldService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.jetty.service; 20 | 21 | import co.paralleluniverse.fibers.Fiber; 22 | import co.paralleluniverse.fibers.SuspendExecution; 23 | import org.springframework.beans.factory.annotation.Value; 24 | import org.springframework.stereotype.Component; 25 | 26 | @Component 27 | public class HelloWorldService { 28 | @Value("${name:World}") 29 | private String name; 30 | 31 | public String getHelloMessage() throws InterruptedException, SuspendExecution { 32 | Fiber.sleep(10); 33 | return "Hello " + this.name; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jetty-ssl/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port = 8443 2 | server.ssl.key-store = classpath:sample.jks 3 | server.ssl.key-store-password = secret 4 | server.ssl.key-password = password -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jetty-ssl/src/main/resources/sample.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jetty-ssl/src/main/resources/sample.jks -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jetty/build.gradle: -------------------------------------------------------------------------------- 1 | configurations.testRuntime { 2 | resolutionStrategy { 3 | force "javax.servlet:javax.servlet-api:3.1.0" 4 | } 5 | } 6 | 7 | dependencies { 8 | compile project(":comsat-spring:comsat-spring-boot") 9 | 10 | runtime "org.springframework.boot:spring-boot-starter-jetty:$springBootVer" 11 | 12 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 13 | } 14 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jetty/src/main/java/comsat/sample/jetty/SampleJettyApplication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.jetty; 20 | 21 | import co.paralleluniverse.springframework.boot.autoconfigure.web.FiberSpringBootApplication; 22 | import org.springframework.boot.SpringApplication; 23 | 24 | @FiberSpringBootApplication // This will enable fiber-blocking 25 | public class SampleJettyApplication { 26 | public static void main(String[] args) throws Exception { 27 | SpringApplication.run(SampleJettyApplication.class, args); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jetty/src/main/java/comsat/sample/jetty/service/HelloWorldService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.jetty.service; 20 | 21 | import co.paralleluniverse.fibers.Fiber; 22 | import co.paralleluniverse.fibers.SuspendExecution; 23 | import org.springframework.beans.factory.annotation.Value; 24 | import org.springframework.stereotype.Component; 25 | 26 | @Component 27 | public class HelloWorldService { 28 | 29 | @Value("${name:World}") 30 | private String name; 31 | 32 | public String getHelloMessage() throws InterruptedException, SuspendExecution { 33 | Fiber.sleep(10); 34 | return "Hello " + this.name; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jetty8-ssl/build.gradle: -------------------------------------------------------------------------------- 1 | configurations.testRuntime { 2 | resolutionStrategy { 3 | eachDependency { 4 | if (it.requested.group == 'org.eclipse.jetty') { 5 | it.useVersion '8.1.15.v20140411' 6 | } 7 | } 8 | } 9 | } 10 | 11 | dependencies { 12 | compile("org.springframework.boot:spring-boot-starter-jetty:$springBootVer") { 13 | exclude group: 'org.eclipse.jetty.websocket', module: '*' 14 | } 15 | compile "org.apache.httpcomponents:httpclient:$httpClientVer" 16 | compile project(":comsat-spring:comsat-spring-boot") 17 | 18 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 19 | } 20 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jetty8-ssl/src/main/java/comsat/sample/jetty/SampleJetty8SslApplication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.jetty; 20 | 21 | import co.paralleluniverse.springframework.boot.autoconfigure.web.FiberSpringBootApplication; 22 | import org.springframework.boot.SpringApplication; 23 | 24 | @FiberSpringBootApplication // This will enable fiber-blocking 25 | public class SampleJetty8SslApplication { 26 | public static void main(String[] args) throws Exception { 27 | SpringApplication.run(SampleJetty8SslApplication.class, args); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jetty8-ssl/src/main/java/comsat/sample/jetty/service/HelloWorldService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.jetty.service; 20 | 21 | import co.paralleluniverse.fibers.Fiber; 22 | import co.paralleluniverse.fibers.SuspendExecution; 23 | import org.springframework.beans.factory.annotation.Value; 24 | import org.springframework.stereotype.Component; 25 | 26 | @Component 27 | public class HelloWorldService { 28 | @Value("${name:World}") 29 | private String name; 30 | 31 | public String getHelloMessage() throws InterruptedException, SuspendExecution { 32 | Fiber.sleep(10); 33 | return "Hello " + this.name; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jetty8-ssl/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port = 8443 2 | server.ssl.key-store = classpath:sample.jks 3 | server.ssl.key-store-password = secret 4 | server.ssl.key-password = password -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jetty8-ssl/src/main/resources/sample.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jetty8-ssl/src/main/resources/sample.jks -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jetty8/build.gradle: -------------------------------------------------------------------------------- 1 | configurations.testRuntime { 2 | resolutionStrategy { 3 | eachDependency { 4 | if (it.requested.group == 'org.eclipse.jetty') { 5 | it.useVersion '8.1.15.v20140411' 6 | } 7 | } 8 | } 9 | } 10 | 11 | dependencies { 12 | compile("org.springframework.boot:spring-boot-starter-jetty:$springBootVer") { 13 | exclude group: 'org.eclipse.jetty.websocket', module: '*' 14 | } 15 | compile project(":comsat-spring:comsat-spring-boot") 16 | 17 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 18 | } 19 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jetty8/src/main/java/comsat/sample/jetty/SampleJetty8Application.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.jetty; 20 | 21 | import co.paralleluniverse.springframework.boot.autoconfigure.web.FiberSpringBootApplication; 22 | import org.springframework.boot.SpringApplication; 23 | 24 | @FiberSpringBootApplication // This will enable fiber-blocking 25 | public class SampleJetty8Application { 26 | public static void main(String[] args) throws Exception { 27 | SpringApplication.run(SampleJetty8Application.class, args); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jetty8/src/main/java/comsat/sample/jetty/service/HelloWorldService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.jetty.service; 20 | 21 | import co.paralleluniverse.fibers.Fiber; 22 | import co.paralleluniverse.fibers.SuspendExecution; 23 | import org.springframework.beans.factory.annotation.Value; 24 | import org.springframework.stereotype.Component; 25 | 26 | @Component 27 | public class HelloWorldService { 28 | @Value("${name:World}") 29 | private String name; 30 | 31 | public String getHelloMessage() throws InterruptedException, SuspendExecution { 32 | Fiber.sleep(10); 33 | return "Hello " + this.name; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jpa/build.gradle: -------------------------------------------------------------------------------- 1 | configurations.testRuntime { 2 | resolutionStrategy { // Forcing earlier Tomcat version as later ones fail with "`getWriter` already called on response" 3 | force 'org.apache.tomcat.embed:tomcat-embed-core:8.0.28' 4 | force 'org.apache.tomcat.embed:tomcat-embed-el:8.0.28' 5 | } 6 | } 7 | 8 | dependencies { 9 | compile "org.springframework:spring-orm:$springVer" 10 | compile "org.springframework.boot:spring-boot-starter-freemarker:$springBootVer" 11 | compile "org.hibernate:hibernate-entitymanager:$hibernateVer" 12 | compile project(":comsat-spring:comsat-spring-boot") 13 | 14 | runtime "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 15 | runtime "org.hsqldb:hsqldb:$hsqlVer" 16 | 17 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 18 | } 19 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jpa/src/main/java/comsat/sample/jpa/SampleJpaApplication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author Dave Syer. 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.jpa; 20 | 21 | import co.paralleluniverse.springframework.boot.autoconfigure.web.FiberSpringBootApplication; 22 | import org.springframework.boot.SpringApplication; 23 | 24 | @FiberSpringBootApplication 25 | public class SampleJpaApplication { 26 | public static void main(String[] args) throws Exception { 27 | SpringApplication.run(SampleJpaApplication.class, args); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jpa/src/main/java/comsat/sample/jpa/repository/JpaNoteRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author Dave Syer. 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.jpa.repository; 20 | 21 | import java.util.List; 22 | 23 | import javax.persistence.EntityManager; 24 | import javax.persistence.PersistenceContext; 25 | 26 | import org.springframework.stereotype.Repository; 27 | 28 | import comsat.sample.jpa.domain.Note; 29 | 30 | @Repository 31 | class JpaNoteRepository implements NoteRepository { 32 | @PersistenceContext 33 | private EntityManager entityManager; 34 | 35 | @Override 36 | public List findAll() { 37 | return this.entityManager.createQuery("SELECT n FROM Note n", Note.class).getResultList(); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jpa/src/main/java/comsat/sample/jpa/repository/JpaTagRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author Dave Syer. 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.jpa.repository; 20 | 21 | import java.util.List; 22 | 23 | import javax.persistence.EntityManager; 24 | import javax.persistence.PersistenceContext; 25 | 26 | import org.springframework.stereotype.Repository; 27 | 28 | import comsat.sample.jpa.domain.Tag; 29 | 30 | @Repository 31 | class JpaTagRepository implements TagRepository { 32 | @PersistenceContext 33 | private EntityManager entityManager; 34 | 35 | @Override 36 | public List findAll() { 37 | return this.entityManager.createQuery("SELECT t FROM Tag t", Tag.class).getResultList(); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jpa/src/main/java/comsat/sample/jpa/repository/NoteRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author Dave Syer. 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.jpa.repository; 20 | 21 | import java.util.List; 22 | 23 | import comsat.sample.jpa.domain.Note; 24 | 25 | public interface NoteRepository { 26 | List findAll(); 27 | } 28 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jpa/src/main/java/comsat/sample/jpa/repository/TagRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author Dave Syer. 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.jpa.repository; 20 | 21 | import java.util.List; 22 | 23 | import comsat.sample.jpa.domain.Tag; 24 | 25 | public interface TagRepository { 26 | List findAll(); 27 | } 28 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jpa/src/main/resources/import.sql: -------------------------------------------------------------------------------- 1 | insert into tag(name) values ('Spring projects') 2 | insert into tag(name) values ('Apache projects') 3 | insert into tag(name) values ('Open source') 4 | 5 | insert into note(title, body) values ('Spring Boot', 'Takes an opinionated view of building production-ready Spring applications.') 6 | insert into note(title, body) values ('Spring Framework', 'Core support for dependency injection, transaction management, web applications, data access, messaging, testing and more.') 7 | insert into note(title, body) values ('Spring Integration', 'Extends the Spring programming model to support the well-known Enterprise Integration Patterns.') 8 | insert into note(title, body) values ('Tomcat', 'Apache Tomcat is an open source software implementation of the Java Servlet and JavaServer Pages technologies.') 9 | 10 | insert into note_tags(notes_id, tags_id) values (1, 1) 11 | insert into note_tags(notes_id, tags_id) values (2, 1) 12 | insert into note_tags(notes_id, tags_id) values (3, 1) 13 | insert into note_tags(notes_id, tags_id) values (1, 3) 14 | insert into note_tags(notes_id, tags_id) values (2, 3) 15 | insert into note_tags(notes_id, tags_id) values (3, 3) 16 | insert into note_tags(notes_id, tags_id) values (4, 2) 17 | insert into note_tags(notes_id, tags_id) values (4, 3) -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-jpa/src/main/resources/templates/index.ftl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | <#list notes as note> 16 | 17 | 18 | 19 | 24 | 25 | 26 | 27 |
TitleBodyTags
${note.title}${note.body} 20 | <#list note.tags as tag> 21 | ${tag.name} 22 | 23 |
28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-servlet/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.springframework.boot:spring-boot-starter-security:$springBootVer" 3 | compile project(":comsat-spring:comsat-spring-boot-security") 4 | compile project(":comsat-servlet") 5 | 6 | runtime "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 7 | 8 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 9 | } -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-tomcat-jsp/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 3 | compile "org.apache.tomcat.embed:tomcat-embed-jasper:$tomcatVer" 4 | compile "org.apache.tomcat.embed:tomcat-embed-jasper:$tomcatVer" 5 | 6 | compile project(":comsat-spring:comsat-spring-boot") 7 | 8 | provided "javax.servlet:jstl:$jstlVer" 9 | 10 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 11 | } 12 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-tomcat-jsp/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.mvc.view.prefix: /WEB-INF/jsp/ 2 | spring.mvc.view.suffix: .jsp 3 | application.message: Hello Phil -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-tomcat-jsp/src/main/webapp/WEB-INF/jsp/welcome.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 | <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> 4 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 5 | 6 | 7 | 8 | 9 | 10 | 11 | Spring URL: ${springUrl} at ${time} 12 |
13 | JSTL URL: ${url} 14 |
15 | Message: ${message} 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-tomcat-multi-connectors/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 3 | compile "org.springframework.boot:spring-boot-starter:$springBootVer" 4 | compile project(":comsat-spring:comsat-spring-boot") 5 | 6 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 7 | } 8 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-tomcat-multi-connectors/src/main/java/comsat/sample/tomcat/web/SampleController.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.tomcat.web; 20 | 21 | import co.paralleluniverse.fibers.Fiber; 22 | import co.paralleluniverse.fibers.SuspendExecution; 23 | import org.springframework.web.bind.annotation.RequestMapping; 24 | import org.springframework.web.bind.annotation.RestController; 25 | 26 | @RestController 27 | public class SampleController { 28 | 29 | @RequestMapping("/hello") 30 | public String helloWorld() throws InterruptedException, SuspendExecution { 31 | Fiber.sleep(10); 32 | return "hello"; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-tomcat-multi-connectors/src/main/resources/keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-tomcat-multi-connectors/src/main/resources/keystore -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-tomcat-ssl/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 3 | compile "org.springframework.boot:spring-boot-starter:$springBootVer" 4 | compile "org.apache.httpcomponents:httpclient:$httpClientVer" 5 | compile "org.yaml:snakeyaml:$snakeYamlVer" 6 | compile project(":comsat-spring:comsat-spring-boot") 7 | 8 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 9 | } 10 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-tomcat-ssl/sample.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-tomcat-ssl/sample.jks -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-tomcat-ssl/src/main/java/comsat/sample/tomcat/SampleTomcatSslApplication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.tomcat; 20 | 21 | import co.paralleluniverse.springframework.boot.autoconfigure.web.FiberSpringBootApplication; 22 | import org.springframework.boot.SpringApplication; 23 | import org.springframework.boot.context.properties.EnableConfigurationProperties; 24 | 25 | @FiberSpringBootApplication // This will enable fiber-blocking 26 | @EnableConfigurationProperties 27 | public class SampleTomcatSslApplication { 28 | public static void main(String[] args) throws Exception { 29 | SpringApplication.run(SampleTomcatSslApplication.class, args); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-tomcat-ssl/src/main/java/comsat/sample/tomcat/web/SampleController.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.tomcat.web; 20 | 21 | import co.paralleluniverse.fibers.Fiber; 22 | import co.paralleluniverse.fibers.SuspendExecution; 23 | import org.springframework.stereotype.Controller; 24 | import org.springframework.web.bind.annotation.RequestMapping; 25 | import org.springframework.web.bind.annotation.ResponseBody; 26 | 27 | @Controller 28 | public class SampleController { 29 | @RequestMapping("/") 30 | @ResponseBody 31 | public String helloWorld() throws InterruptedException, SuspendExecution { 32 | Fiber.sleep(10); 33 | return "Hello, world"; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-tomcat-ssl/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port = 8443 2 | server.ssl.key-store = sample.jks 3 | server.ssl.key-store-password = secret 4 | server.ssl.key-password = password -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-tomcat/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile project(":comsat-spring:comsat-spring-boot") 3 | 4 | runtime "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 5 | 6 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 7 | } 8 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-tomcat/src/main/java/comsat/sample/tomcat/service/HelloWorldService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.tomcat.service; 20 | 21 | import org.springframework.beans.factory.annotation.Value; 22 | import org.springframework.stereotype.Component; 23 | 24 | @Component 25 | public class HelloWorldService { 26 | 27 | @Value("${name:World}") 28 | private String name; 29 | 30 | public String getHelloMessage() { 31 | return "Hello " + this.name; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-tomcat/src/main/resources/public/test.css: -------------------------------------------------------------------------------- 1 | p.{} 2 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-tomcat7-jsp/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-tomcat7-jsp/build.gradle: -------------------------------------------------------------------------------- 1 | configurations.testRuntime { 2 | resolutionStrategy { 3 | eachDependency { 4 | if (it.requested.group == 'org.apache.tomcat.embed') { 5 | it.useVersion '7.0.59' 6 | } 7 | } 8 | } 9 | } 10 | 11 | dependencies { 12 | compile project(":comsat-spring:comsat-spring-boot") 13 | 14 | compile "org.apache.tomcat.embed:tomcat-embed-jasper:$tomcatVer" 15 | 16 | provided "javax.servlet:jstl:$jstlVer" 17 | 18 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 19 | 20 | testRuntime "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 21 | } 22 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-tomcat7-jsp/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.mvc.view.prefix: /WEB-INF/jsp/ 2 | spring.mvc.view.suffix: .jsp 3 | application.message: Hello Phil -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-tomcat7-jsp/src/main/webapp/WEB-INF/jsp/welcome.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 | <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> 4 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 5 | 6 | 7 | 8 | 9 | 10 | 11 | Spring URL: ${springUrl} at ${time} 12 |
13 | JSTL URL: ${url} 14 |
15 | Message: ${message} 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-traditional/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.apache.tomcat.embed:tomcat-embed-jasper:$tomcatVer" 3 | compile project(":comsat-spring:comsat-spring-boot") 4 | 5 | runtime "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 6 | 7 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 8 | } 9 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-traditional/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootCategory=INFO, stdout 2 | 3 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 4 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 5 | log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n 6 | 7 | log4j.category.org.springframework.web=DEBUG 8 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-traditional/src/main/webapp/WEB-INF/views/home.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 2 | 3 | 4 | 5 | 6 | Home 7 | 8 | 9 |

Home

10 | 11 | 12 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-traditional/src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | appServlet 8 | org.springframework.web.servlet.DispatcherServlet 9 | 10 | contextClass 11 | org.springframework.web.context.support.AnnotationConfigWebApplicationContext 12 | 13 | 14 | contextConfigLocation 15 | sample.traditional.config 16 | 17 | 1 18 | 19 | 20 | 21 | appServlet 22 | / 23 | 24 | 25 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-traditional/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Hello

4 | Hello World! 5 | 6 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-traditional/src/test/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.rootCategory=INFO, stdout 2 | 3 | log4j.appender.stdout=org.apache.log4j.ConsoleAppender 4 | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout 5 | log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n 6 | 7 | log4j.category.org.springframework.web=DEBUG 8 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-undertow-ssl/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.apache.httpcomponents:httpclient:$httpClientVer" 3 | compile project(":comsat-spring:comsat-spring-boot") 4 | 5 | runtime "org.springframework.boot:spring-boot-starter-undertow:$springBootVer" 6 | 7 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 8 | } 9 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-undertow-ssl/src/main/java/comsat/sample/undertow/SampleUndertowSslApplication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.undertow; 20 | 21 | import co.paralleluniverse.springframework.boot.autoconfigure.web.FiberSpringBootApplication; 22 | import org.springframework.boot.SpringApplication; 23 | 24 | @FiberSpringBootApplication // This will enable fiber-blocking 25 | public class SampleUndertowSslApplication { 26 | public static void main(String[] args) throws Exception { 27 | SpringApplication.run(SampleUndertowSslApplication.class, args); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-undertow-ssl/src/main/java/comsat/sample/undertow/service/HelloWorldService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.undertow.service; 20 | 21 | import co.paralleluniverse.fibers.Fiber; 22 | import co.paralleluniverse.fibers.SuspendExecution; 23 | import org.springframework.beans.factory.annotation.Value; 24 | import org.springframework.stereotype.Component; 25 | 26 | @Component 27 | public class HelloWorldService { 28 | @Value("${name:World}") 29 | private String name; 30 | 31 | public String getHelloMessage() throws InterruptedException, SuspendExecution { 32 | Fiber.sleep(10); 33 | return "Hello " + this.name; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-undertow-ssl/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port = 8443 2 | server.ssl.key-store = classpath:sample.jks 3 | server.ssl.key-store-password = secret 4 | server.ssl.key-password = password -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-undertow-ssl/src/main/resources/sample.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-undertow-ssl/src/main/resources/sample.jks -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-undertow/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile project(":comsat-spring:comsat-spring-boot") 3 | 4 | runtime "org.springframework.boot:spring-boot-starter-undertow:$springBootVer" 5 | 6 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 7 | } 8 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-undertow/src/main/java/comsat/sample/undertow/SampleUndertowApplication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.undertow; 20 | 21 | import org.springframework.boot.context.properties.EnableConfigurationProperties; 22 | import org.springframework.scheduling.annotation.EnableAsync; 23 | 24 | import co.paralleluniverse.springframework.boot.autoconfigure.web.FiberSpringBootApplication; 25 | import org.springframework.boot.SpringApplication; 26 | 27 | @FiberSpringBootApplication // This will enable fiber-blocking 28 | @EnableConfigurationProperties 29 | @EnableAsync 30 | public class SampleUndertowApplication { 31 | public static void main(String[] args) throws Exception { 32 | SpringApplication.run(SampleUndertowApplication.class, args); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-undertow/src/main/java/comsat/sample/undertow/service/HelloWorldService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.undertow.service; 20 | 21 | import co.paralleluniverse.fibers.Fiber; 22 | import co.paralleluniverse.fibers.SuspendExecution; 23 | import org.springframework.beans.factory.annotation.Value; 24 | import org.springframework.stereotype.Component; 25 | 26 | @Component 27 | public class HelloWorldService { 28 | @Value("${name:World}") 29 | private String name; 30 | 31 | public String getHelloMessage() throws InterruptedException, SuspendExecution { 32 | Fiber.sleep(10); 33 | return "Hello " + this.name; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-freemarker/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.springframework.boot:spring-boot-starter-freemarker:$springBootVer" 3 | compile project(":comsat-spring:comsat-spring-boot") 4 | 5 | runtime "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 6 | 7 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 8 | } 9 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-freemarker/src/main/java/comsat/sample/freemarker/SampleWebFreeMarkerApplication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.freemarker; 20 | 21 | import co.paralleluniverse.springframework.boot.autoconfigure.web.FiberSpringBootApplication; 22 | import org.springframework.boot.SpringApplication; 23 | 24 | @FiberSpringBootApplication // This will enable fiber-blocking 25 | public class SampleWebFreeMarkerApplication { 26 | public static void main(String[] args) throws Exception { 27 | SpringApplication.run(SampleWebFreeMarkerApplication.class, args); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-freemarker/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | application.message: Hello, Andy -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-freemarker/src/main/resources/templates/error.ftl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Something went wrong: ${status} ${error} 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-freemarker/src/main/resources/templates/welcome.ftl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Date: ${time?date} 7 |
8 | Time: ${time?time} 9 |
10 | Message: ${message} 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-groovy-templates/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.springframework.boot:spring-boot-starter-groovy-templates:$springBootVer" 3 | compile project(":comsat-spring:comsat-spring-boot") 4 | 5 | runtime "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 6 | 7 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 8 | } 9 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-groovy-templates/src/main/java/comsat/sample/ui/MessageRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.ui; 20 | 21 | public interface MessageRepository { 22 | 23 | Iterable findAll(); 24 | 25 | Message save(Message message); 26 | 27 | Message findMessage(Long id); 28 | } 29 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-groovy-templates/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | # Allow templates to be reloaded at dev time 2 | spring.groovy.template.cache: false 3 | logging.level.org.springframework.web: INFO -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-groovy-templates/src/main/resources/templates/layout.tpl: -------------------------------------------------------------------------------- 1 | html { 2 | head { 3 | title(title) 4 | link(rel:'stylesheet', href:'/css/bootstrap.min.css') 5 | } 6 | body { 7 | div(class:'container') { 8 | div(class:'navbar') { 9 | div(class:'navbar-inner') { 10 | a(class:'brand', 11 | href:'http://beta.groovy-lang.org/docs/groovy-2.3.0/html/documentation/markup-template-engine.html') { 12 | yield 'Groovy - Layout' 13 | } 14 | ul(class:'nav') { 15 | li { 16 | a(href:'/') { 17 | yield 'Messages' 18 | } 19 | } 20 | } 21 | } 22 | } 23 | h1(title) 24 | div { content() } 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-groovy-templates/src/main/resources/templates/messages/form.tpl: -------------------------------------------------------------------------------- 1 | layout 'layout.tpl', title: 'Messages : Create', 2 | content: contents { 3 | div (class:'container') { 4 | form (id:'messageForm', action:'/', method:'post') { 5 | if (formErrors) { 6 | div(class:'alert alert-error') { 7 | formErrors.each { error -> 8 | p error.defaultMessage 9 | } 10 | } 11 | } 12 | div (class:'pull-right') { 13 | a (href:'/', 'Messages') 14 | } 15 | label (for:'summary', 'Summary') 16 | input (name:'summary', type:'text', value:message.summary?:'', 17 | class:fieldErrors?.summary ? 'field-error' : 'none') 18 | label (for:'text', 'Message') 19 | textarea (name:'text', class:fieldErrors?.text ? 'field-error' : 'none', message.text?:'') 20 | div (class:'form-actions') { 21 | input (type:'submit', value:'Create') 22 | } 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-groovy-templates/src/main/resources/templates/messages/list.tpl: -------------------------------------------------------------------------------- 1 | layout 'layout.tpl', title: 'Messages : View all', 2 | content: contents { 3 | div(class:'container') { 4 | div(class:'pull-right') { 5 | a(href:'/?form', 'Create Message') 6 | } 7 | table(class:'table table-bordered table-striped') { 8 | thead { 9 | tr { 10 | td 'ID' 11 | td 'Created' 12 | td 'Summary' 13 | } 14 | } 15 | tbody { 16 | if (messages.empty) { tr { td(colspan:'3', 'No Messages' ) } } 17 | messages.each { message -> 18 | tr { 19 | td message.id 20 | td "${message.created}" 21 | td { 22 | a(href:"/${message.id}") { 23 | yield message.summary 24 | } 25 | } 26 | } 27 | } 28 | } 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-groovy-templates/src/main/resources/templates/messages/view.tpl: -------------------------------------------------------------------------------- 1 | layout 'layout.tpl', title:'Messages : View', 2 | content: contents { 3 | div(class:'container') { 4 | if (globalMessage) { 5 | div (class:'alert alert-success', globalMessage) 6 | } 7 | div(class:'pull-right') { 8 | a(href:'/', 'Messages') 9 | } 10 | dl { 11 | dt 'ID' 12 | dd(id:'id', message.id) 13 | dt 'Date' 14 | dd(id:'created', "${message.created}") 15 | dt 'Summary' 16 | dd(id:'summary', message.summary) 17 | dt 'Message' 18 | dd(id:'text', message.text) 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-jsp/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.apache.tomcat.embed:tomcat-embed-jasper:$tomcatVer" 3 | compile "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 4 | 5 | compile project(":comsat-spring:comsat-spring-boot") 6 | 7 | provided("javax.servlet:jstl:$jstlVer") 8 | 9 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 10 | } 11 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-jsp/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.mvc.view.prefix: /WEB-INF/jsp/ 2 | spring.mvc.view.suffix: .jsp 3 | application.message: Hello Phil -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-jsp/src/main/webapp/WEB-INF/jsp/welcome.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 | <%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%> 4 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 5 | 6 | 7 | 8 | 9 | 10 | 11 | Spring URL: ${springUrl} at ${time} 12 |
13 | JSTL URL: ${url} 14 |
15 | Message: ${message} 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-method-security/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.springframework.boot:spring-boot-starter-actuator:$springBootVer" 3 | compile "org.springframework.boot:spring-boot-starter-security:$springBootVer" 4 | compile "org.springframework.boot:spring-boot-starter-thymeleaf:$springBootVer" 5 | compile project(":comsat-spring:comsat-spring-boot-security") 6 | 7 | runtime "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 8 | 9 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 10 | } 11 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-method-security/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.thymeleaf.cache: false 2 | logging.level.org.springframework.security: INFO -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-method-security/src/main/resources/templates/access.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Error 5 | 7 | 8 | 9 |
10 | 20 |

Title

21 |

Access denied: 22 | you do not have permission for that resource

23 |
Fake content
24 |
Please contact the operator with the above information.
25 |
26 | 27 | 28 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-method-security/src/main/resources/templates/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Error 5 | 7 | 8 | 9 |
10 | 20 |

Title

21 |
July 11, 22 | 2012 2:17:16 PM CDT
23 |
24 | There was an unexpected error (type=Bad, status=500). 25 |
26 |
Fake content
27 |
28 | Please contact the operator with the above information. 29 |
30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-method-security/src/main/resources/templates/home.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Title 5 | 7 | 8 | 9 |
10 | 20 |

Title

21 |
Fake content
22 |
July 11, 23 | 2012 2:17:16 PM CDT
24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-method-security/src/main/resources/templates/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Login 5 | 7 | 8 | 9 |
10 | 19 |
20 |

You have been logged out

21 |

There was an error, please try again

22 |

Login with Username and Password

23 |
24 |
25 | 26 | 27 |
28 | 30 |
31 |
32 |
33 | 34 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-mustache/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.springframework.boot:spring-boot-starter-mustache:$springBootVer" 3 | compile project(":comsat-spring:comsat-spring-boot") 4 | 5 | runtime "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 6 | 7 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 8 | } 9 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-mustache/src/main/java/comsat/sample/mustache/SampleWebMustacheApplication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.mustache; 20 | 21 | import co.paralleluniverse.springframework.boot.autoconfigure.web.FiberSpringBootApplication; 22 | import org.springframework.boot.SpringApplication; 23 | 24 | @FiberSpringBootApplication // This will enable fiber-blocking 25 | public class SampleWebMustacheApplication { 26 | public static void main(String[] args) throws Exception { 27 | SpringApplication.run(SampleWebMustacheApplication.class, args); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-mustache/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | application.message: Hello, Andy -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-mustache/src/main/resources/templates/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Something went wrong: {{status}} {{error}} 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-mustache/src/main/resources/templates/welcome.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Date: {{time.date}} 7 |
8 | Time: {{time.time}} 9 |
10 | Message: {{message}} 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-secure-custom/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.springframework.boot:spring-boot-starter-actuator:$springBootVer" 3 | compile "org.springframework.boot:spring-boot-starter-security:$springBootVer" 4 | compile "org.springframework.boot:spring-boot-starter-thymeleaf:$springBootVer" 5 | compile "org.apache.httpcomponents:httpclient:$httpClientVer" 6 | compile project(":comsat-spring:comsat-spring-boot-security") 7 | 8 | runtime "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 9 | 10 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 11 | } 12 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-secure-custom/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.thymeleaf.cache: false 2 | security.basic.enabled: false 3 | logging.level.org.springframework.security: INFO -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-secure-custom/src/main/resources/templates/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Error 5 | 7 | 8 | 9 |
10 | 20 |

Title

21 |
July 11, 22 | 2012 2:17:16 PM CDT
23 |
24 | There was an unexpected error (type=Bad, status=500). 25 |
26 |
Fake content
27 |
28 | Please contact the operator with the above information. 29 |
30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-secure-custom/src/main/resources/templates/home.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Title 5 | 7 | 8 | 9 |
10 | 20 |

Title

21 |
Fake content
22 |
July 11, 23 | 2012 2:17:16 PM CDT
24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-secure-custom/src/main/resources/templates/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Login 5 | 7 | 8 | 9 |
10 | 19 |
20 |

You have been logged out

21 |

There was an error, please try again

22 |

Login with Username and Password

23 |
24 |
25 | 26 | 27 |
28 | 30 |
31 |
32 |
33 | 34 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-secure-jdbc/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.springframework.boot:spring-boot-starter-security:$springBootVer" 3 | compile "org.springframework.boot:spring-boot-starter-thymeleaf:$springBootVer" 4 | compile "org.springframework.boot:spring-boot-starter-jdbc:$springBootVer" 5 | compile "org.apache.httpcomponents:httpclient:$httpClientVer" 6 | compile "com.h2database:h2:$h2Ver" 7 | compile project(":comsat-spring:comsat-spring-boot-security") 8 | 9 | runtime "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 10 | 11 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 12 | } 13 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-secure-jdbc/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | debug: true 2 | spring.thymeleaf.cache: false 3 | security.basic.enabled: false 4 | logging.level.org.springframework.security: INFO -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-secure-jdbc/src/main/resources/data.sql: -------------------------------------------------------------------------------- 1 | insert into users (username, password, enabled) values ('user', 'user', true); 2 | 3 | insert into authorities (username, authority) values ('user', 'ROLE_ADMIN'); -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-secure-jdbc/src/main/resources/schema.sql: -------------------------------------------------------------------------------- 1 | create table users ( 2 | username varchar(256), 3 | password varchar(256), 4 | enabled boolean 5 | ); 6 | 7 | create table authorities ( 8 | username varchar(256), 9 | authority varchar(256) 10 | ); -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-secure-jdbc/src/main/resources/templates/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Error 5 | 7 | 8 | 9 |
10 | 20 |

Title

21 |
July 11, 22 | 2012 2:17:16 PM CDT
23 |
24 | There was an unexpected error (type=Bad, status=500). 25 |
26 |
Fake content
27 |
28 | Please contact the operator with the above information. 29 |
30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-secure-jdbc/src/main/resources/templates/home.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Title 5 | 7 | 8 | 9 |
10 | 20 |

Title

21 |
Fake content
22 |
July 11, 23 | 2012 2:17:16 PM CDT
24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-secure-jdbc/src/main/resources/templates/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Login 5 | 7 | 8 | 9 |
10 | 19 |
20 |

You have been logged out

21 |

There was an error, please try again

22 |

Login with Username and Password

23 |
24 |
25 | 26 | 27 |
28 | 30 |
31 |
32 |
33 | 34 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-secure/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.springframework.boot:spring-boot-starter-actuator:$springBootVer" 3 | compile "org.springframework.boot:spring-boot-starter-security:$springBootVer" 4 | compile "org.springframework.boot:spring-boot-starter-thymeleaf:$springBootVer" 5 | compile "org.apache.httpcomponents:httpclient:$httpClientVer" 6 | compile project(":comsat-spring:comsat-spring-boot-security") 7 | 8 | runtime "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 9 | 10 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 11 | } 12 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-secure/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | spring.thymeleaf.cache: false 2 | security.basic.enabled: false 3 | # demo only: 4 | security.user.password: password 5 | logging.level.org.springframework.security: INFO -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-secure/src/main/resources/schema.sql: -------------------------------------------------------------------------------- 1 | create table users ( 2 | username varchar(256), 3 | password varchar(256), 4 | enabled boolean 5 | ); 6 | 7 | create table authorities ( 8 | username varchar(256), 9 | authority varchar(256) 10 | ); -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-secure/src/main/resources/templates/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Error 5 | 7 | 8 | 9 |
10 | 20 |

Title

21 |
July 11, 22 | 2012 2:17:16 PM CDT
23 |
24 | There was an unexpected error (type=Bad, status=500). 25 |
26 |
Fake content
27 |
28 | Please contact the operator with the above information. 29 |
30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-secure/src/main/resources/templates/home.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Title 5 | 7 | 8 | 9 |
10 | 20 |

Title

21 |
Fake content
22 |
July 11, 23 | 2012 2:17:16 PM CDT
24 |
25 | 26 | 27 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-secure/src/main/resources/templates/login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Login 5 | 7 | 8 | 9 |
10 | 19 |
20 |

You have been logged out

21 |

There was an error, please try again

22 |

Login with Username and Password

23 |
24 |
25 | 26 | 27 |
28 | 30 |
31 |
32 |
33 | 34 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-static/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 3 | compile "org.springframework.boot:spring-boot-starter-actuator:$springBootVer" 4 | compile "org.webjars:bootstrap:$bootstrapVer" 5 | compile "org.webjars:jquery:$jqueryVer" 6 | compile project(":comsat-spring:comsat-spring-boot") 7 | 8 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 9 | } 10 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-static/src/main/webapp/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Static 5 | 6 | 8 | 9 | 10 | 12 | 29 |
30 |

Home

31 |

Some static content

32 |

33 | Go » 34 |

35 |
36 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-ui/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.springframework.boot:spring-boot-starter-thymeleaf:$springBootVer" 3 | compile "org.hibernate:hibernate-validator:$hibernateValidatorVer" 4 | compile project(":comsat-spring:comsat-spring-boot") 5 | 6 | runtime "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 7 | 8 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 9 | } 10 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-ui/src/main/java/comsat/sample/ui/MessageRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author Rob Winch. 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.ui; 20 | 21 | /** 22 | * @author Rob Winch 23 | */ 24 | public interface MessageRepository { 25 | 26 | Iterable findAll(); 27 | 28 | Message save(Message message); 29 | 30 | Message findMessage(Long id); 31 | } 32 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-ui/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | # Allow Thymeleaf templates to be reloaded at dev time 2 | spring.thymeleaf.cache: false 3 | server.tomcat.access_log_enabled: true 4 | server.tomcat.basedir: target/tomcat -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-ui/src/main/resources/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-ui/src/main/resources/favicon.ico -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-ui/src/main/resources/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-ui/src/main/resources/templates/layout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Layout 5 | 8 | 9 | 10 |
11 | 26 |

Layout

27 |
28 | Fake content 29 |
30 |
31 | 32 | 33 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-ui/src/main/resources/templates/messages/view.html: -------------------------------------------------------------------------------- 1 | 4 | 5 | Messages : View 6 | 7 | 8 |

Messages : Create

9 |
11 |
14 | Some Success message 15 |
16 | 21 |
22 |
ID
23 |
123
24 |
Date
25 |
27 | July 11, 2012 2:17:16 PM CDT 28 |
29 |
Summary
30 |
32 | A short summary... 33 |
34 |
Message
35 |
37 | A detailed message that is longer than the summary. 38 |
39 |
40 |
41 | 42 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-velocity/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.springframework.boot:spring-boot-starter-velocity:$springBootVer" 3 | compile project(":comsat-spring:comsat-spring-boot") 4 | 5 | runtime "org.springframework.boot:spring-boot-starter-tomcat:$springBootVer" 6 | 7 | testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVer" 8 | } 9 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-velocity/src/main/java/comsat/sample/velocity/SampleWebVelocityApplication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (c) 2013-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | /* 15 | * Based on the corresponding class in Spring Boot Samples. 16 | * Copyright the original author(s). 17 | * Released under the ASF 2.0 license. 18 | */ 19 | package comsat.sample.velocity; 20 | 21 | import co.paralleluniverse.springframework.boot.autoconfigure.web.FiberSpringBootApplication; 22 | import org.springframework.boot.SpringApplication; 23 | 24 | @FiberSpringBootApplication // This will enable fiber-blocking 25 | public class SampleWebVelocityApplication { 26 | public static void main(String[] args) throws Exception { 27 | SpringApplication.run(SampleWebVelocityApplication.class, args); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-velocity/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | application.message: Hello, Andy 2 | spring.velocity.dateToolAttribute: dateTool -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-velocity/src/main/resources/templates/error.vm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Something went wrong: ${status} ${error} 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-boot/comsat-spring-boot-sample-web-velocity/src/main/resources/templates/welcome.vm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Time: 7 |
    8 |
  • From controller: $time
  • 9 |
  • From velocity: $dateTool
  • 10 |
11 | Message: $message 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-security/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.springframework.security:spring-security-core:$springSecurityVer" 3 | compile "org.springframework.security:spring-security-config:$springSecurityVer" 4 | compile "org.springframework.security:spring-security-web:$springSecurityVer" 5 | } -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-security/src/main/java/co/paralleluniverse/springframework/security/config/FiberSecurityContextHolderConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (C) 2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | package co.paralleluniverse.springframework.security.config; 15 | 16 | import org.springframework.context.annotation.Configuration; 17 | import org.springframework.security.core.context.SecurityContextHolder; 18 | 19 | @Configuration 20 | public class FiberSecurityContextHolderConfig { 21 | public FiberSecurityContextHolderConfig() { 22 | SecurityContextHolder.setStrategyName(SecurityContextHolder.MODE_INHERITABLETHREADLOCAL); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /comsat-spring/comsat-spring-webmvc/build.gradle: -------------------------------------------------------------------------------- 1 | dependencies { 2 | compile "org.springframework:spring-webmvc:$springVer" 3 | } -------------------------------------------------------------------------------- /comsat-test-utils/src/main/java/co/paralleluniverse/embedded/containers/EmbeddedServer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (C) 2014-2015, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | package co.paralleluniverse.embedded.containers; 15 | 16 | import javax.servlet.Servlet; 17 | import javax.servlet.ServletContextListener; 18 | 19 | public interface EmbeddedServer { 20 | EmbeddedServer setPort(int port); 21 | EmbeddedServer setNumThreads(int nThreads); 22 | EmbeddedServer setMaxConnections(int maxConn); 23 | ServletDesc addServlet(String name, Class servletClass, String mapping); 24 | void addServletContextListener(Class scl); 25 | void setResourceBase(String resourceBaseUrl); 26 | 27 | void enableWebsockets() throws Exception; 28 | void start() throws Exception; 29 | void stop() throws Exception; 30 | 31 | interface ServletDesc { 32 | ServletDesc setInitParameter(String name, String value); 33 | ServletDesc setLoadOnStartup(int load); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /comsat-test-utils/src/main/java/co/paralleluniverse/embedded/db/H2JdbcDatasource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (C) 2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | package co.paralleluniverse.embedded.db; 15 | 16 | import org.h2.jdbcx.JdbcDataSource; 17 | 18 | public class H2JdbcDatasource extends JdbcDataSource { 19 | public H2JdbcDatasource() { 20 | this("jdbc:h2:./build/h2default"); 21 | } 22 | 23 | public H2JdbcDatasource(String url) { 24 | setURL(url); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /comsat-test-utils/src/main/java/co/paralleluniverse/test/categories/CI.java: -------------------------------------------------------------------------------- 1 | /* 2 | * COMSAT 3 | * Copyright (C) 2014, Parallel Universe Software Co. All rights reserved. 4 | * 5 | * This program and the accompanying materials are dual-licensed under 6 | * either the terms of the Eclipse Public License v1.0 as published by 7 | * the Eclipse Foundation 8 | * 9 | * or (per the licensee's choosing) 10 | * 11 | * under the terms of the GNU Lesser General Public License version 3.0 12 | * as published by the Free Software Foundation. 13 | */ 14 | package co.paralleluniverse.test.categories; 15 | 16 | /** 17 | * Tests that should be run by Continuous Integration 18 | * 19 | * @author fabio 20 | */ 21 | public interface CI {} -------------------------------------------------------------------------------- /comsat-test-war/TestServlet.java: -------------------------------------------------------------------------------- 1 | package co.paralleluniverse.examples.test; 2 | 3 | import java.io.IOException; 4 | import java.io.PrintWriter; 5 | import javax.servlet.ServletException; 6 | import javax.servlet.annotation.WebServlet; 7 | import javax.servlet.http.HttpServlet; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | 11 | /** 12 | * This servlet is used by the RS-client tests 13 | */ 14 | @WebServlet(urlPatterns = "/test") 15 | public class TestServlet extends HttpServlet { 16 | @Override 17 | protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { 18 | try (PrintWriter out = resp.getWriter()) { 19 | out.print("testGet"); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /comsat-test-war/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'war' 2 | 3 | install.enabled = false 4 | uploadArchives.enabled = false 5 | 6 | dependencies { 7 | compile project(':comsat-servlet') 8 | } 9 | -------------------------------------------------------------------------------- /comsat-test-war/src/main/webapp/META-INF/context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 16 | 23 | 24 | -------------------------------------------------------------------------------- /comsat-test-war/src/main/webapp/WEB-INF/jetty-env.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | jdbc/linkds 7 | jdbc/globalds 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | jdbc/webxmlds 16 | 17 | 18 | 19 | jdbc/linkds 20 | 21 | 10 22 | 23 | 24 | 25 | jdbc/fiberds 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /docs/_config.yml: -------------------------------------------------------------------------------- 1 | markdown: enhanced_kramdown 2 | highlighter: pygments 3 | lsi: false 4 | safe: false 5 | baseurl: /comsat 6 | 7 | # Site globals used throughout docs. 8 | project: Comsat 9 | version: 0.7.0 10 | github: puniverse/comsat 11 | google_group: "https://groups.google.com/forum/#!forum/comsat-user" 12 | tagline: "Scalable web application libraries" 13 | ga_tracking_id: UA-25007319-2 14 | code_dir: "../" 15 | -------------------------------------------------------------------------------- /docs/_includes/footer.html: -------------------------------------------------------------------------------- 1 | 15 | -------------------------------------------------------------------------------- /docs/_includes/header.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | 5 | 20 |
21 |
22 | -------------------------------------------------------------------------------- /docs/_includes/meta.html: -------------------------------------------------------------------------------- 1 | 2 | {% if page.title and page.description %} 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | {% endif %} -------------------------------------------------------------------------------- /docs/_includes/top-nav.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |

documentation

5 |

{{site.project}}

6 | View on Github 7 | API 8 | File a bug 9 | Discuss 10 |
11 |
12 | 13 | -------------------------------------------------------------------------------- /docs/_layouts/default.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {% include head.html %} 5 | 6 | 7 | ֿ{% include header.html %} 8 | 9 |
10 |
11 |
12 | 15 | 16 |
17 |
18 | {{content}} 19 |
20 |
21 |
22 |
23 |
24 | 25 | {% include top-nav.html %} 26 | 27 | {% include footer.html %} 28 | 29 | 30 | -------------------------------------------------------------------------------- /docs/_plugins/domain_name.filter.rb: -------------------------------------------------------------------------------- 1 | # Strips https?:// from a URL. 2 | # Usage: {{ page.url | domain_name }} 3 | # https://github.com/LawrenceWoodman/domain_name-liquid_filter 4 | 5 | require 'liquid' 6 | 7 | module DomainNameFilter 8 | 9 | # Return the url's domain name 10 | def domain_name(url) 11 | return url.sub(%r{(https?://){0,1}([^/]*)(/.*$){0,1}}i, '\\2\\3') 12 | end 13 | 14 | end 15 | 16 | Liquid::Template.register_filter(DomainNameFilter) 17 | -------------------------------------------------------------------------------- /docs/_plugins/exclude_toc.filter.rb: -------------------------------------------------------------------------------- 1 | require 'nokogiri' 2 | 3 | module ExcludeTocFilter 4 | def exclude_toc(html) 5 | doc = Nokogiri::HTML(html) 6 | doc.css('#markdown-toc').remove 7 | doc.to_html 8 | end 9 | end 10 | Liquid::Template.register_filter(ExcludeTocFilter) -------------------------------------------------------------------------------- /docs/_plugins/include_external.rb: -------------------------------------------------------------------------------- 1 | module Jekyll 2 | class IncludeExternal < Liquid::Tag 3 | 4 | def initialize(tag_name, text, tokens) 5 | @text = text 6 | 7 | begin 8 | f = File.new(@text.strip, "r") 9 | @output = f.read() 10 | rescue => e 11 | @output = "
IncludeExternal error: #{e}
" 12 | ensure 13 | f.close unless f.nil? 14 | end 15 | 16 | super 17 | end 18 | 19 | def render(context) 20 | @output 21 | end 22 | end 23 | end 24 | 25 | Liquid::Template.register_tag('include_external', Jekyll::IncludeExternal) 26 | -------------------------------------------------------------------------------- /docs/_plugins/sorted_for.rb: -------------------------------------------------------------------------------- 1 | module Jekyll 2 | class SortedForTag < Liquid::For 3 | def render(context) 4 | sorted_collection = context[@collection_name].dup 5 | sorted_collection.reject! { |i| i.to_liquid[@attributes['sort_by']].nil? } 6 | sorted_collection.sort_by! { |i| i.to_liquid[@attributes['sort_by']] } 7 | 8 | sorted_collection_name = "#{@collection_name}_sorted".sub('.', '_') 9 | context[sorted_collection_name] = sorted_collection 10 | @collection_name = sorted_collection_name 11 | 12 | super 13 | end 14 | 15 | def end_tag 16 | 'endsorted_for' 17 | end 18 | end 19 | end 20 | 21 | Liquid::Template.register_tag('sorted_for', Jekyll::SortedForTag) -------------------------------------------------------------------------------- /docs/_plugins/svg_support.rb: -------------------------------------------------------------------------------- 1 | require 'webrick' 2 | include WEBrick 3 | 4 | WEBrick::HTTPUtils::DefaultMimeTypes.store 'svg', 'image/svg+xml' 5 | -------------------------------------------------------------------------------- /docs/css/fonts/FairpNarMedIta.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/css/fonts/FairpNarMedIta.eot -------------------------------------------------------------------------------- /docs/css/fonts/FairpNarMedIta.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/css/fonts/FairpNarMedIta.otf -------------------------------------------------------------------------------- /docs/css/fonts/FairpNarMedIta.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/css/fonts/FairpNarMedIta.ttf -------------------------------------------------------------------------------- /docs/css/fonts/FairpNarMedIta.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/css/fonts/FairpNarMedIta.woff -------------------------------------------------------------------------------- /docs/css/pygments/linenos.css: -------------------------------------------------------------------------------- 1 | .highlight pre { 2 | font-family: "Inconsolata", Monaco, Courier, monospace; 3 | font-size: .65em; 4 | border: 1px solid #efefef; 5 | border-left: 2em solid #efefef; 6 | position: relative; 7 | margin: 1em 0; 8 | } 9 | .highlight pre code { 10 | counter-reset: linenumbers; 11 | position: relative; 12 | overflow: auto; 13 | } 14 | 15 | .highlight pre code > span:before { 16 | font-size: .9em; 17 | color: #aaa; 18 | content: counter(linenumbers); 19 | counter-increment: linenumbers; 20 | left: -5.5ex; 21 | position: absolute; 22 | text-align: right; 23 | width: 3.5ex; 24 | -webkit-touch-callout: none; 25 | -webkit-user-select: none; 26 | -khtml-user-select: none; 27 | -moz-user-select: none; 28 | -ms-user-select: none; 29 | user-select: none; 30 | } 31 | -------------------------------------------------------------------------------- /docs/images/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/arrow.png -------------------------------------------------------------------------------- /docs/images/arrow2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/arrow2.png -------------------------------------------------------------------------------- /docs/images/arrow3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/arrow3.png -------------------------------------------------------------------------------- /docs/images/arrow4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/arrow4.png -------------------------------------------------------------------------------- /docs/images/arrow5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/arrow5.png -------------------------------------------------------------------------------- /docs/images/arrow6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/arrow6.png -------------------------------------------------------------------------------- /docs/images/bg-docs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/bg-docs.png -------------------------------------------------------------------------------- /docs/images/bg-orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/bg-orange.png -------------------------------------------------------------------------------- /docs/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/bg.png -------------------------------------------------------------------------------- /docs/images/comsat_big.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/comsat_big.png -------------------------------------------------------------------------------- /docs/images/cross.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/cross.png -------------------------------------------------------------------------------- /docs/images/download-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/download-icon.png -------------------------------------------------------------------------------- /docs/images/engine.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/engine.png -------------------------------------------------------------------------------- /docs/images/galaxy_big.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/galaxy_big.png -------------------------------------------------------------------------------- /docs/images/galaxy_shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/galaxy_shadow.png -------------------------------------------------------------------------------- /docs/images/icon-doc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon-doc.png -------------------------------------------------------------------------------- /docs/images/icon-doc1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon-doc1.png -------------------------------------------------------------------------------- /docs/images/icon-doc11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon-doc11.png -------------------------------------------------------------------------------- /docs/images/icon-doc2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon-doc2.png -------------------------------------------------------------------------------- /docs/images/icon-doc21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon-doc21.png -------------------------------------------------------------------------------- /docs/images/icon-doc3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon-doc3.png -------------------------------------------------------------------------------- /docs/images/icon-doc31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon-doc31.png -------------------------------------------------------------------------------- /docs/images/icon-doc4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon-doc4.png -------------------------------------------------------------------------------- /docs/images/icon-doc41.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon-doc41.png -------------------------------------------------------------------------------- /docs/images/icon-email.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon-email.png -------------------------------------------------------------------------------- /docs/images/icon-git.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon-git.png -------------------------------------------------------------------------------- /docs/images/icon-package1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon-package1.png -------------------------------------------------------------------------------- /docs/images/icon-package2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon-package2.png -------------------------------------------------------------------------------- /docs/images/icon-package3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon-package3.png -------------------------------------------------------------------------------- /docs/images/icon-title.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon-title.png -------------------------------------------------------------------------------- /docs/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon.png -------------------------------------------------------------------------------- /docs/images/icon1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon1.png -------------------------------------------------------------------------------- /docs/images/icon10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon10.png -------------------------------------------------------------------------------- /docs/images/icon2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon2.png -------------------------------------------------------------------------------- /docs/images/icon3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon3.png -------------------------------------------------------------------------------- /docs/images/icon4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon4.png -------------------------------------------------------------------------------- /docs/images/icon5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon5.png -------------------------------------------------------------------------------- /docs/images/icon6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon6.png -------------------------------------------------------------------------------- /docs/images/icon7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon7.png -------------------------------------------------------------------------------- /docs/images/icon8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon8.png -------------------------------------------------------------------------------- /docs/images/icon9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon9.png -------------------------------------------------------------------------------- /docs/images/icon_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icon_hover.png -------------------------------------------------------------------------------- /docs/images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/icons.png -------------------------------------------------------------------------------- /docs/images/indicator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/indicator.png -------------------------------------------------------------------------------- /docs/images/inner-head-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/inner-head-icon.png -------------------------------------------------------------------------------- /docs/images/logo-footer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/logo-footer.png -------------------------------------------------------------------------------- /docs/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/logo.png -------------------------------------------------------------------------------- /docs/images/logo1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/logo1.png -------------------------------------------------------------------------------- /docs/images/logo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/logo2.png -------------------------------------------------------------------------------- /docs/images/p1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/p1.jpg -------------------------------------------------------------------------------- /docs/images/p2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/p2.jpg -------------------------------------------------------------------------------- /docs/images/part1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/part1.png -------------------------------------------------------------------------------- /docs/images/part11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/part11.png -------------------------------------------------------------------------------- /docs/images/part2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/part2.png -------------------------------------------------------------------------------- /docs/images/part21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/part21.png -------------------------------------------------------------------------------- /docs/images/part212.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/part212.png -------------------------------------------------------------------------------- /docs/images/part3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/part3.png -------------------------------------------------------------------------------- /docs/images/part31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/part31.png -------------------------------------------------------------------------------- /docs/images/part4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/part4.png -------------------------------------------------------------------------------- /docs/images/quasar_big.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/quasar_big.png -------------------------------------------------------------------------------- /docs/images/shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/shadow.png -------------------------------------------------------------------------------- /docs/images/shadow1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/shadow1.png -------------------------------------------------------------------------------- /docs/images/shadow2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/shadow2.png -------------------------------------------------------------------------------- /docs/images/shadow3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/shadow3.png -------------------------------------------------------------------------------- /docs/images/spacebase_big.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/spacebase_big.png -------------------------------------------------------------------------------- /docs/images/spacebase_big_shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/spacebase_big_shadow.png -------------------------------------------------------------------------------- /docs/images/spacebase_sm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/spacebase_sm.png -------------------------------------------------------------------------------- /docs/images/t1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/t1.jpg -------------------------------------------------------------------------------- /docs/images/t2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/t2.jpg -------------------------------------------------------------------------------- /docs/images/t3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/t3.jpg -------------------------------------------------------------------------------- /docs/images/title1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/title1.png -------------------------------------------------------------------------------- /docs/images/title2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/title2.png -------------------------------------------------------------------------------- /docs/images/title3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/title3.png -------------------------------------------------------------------------------- /docs/images/title4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/title4.png -------------------------------------------------------------------------------- /docs/images/x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/puniverse/comsat/f4133289a4aa489de22b3fa85af3f38c42da626d/docs/images/x.png -------------------------------------------------------------------------------- /gradle-app.setting: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /travis/build_clj.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | start=$(date +%s) 3 | echo -e "Current repo: $TRAVIS_REPO_SLUG Commit: $TRAVIS_COMMIT\n" 4 | 5 | function error_exit 6 | { 7 | echo -e "\e[01;31m$1\e[00m" 1>&2 8 | exit 1 9 | } 10 | 11 | echo -e "Building Clojure parts..." 12 | 13 | echo -e "Building 'comsat-ring-jetty9'..." 14 | cd comsat-ring-jetty9 15 | lein test || error_exit "Error building 'comsat-ring-jetty9'" 16 | cd .. 17 | 18 | echo -e "Building 'comsat-httpkit'..." 19 | cd comsat-httpkit 20 | lein test || error_exit "Error building 'comsat-clj-http'" 21 | cd .. 22 | 23 | end=$(date +%s) 24 | elapsed=$(( $end - $start )) 25 | minutes=$(( $elapsed / 60 )) 26 | seconds=$(( $elapsed % 60 )) 27 | echo "Buid-clj process finished in $minutes minute(s) and $seconds seconds" 28 | --------------------------------------------------------------------------------