├── .gitignore ├── .travis.yml ├── CONTRIBUTING.md ├── LICENSE.txt ├── README.md ├── bom └── pom.xml ├── copyright-exclude ├── exclude-common.xml ├── extras ├── bundles │ ├── grizzly-httpservice-bundle │ │ └── pom.xml │ └── pom.xml ├── connection-pool │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── glassfish │ │ │ │ └── grizzly │ │ │ │ └── connectionpool │ │ │ │ ├── Chain.java │ │ │ │ ├── ConnectionInfo.java │ │ │ │ ├── Endpoint.java │ │ │ │ ├── EndpointKey.java │ │ │ │ ├── Link.java │ │ │ │ ├── MultiEndpointPool.java │ │ │ │ └── SingleEndpointPool.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── LICENSE.txt │ │ └── test │ │ └── java │ │ └── org │ │ └── glassfish │ │ └── grizzly │ │ └── connectionpool │ │ ├── MultiEndPointPoolTest.java │ │ └── SingleEndPointPoolTest.java ├── grizzly-httpservice │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── etc │ │ │ └── pax.args │ │ ├── java │ │ │ └── org │ │ │ │ └── glassfish │ │ │ │ └── grizzly │ │ │ │ └── osgi │ │ │ │ └── httpservice │ │ │ │ ├── Activator.java │ │ │ │ ├── HttpContextImpl.java │ │ │ │ ├── HttpServiceExtension.java │ │ │ │ ├── HttpServiceFactory.java │ │ │ │ ├── HttpServiceImpl.java │ │ │ │ ├── OSGiAuthFilter.java │ │ │ │ ├── OSGiCleanMapper.java │ │ │ │ ├── OSGiFilterConfig.java │ │ │ │ ├── OSGiHandler.java │ │ │ │ ├── OSGiMainHandler.java │ │ │ │ ├── OSGiResourceHandler.java │ │ │ │ ├── OSGiServletContext.java │ │ │ │ ├── OSGiServletHandler.java │ │ │ │ └── util │ │ │ │ └── Logger.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── LICENSE.txt │ │ ├── site │ │ ├── apt │ │ │ └── qstart.apt │ │ ├── images │ │ │ ├── Activator.png │ │ │ ├── Grizzly OSGi HttpService.mm │ │ │ ├── Grizzly OSGi HttpService.png │ │ │ ├── GrizzlyOSGiHttpService.png │ │ │ ├── GrizzlyOSGiHttpService.xml │ │ │ ├── HttpServiceFactory.png │ │ │ ├── HttpServiceImpl.png │ │ │ ├── HttpServiceImpl.xml │ │ │ ├── OSGiServletAdapter.png │ │ │ └── OSGiServletContext.png │ │ └── site.xml │ │ └── test │ │ └── java │ │ └── org │ │ └── glassfish │ │ └── grizzly │ │ └── osgi │ │ └── httpservice │ │ └── OSGiCleanMapperTest.java ├── http-server-jaxws │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── glassfish │ │ │ │ └── grizzly │ │ │ │ └── jaxws │ │ │ │ ├── JaxwsConnection.java │ │ │ │ └── JaxwsHandler.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── LICENSE.txt │ │ └── test │ │ └── java │ │ └── org │ │ └── glassfish │ │ └── grizzly │ │ └── jaxws │ │ ├── AddService.java │ │ ├── JaxwsTest.java │ │ └── addclient │ │ ├── Add.java │ │ ├── AddResponse.java │ │ ├── AddService.java │ │ ├── AddServiceService.java │ │ ├── ObjectFactory.java │ │ └── package-info.java ├── http-server-multipart │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── glassfish │ │ │ │ └── grizzly │ │ │ │ └── http │ │ │ │ └── multipart │ │ │ │ ├── ContentDisposition.java │ │ │ │ ├── MultipartContext.java │ │ │ │ ├── MultipartEntry.java │ │ │ │ ├── MultipartEntryHandler.java │ │ │ │ ├── MultipartEntryNIOInputStream.java │ │ │ │ ├── MultipartEntryNIOReader.java │ │ │ │ ├── MultipartReadHandler.java │ │ │ │ └── MultipartScanner.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── LICENSE.txt │ │ └── test │ │ └── java │ │ └── org │ │ └── glassfish │ │ └── grizzly │ │ └── http │ │ └── multipart │ │ ├── MultipartBasicTest.java │ │ ├── MultipartGrizzly1792Test.java │ │ ├── MutlipartEntryInputStreamTest.java │ │ ├── MutlipartEntryReaderTest.java │ │ └── utils │ │ ├── MultipartEntryPacket.java │ │ └── MultipartPacketBuilder.java ├── http-servlet-extras │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── glassfish │ │ │ │ └── grizzly │ │ │ │ └── servlet │ │ │ │ └── extras │ │ │ │ └── MultipartUploadFilter.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── LICENSE.txt │ │ └── test │ │ └── java │ │ └── org │ │ └── glassfish │ │ └── grizzly │ │ └── servlet │ │ └── extras │ │ ├── MultipartUploadFilterTest.java │ │ └── util │ │ ├── MultipartEntryPacket.java │ │ └── MultipartPacketBuilder.java ├── pom.xml └── tls-sni │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── glassfish │ │ │ └── grizzly │ │ │ └── sni │ │ │ ├── SNIClientConfigResolver.java │ │ │ ├── SNIConfig.java │ │ │ ├── SNIFilter.java │ │ │ └── SNIServerConfigResolver.java │ └── resources │ │ └── META-INF │ │ └── LICENSE.txt │ └── test │ ├── java │ └── org │ │ └── glassfish │ │ └── grizzly │ │ └── sni │ │ └── SNITest.java │ └── resources │ ├── ssltest-cacerts.jks │ └── ssltest-keystore.jks ├── modules ├── bundles │ ├── comet │ │ └── pom.xml │ ├── core │ │ └── pom.xml │ ├── http-all │ │ └── pom.xml │ ├── http-servlet │ │ └── pom.xml │ ├── http │ │ └── pom.xml │ ├── pom.xml │ └── websockets │ │ └── pom.xml ├── comet │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── glassfish │ │ │ │ └── grizzly │ │ │ │ └── comet │ │ │ │ ├── CometAddOn.java │ │ │ │ ├── CometContext.java │ │ │ │ ├── CometEngine.java │ │ │ │ ├── CometEvent.java │ │ │ │ ├── CometHandler.java │ │ │ │ ├── DefaultCometHandler.java │ │ │ │ ├── DefaultNotificationHandler.java │ │ │ │ ├── NotificationHandler.java │ │ │ │ └── concurrent │ │ │ │ └── DefaultConcurrentCometHandler.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── LICENSE.txt │ │ └── test │ │ └── java │ │ └── org │ │ └── glassfish │ │ └── grizzly │ │ └── comet │ │ ├── BasicCometTest.java │ │ ├── CometHttpHandler.java │ │ ├── CometTestHttpHandler.java │ │ ├── CometUnitTests.java │ │ ├── CountDownCometHandler.java │ │ ├── CountDownHttpHandler.java │ │ └── DefaultTestCometHandler.java ├── grizzly │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── assemblies │ │ │ └── netbeans-run.xml │ │ ├── java │ │ │ └── org │ │ │ │ └── glassfish │ │ │ │ └── grizzly │ │ │ │ ├── AbstractBindingHandler.java │ │ │ │ ├── AbstractReader.java │ │ │ │ ├── AbstractSocketConnectorHandler.java │ │ │ │ ├── AbstractTransformer.java │ │ │ │ ├── AbstractTransport.java │ │ │ │ ├── AbstractWriter.java │ │ │ │ ├── Appendable.java │ │ │ │ ├── Appender.java │ │ │ │ ├── Buffer.java │ │ │ │ ├── Cacheable.java │ │ │ │ ├── ChainProcessorSelector.java │ │ │ │ ├── ChangeListener.java │ │ │ │ ├── CloseListener.java │ │ │ │ ├── CloseReason.java │ │ │ │ ├── CloseType.java │ │ │ │ ├── Closeable.java │ │ │ │ ├── Codec.java │ │ │ │ ├── CompletionHandler.java │ │ │ │ ├── Connection.java │ │ │ │ ├── ConnectionProbe.java │ │ │ │ ├── ConnectorHandler.java │ │ │ │ ├── Context.java │ │ │ │ ├── Copyable.java │ │ │ │ ├── DefaultProcessorSelector.java │ │ │ │ ├── EmptyCompletionHandler.java │ │ │ │ ├── FileTransfer.java │ │ │ │ ├── GenericCloseListener.java │ │ │ │ ├── GracefulShutdownListener.java │ │ │ │ ├── Grizzly.java │ │ │ │ ├── GrizzlyFuture.java │ │ │ │ ├── ICloseType.java │ │ │ │ ├── IOEvent.java │ │ │ │ ├── IOEventLifeCycleListener.java │ │ │ │ ├── IOStrategy.java │ │ │ │ ├── InputSource.java │ │ │ │ ├── Interceptor.java │ │ │ │ ├── NIOTransportBuilder.java │ │ │ │ ├── OutputSink.java │ │ │ │ ├── PendingWriteQueueLimitExceededException.java │ │ │ │ ├── PortRange.java │ │ │ │ ├── Processor.java │ │ │ │ ├── ProcessorExecutor.java │ │ │ │ ├── ProcessorResult.java │ │ │ │ ├── ProcessorSelector.java │ │ │ │ ├── ReadHandler.java │ │ │ │ ├── ReadResult.java │ │ │ │ ├── Readable.java │ │ │ │ ├── Reader.java │ │ │ │ ├── Result.java │ │ │ │ ├── ShutdownContext.java │ │ │ │ ├── SocketAcceptor.java │ │ │ │ ├── SocketBinder.java │ │ │ │ ├── SocketConnectorHandler.java │ │ │ │ ├── StandaloneProcessor.java │ │ │ │ ├── StandaloneProcessorSelector.java │ │ │ │ ├── ThreadCache.java │ │ │ │ ├── TransformationException.java │ │ │ │ ├── TransformationResult.java │ │ │ │ ├── Transformer.java │ │ │ │ ├── Transport.java │ │ │ │ ├── TransportProbe.java │ │ │ │ ├── WriteHandler.java │ │ │ │ ├── WriteResult.java │ │ │ │ ├── Writeable.java │ │ │ │ ├── Writer.java │ │ │ │ ├── asyncqueue │ │ │ │ ├── AsyncQueue.java │ │ │ │ ├── AsyncQueueEnabledTransport.java │ │ │ │ ├── AsyncQueueIO.java │ │ │ │ ├── AsyncQueueReader.java │ │ │ │ ├── AsyncQueueRecord.java │ │ │ │ ├── AsyncQueueWriter.java │ │ │ │ ├── AsyncReadQueueRecord.java │ │ │ │ ├── AsyncWriteQueueRecord.java │ │ │ │ ├── MessageCloner.java │ │ │ │ ├── PushBackContext.java │ │ │ │ ├── PushBackHandler.java │ │ │ │ ├── RecordReadResult.java │ │ │ │ ├── RecordWriteResult.java │ │ │ │ ├── TaskQueue.java │ │ │ │ └── WritableMessage.java │ │ │ │ ├── attributes │ │ │ │ ├── Attribute.java │ │ │ │ ├── AttributeBuilder.java │ │ │ │ ├── AttributeBuilderInitializer.java │ │ │ │ ├── AttributeHolder.java │ │ │ │ ├── AttributeStorage.java │ │ │ │ ├── DefaultAttributeBuilder.java │ │ │ │ ├── IndexedAttributeAccessor.java │ │ │ │ ├── IndexedAttributeHolder.java │ │ │ │ ├── NullaryFunction.java │ │ │ │ └── UnsafeAttributeHolder.java │ │ │ │ ├── compression │ │ │ │ ├── lzma │ │ │ │ │ ├── LZMADecoder.java │ │ │ │ │ ├── LZMAEncoder.java │ │ │ │ │ ├── LZMAFilter.java │ │ │ │ │ └── impl │ │ │ │ │ │ ├── Base.java │ │ │ │ │ │ ├── CRC.java │ │ │ │ │ │ ├── Decoder.java │ │ │ │ │ │ ├── Encoder.java │ │ │ │ │ │ ├── lz │ │ │ │ │ │ ├── BinTree.java │ │ │ │ │ │ ├── InWindow.java │ │ │ │ │ │ └── OutWindow.java │ │ │ │ │ │ └── rangecoder │ │ │ │ │ │ ├── BitTreeDecoder.java │ │ │ │ │ │ ├── BitTreeEncoder.java │ │ │ │ │ │ ├── RangeDecoder.java │ │ │ │ │ │ └── RangeEncoder.java │ │ │ │ └── zip │ │ │ │ │ ├── GZipDecoder.java │ │ │ │ │ ├── GZipEncoder.java │ │ │ │ │ └── GZipFilter.java │ │ │ │ ├── filterchain │ │ │ │ ├── AbstractCodecFilter.java │ │ │ │ ├── AbstractFilterChain.java │ │ │ │ ├── AbstractNextAction.java │ │ │ │ ├── BaseFilter.java │ │ │ │ ├── CodecFilter.java │ │ │ │ ├── DefaultFilterChain.java │ │ │ │ ├── ExecutorResolver.java │ │ │ │ ├── Filter.java │ │ │ │ ├── FilterChain.java │ │ │ │ ├── FilterChainBuilder.java │ │ │ │ ├── FilterChainContext.java │ │ │ │ ├── FilterChainEnabledTransport.java │ │ │ │ ├── FilterChainEvent.java │ │ │ │ ├── FilterChainProcessorSelector.java │ │ │ │ ├── FilterExecutor.java │ │ │ │ ├── ForkAction.java │ │ │ │ ├── InternalContextImpl.java │ │ │ │ ├── InvokeAction.java │ │ │ │ ├── ListFacadeFilterChain.java │ │ │ │ ├── NextAction.java │ │ │ │ ├── RerunChainAction.java │ │ │ │ ├── RerunFilterAction.java │ │ │ │ ├── ShutdownEvent.java │ │ │ │ ├── StopAction.java │ │ │ │ ├── SuspendAction.java │ │ │ │ └── TransportFilter.java │ │ │ │ ├── impl │ │ │ │ ├── FutureImpl.java │ │ │ │ ├── ReadyFutureImpl.java │ │ │ │ ├── SafeFutureImpl.java │ │ │ │ └── UnsafeFutureImpl.java │ │ │ │ ├── jmxbase │ │ │ │ └── GrizzlyJmxManager.java │ │ │ │ ├── localization │ │ │ │ ├── Localizable.java │ │ │ │ ├── LocalizableMessage.java │ │ │ │ ├── LocalizableMessageFactory.java │ │ │ │ └── Localizer.java │ │ │ │ ├── memory │ │ │ │ ├── AbstractBufferArray.java │ │ │ │ ├── AbstractMemoryManager.java │ │ │ │ ├── Bits.java │ │ │ │ ├── BufferArray.java │ │ │ │ ├── Buffers.java │ │ │ │ ├── BuffersBuffer.java │ │ │ │ ├── ByteBufferArray.java │ │ │ │ ├── ByteBufferAware.java │ │ │ │ ├── ByteBufferManager.java │ │ │ │ ├── ByteBufferWrapper.java │ │ │ │ ├── CompositeBuffer.java │ │ │ │ ├── DefaultMemoryManagerFactory.java │ │ │ │ ├── HeapBuffer.java │ │ │ │ ├── HeapMemoryManager.java │ │ │ │ ├── MemoryManager.java │ │ │ │ ├── MemoryManagerInitializer.java │ │ │ │ ├── MemoryProbe.java │ │ │ │ ├── MemoryUtils.java │ │ │ │ ├── PooledMemoryManager.java │ │ │ │ ├── ProbeNotifier.java │ │ │ │ ├── ReadOnlyHeapBuffer.java │ │ │ │ ├── ThreadLocalPool.java │ │ │ │ ├── ThreadLocalPoolProvider.java │ │ │ │ └── WrapperAware.java │ │ │ │ ├── monitoring │ │ │ │ ├── DefaultMonitoringConfig.java │ │ │ │ ├── MonitoringAware.java │ │ │ │ ├── MonitoringConfig.java │ │ │ │ └── MonitoringUtils.java │ │ │ │ ├── nio │ │ │ │ ├── AbstractNIOAsyncQueueReader.java │ │ │ │ ├── AbstractNIOAsyncQueueWriter.java │ │ │ │ ├── AbstractNIOConnectionDistributor.java │ │ │ │ ├── ChannelConfigurator.java │ │ │ │ ├── DefaultSelectionKeyHandler.java │ │ │ │ ├── DefaultSelectorHandler.java │ │ │ │ ├── DirectByteBufferRecord.java │ │ │ │ ├── GracefulShutdownRunner.java │ │ │ │ ├── NIOChannelDistributor.java │ │ │ │ ├── NIOConnection.java │ │ │ │ ├── NIOTransport.java │ │ │ │ ├── RegisterChannelResult.java │ │ │ │ ├── RoundRobinConnectionDistributor.java │ │ │ │ ├── SelectionKeyHandler.java │ │ │ │ ├── SelectionKeyHandlerInitializer.java │ │ │ │ ├── SelectorHandler.java │ │ │ │ ├── SelectorHandlerTask.java │ │ │ │ ├── SelectorRunner.java │ │ │ │ ├── Selectors.java │ │ │ │ ├── tmpselectors │ │ │ │ │ ├── TemporarySelectorIO.java │ │ │ │ │ ├── TemporarySelectorPool.java │ │ │ │ │ ├── TemporarySelectorReader.java │ │ │ │ │ ├── TemporarySelectorWriter.java │ │ │ │ │ └── TemporarySelectorsEnabledTransport.java │ │ │ │ └── transport │ │ │ │ │ ├── DefaultStreamReader.java │ │ │ │ │ ├── DefaultStreamWriter.java │ │ │ │ │ ├── TCPNIOAsyncQueueReader.java │ │ │ │ │ ├── TCPNIOAsyncQueueWriter.java │ │ │ │ │ ├── TCPNIOBindingHandler.java │ │ │ │ │ ├── TCPNIOConnection.java │ │ │ │ │ ├── TCPNIOConnectorHandler.java │ │ │ │ │ ├── TCPNIOServerConnection.java │ │ │ │ │ ├── TCPNIOTemporarySelectorReader.java │ │ │ │ │ ├── TCPNIOTemporarySelectorWriter.java │ │ │ │ │ ├── TCPNIOTransport.java │ │ │ │ │ ├── TCPNIOTransportBuilder.java │ │ │ │ │ ├── TCPNIOTransportFilter.java │ │ │ │ │ ├── TCPNIOUtils.java │ │ │ │ │ ├── UDPNIOAsyncQueueReader.java │ │ │ │ │ ├── UDPNIOAsyncQueueWriter.java │ │ │ │ │ ├── UDPNIOBindingHandler.java │ │ │ │ │ ├── UDPNIOConnection.java │ │ │ │ │ ├── UDPNIOConnectorHandler.java │ │ │ │ │ ├── UDPNIOServerConnection.java │ │ │ │ │ ├── UDPNIOTemporarySelectorReader.java │ │ │ │ │ ├── UDPNIOTemporarySelectorWriter.java │ │ │ │ │ ├── UDPNIOTransport.java │ │ │ │ │ ├── UDPNIOTransportBuilder.java │ │ │ │ │ └── UDPNIOTransportFilter.java │ │ │ │ ├── ssl │ │ │ │ ├── InputBufferWrapper.java │ │ │ │ ├── SSLBaseFilter.java │ │ │ │ ├── SSLCodec.java │ │ │ │ ├── SSLConnectionContext.java │ │ │ │ ├── SSLContextConfigurator.java │ │ │ │ ├── SSLDecoderTransformer.java │ │ │ │ ├── SSLEncoderTransformer.java │ │ │ │ ├── SSLEngineConfigurator.java │ │ │ │ ├── SSLEngineFactory.java │ │ │ │ ├── SSLFilter.java │ │ │ │ ├── SSLStreamReader.java │ │ │ │ ├── SSLStreamWriter.java │ │ │ │ ├── SSLSupport.java │ │ │ │ ├── SSLSupportImpl.java │ │ │ │ └── SSLUtils.java │ │ │ │ ├── strategies │ │ │ │ ├── AbstractIOStrategy.java │ │ │ │ ├── LeaderFollowerNIOStrategy.java │ │ │ │ ├── SameThreadIOStrategy.java │ │ │ │ ├── SimpleDynamicNIOStrategy.java │ │ │ │ ├── WorkerThreadIOStrategy.java │ │ │ │ └── WorkerThreadPoolConfigProducer.java │ │ │ │ ├── streams │ │ │ │ ├── AbstractStreamReader.java │ │ │ │ ├── AbstractStreamWriter.java │ │ │ │ ├── BufferedInput.java │ │ │ │ ├── BufferedOutput.java │ │ │ │ ├── Input.java │ │ │ │ ├── Output.java │ │ │ │ ├── Stream.java │ │ │ │ ├── StreamDecodeCondition.java │ │ │ │ ├── StreamInput.java │ │ │ │ ├── StreamOutput.java │ │ │ │ ├── StreamReader.java │ │ │ │ ├── StreamWriter.java │ │ │ │ ├── TransformerInput.java │ │ │ │ ├── TransformerOutput.java │ │ │ │ ├── TransformerStreamReader.java │ │ │ │ └── TransformerStreamWriter.java │ │ │ │ ├── threadpool │ │ │ │ ├── AbstractThreadPool.java │ │ │ │ ├── DefaultWorkerThread.java │ │ │ │ ├── FixedThreadPool.java │ │ │ │ ├── GrizzlyExecutorService.java │ │ │ │ ├── ProbeNotifier.java │ │ │ │ ├── QueueLimitedThreadPool.java │ │ │ │ ├── SyncThreadPool.java │ │ │ │ ├── ThreadPoolConfig.java │ │ │ │ ├── ThreadPoolProbe.java │ │ │ │ ├── Threads.java │ │ │ │ └── WorkerThread.java │ │ │ │ ├── utils │ │ │ │ ├── ActivityCheckFilter.java │ │ │ │ ├── ArraySet.java │ │ │ │ ├── ArrayUtils.java │ │ │ │ ├── BufferInputStream.java │ │ │ │ ├── BufferOutputStream.java │ │ │ │ ├── Charsets.java │ │ │ │ ├── ChunkingFilter.java │ │ │ │ ├── CompletionHandlerAdapter.java │ │ │ │ ├── DebugPoint.java │ │ │ │ ├── DelayFilter.java │ │ │ │ ├── DelayedExecutor.java │ │ │ │ ├── EchoFilter.java │ │ │ │ ├── ExceptionHandler.java │ │ │ │ ├── Exceptions.java │ │ │ │ ├── Futures.java │ │ │ │ ├── GenericAdapter.java │ │ │ │ ├── Holder.java │ │ │ │ ├── IdleTimeoutFilter.java │ │ │ │ ├── JdkVersion.java │ │ │ │ ├── LogFilter.java │ │ │ │ ├── LoggingFormatter.java │ │ │ │ ├── NullaryFunction.java │ │ │ │ ├── ObjectPool.java │ │ │ │ ├── Pair.java │ │ │ │ ├── PoolableObject.java │ │ │ │ ├── ResultAware.java │ │ │ │ ├── ServiceConfigurationError.java │ │ │ │ ├── ServiceFinder.java │ │ │ │ ├── SilentConnectionFilter.java │ │ │ │ ├── StateHolder.java │ │ │ │ ├── StringDecoder.java │ │ │ │ ├── StringEncoder.java │ │ │ │ ├── StringFilter.java │ │ │ │ ├── ThreadLocalRandom.java │ │ │ │ ├── TransferQueue.java │ │ │ │ └── conditions │ │ │ │ │ └── Condition.java │ │ │ │ └── version.properties │ │ └── resources │ │ │ ├── META-INF │ │ │ └── LICENSE.txt │ │ │ └── org │ │ │ └── glassfish │ │ │ └── grizzly │ │ │ └── localization │ │ │ └── log.properties │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── glassfish │ │ │ └── grizzly │ │ │ ├── AsyncWriteQueueTest.java │ │ │ ├── AttributesTest.java │ │ │ ├── CharsetsTest.java │ │ │ ├── FileTransferTest.java │ │ │ ├── FilterChainReadTest.java │ │ │ ├── FilterChainTest.java │ │ │ ├── GZipTest.java │ │ │ ├── GrizzlyExecutorServiceTest.java │ │ │ ├── GrizzlyTestCase.java │ │ │ ├── GrizzlyVersionTest.java │ │ │ ├── IOStrategyTest.java │ │ │ ├── IdleConnectionFilterTest.java │ │ │ ├── InputOutputStreamTest.java │ │ │ ├── LZMATest.java │ │ │ ├── NIOTransportTest.java │ │ │ ├── ProtocolChainCodecTest.java │ │ │ ├── SSLTest.java │ │ │ ├── StandaloneTest.java │ │ │ ├── TCPNIOTransportTest.java │ │ │ ├── TestDefaults.java │ │ │ ├── TestDefaults2.java │ │ │ ├── ThreadCacheTest.java │ │ │ ├── ThreadPoolsTest.java │ │ │ ├── UDPNIOTransportTest.java │ │ │ ├── last-occupied-test-port.info │ │ │ ├── memory │ │ │ ├── AbstractMemoryManagerTest.java │ │ │ ├── AbstractThreadLocalMemoryManagerTest.java │ │ │ ├── BuffersBufferTest.java │ │ │ ├── ByteBufferStreamsTest.java │ │ │ ├── CompositeBufferInStreamTest.java │ │ │ ├── CompositeBufferTest.java │ │ │ ├── GeneralMemoryManagerTest.java │ │ │ ├── PooledMemoryManagerTest.java │ │ │ └── ThreadLocalMemoryManagerTest.java │ │ │ └── utils │ │ │ ├── ClientCheckFilter.java │ │ │ ├── LogMessagesTest.java │ │ │ ├── ParallelWriteFilter.java │ │ │ └── RandomDelayOnWriteFilter.java │ │ └── resources │ │ ├── logging.properties │ │ ├── ssltest-cacerts.jks │ │ └── ssltest-keystore.jks ├── http-ajp │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── glassfish │ │ │ │ └── grizzly │ │ │ │ └── http │ │ │ │ └── ajp │ │ │ │ ├── AjpAddOn.java │ │ │ │ ├── AjpConstants.java │ │ │ │ ├── AjpHandlerFilter.java │ │ │ │ ├── AjpHttpRequest.java │ │ │ │ ├── AjpHttpResponse.java │ │ │ │ ├── AjpMessageFilter.java │ │ │ │ ├── AjpMessageUtils.java │ │ │ │ └── ShutdownHandler.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── LICENSE.txt │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── glassfish │ │ │ └── grizzly │ │ │ └── http │ │ │ └── ajp │ │ │ ├── AjpClientMessageFilter.java │ │ │ ├── AjpDataPacket.java │ │ │ ├── AjpForwardRequestPacket.java │ │ │ ├── AjpPacket.java │ │ │ ├── AjpResponse.java │ │ │ ├── AjpShutdownPacket.java │ │ │ ├── AjpTestBase.java │ │ │ ├── BasicAjpTest.java │ │ │ └── Utils.java │ │ └── resources │ │ ├── form-params-payload1.dat │ │ ├── form-params-payload2.dat │ │ ├── get-secured.dat │ │ ├── null-attr-payload.dat │ │ └── peer-addr-check.dat ├── http-server │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── glassfish │ │ │ │ └── grizzly │ │ │ │ └── http │ │ │ │ └── server │ │ │ │ ├── AddOn.java │ │ │ │ ├── AfterServiceListener.java │ │ │ │ ├── BackendConfiguration.java │ │ │ │ ├── CLStaticHttpHandler.java │ │ │ │ ├── CompressionEncodingFilter.java │ │ │ │ ├── CompressionLevel.java │ │ │ │ ├── Constants.java │ │ │ │ ├── DefaultErrorPageGenerator.java │ │ │ │ ├── DefaultSessionManager.java │ │ │ │ ├── ErrorPageGenerator.java │ │ │ │ ├── FileCacheFilter.java │ │ │ │ ├── GrizzlyPrincipal.java │ │ │ │ ├── HttpHandler.java │ │ │ │ ├── HttpHandlerChain.java │ │ │ │ ├── HttpHandlerRegistration.java │ │ │ │ ├── HttpServer.java │ │ │ │ ├── HttpServerFilter.java │ │ │ │ ├── HttpServerMonitoringConfig.java │ │ │ │ ├── HttpServerProbe.java │ │ │ │ ├── HttpServerProbeNotifier.java │ │ │ │ ├── LegacyLocaleParser.java │ │ │ │ ├── LocaleParser.java │ │ │ │ ├── NIOInputStreamImpl.java │ │ │ │ ├── NIOOutputStreamImpl.java │ │ │ │ ├── NIOReaderImpl.java │ │ │ │ ├── NIOWriterImpl.java │ │ │ │ ├── NetworkListener.java │ │ │ │ ├── Request.java │ │ │ │ ├── RequestExecutorProvider.java │ │ │ │ ├── Response.java │ │ │ │ ├── ServerConfiguration.java │ │ │ │ ├── ServerFilterConfiguration.java │ │ │ │ ├── Session.java │ │ │ │ ├── SessionManager.java │ │ │ │ ├── State.java │ │ │ │ ├── StaticHttpHandler.java │ │ │ │ ├── StaticHttpHandlerBase.java │ │ │ │ ├── SuspendContext.java │ │ │ │ ├── SuspendStatus.java │ │ │ │ ├── TagLocaleParser.java │ │ │ │ ├── TimeoutHandler.java │ │ │ │ ├── accesslog │ │ │ │ ├── AccessLogAppender.java │ │ │ │ ├── AccessLogBuilder.java │ │ │ │ ├── AccessLogFormat.java │ │ │ │ ├── AccessLogProbe.java │ │ │ │ ├── ApacheLogFormat.java │ │ │ │ ├── FileAppender.java │ │ │ │ ├── QueueingAppender.java │ │ │ │ ├── RotatingFileAppender.java │ │ │ │ ├── SimpleDateFormatThreadLocal.java │ │ │ │ └── StreamAppender.java │ │ │ │ ├── filecache │ │ │ │ ├── FileCache.java │ │ │ │ ├── FileCacheEntry.java │ │ │ │ ├── FileCacheKey.java │ │ │ │ ├── FileCacheProbe.java │ │ │ │ └── LazyFileCacheKey.java │ │ │ │ ├── http2 │ │ │ │ ├── PushBuilder.java │ │ │ │ └── PushEvent.java │ │ │ │ ├── io │ │ │ │ ├── ReadHandler.java │ │ │ │ ├── ServerInputBuffer.java │ │ │ │ ├── ServerOutputBuffer.java │ │ │ │ └── WriteHandler.java │ │ │ │ ├── jmxbase │ │ │ │ ├── JmxEventListener.java │ │ │ │ └── Monitorable.java │ │ │ │ ├── naming │ │ │ │ ├── DirContext.java │ │ │ │ ├── NamingContext.java │ │ │ │ └── NamingException.java │ │ │ │ └── util │ │ │ │ ├── AggregatorAddOn.java │ │ │ │ ├── AlternateDocBase.java │ │ │ │ ├── ClassLoaderUtil.java │ │ │ │ ├── DispatcherHelper.java │ │ │ │ ├── Enumerator.java │ │ │ │ ├── ExpandJar.java │ │ │ │ ├── Globals.java │ │ │ │ ├── HtmlHelper.java │ │ │ │ ├── HttpPipelineOptAddOn.java │ │ │ │ ├── Mapper.java │ │ │ │ ├── MappingData.java │ │ │ │ ├── ParameterMap.java │ │ │ │ ├── RequestUtils.java │ │ │ │ ├── SimpleDateFormats.java │ │ │ │ └── StringParser.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── LICENSE.txt │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── glassfish │ │ │ └── grizzly │ │ │ └── http │ │ │ └── server │ │ │ ├── AggregatorAddOnTest.java │ │ │ ├── BackendConfigTest.java │ │ │ ├── BasicConfigTest.java │ │ │ ├── CLStaticHttpHandlerTest.java │ │ │ ├── ChunkedTransferEncodingTest.java │ │ │ ├── CompressionEncodingFilterTest.java │ │ │ ├── ConnectMethodTest.java │ │ │ ├── ContextPathTest.java │ │ │ ├── ErrorPageTest.java │ │ │ ├── FileCacheTest.java │ │ │ ├── HttpContinueTest.java │ │ │ ├── HttpInputStreamsTest.java │ │ │ ├── HttpResponseStreamsTest.java │ │ │ ├── HttpServerJmxBasicTest.java │ │ │ ├── HttpSessionTest.java │ │ │ ├── KeepAliveTest.java │ │ │ ├── MapperTest.java │ │ │ ├── MaxPostSizeTest.java │ │ │ ├── NIOInputSourcesTest.java │ │ │ ├── NIOOutputSinksTest.java │ │ │ ├── NetworkListenerTest.java │ │ │ ├── ParametersTest.java │ │ │ ├── PayloadReplayTest.java │ │ │ ├── RequestURITest.java │ │ │ ├── ReusableFuture.java │ │ │ ├── SSLAttributesTest.java │ │ │ ├── SendFileTest.java │ │ │ ├── SkipRemainderTest.java │ │ │ ├── SplitTest.java │ │ │ ├── StaticHttpHandlerTest.java │ │ │ ├── SuspendTest.java │ │ │ ├── TraceMethodTest.java │ │ │ ├── TransferEncodingTest.java │ │ │ └── accesslog │ │ │ └── ApacheLogFormatTest.java │ │ └── resources │ │ ├── clhandler │ │ ├── a │ │ │ └── index.html │ │ ├── index.html │ │ └── welcome.jar │ │ ├── ssltest-cacerts.jks │ │ └── ssltest-keystore.jks ├── http-servlet │ ├── pom.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── org │ │ │ └── glassfish │ │ │ └── grizzly │ │ │ └── servlet │ │ │ ├── ApplicationDispatcher.java │ │ │ ├── AsyncContextImpl.java │ │ │ ├── CookieWrapper.java │ │ │ ├── DefaultServlet.java │ │ │ ├── DispatchTargetsInfo.java │ │ │ ├── DispatchedHttpServletRequest.java │ │ │ ├── DispatchedHttpServletResponse.java │ │ │ ├── DispatcherConstants.java │ │ │ ├── ExpectationHandler.java │ │ │ ├── FilterChainFactory.java │ │ │ ├── FilterChainImpl.java │ │ │ ├── FilterChainInvoker.java │ │ │ ├── FilterConfigImpl.java │ │ │ ├── FilterMap.java │ │ │ ├── FilterRegistration.java │ │ │ ├── Holders.java │ │ │ ├── HttpServletRequestImpl.java │ │ │ ├── HttpServletResponseImpl.java │ │ │ ├── HttpSessionImpl.java │ │ │ ├── Registration.java │ │ │ ├── ServletConfigImpl.java │ │ │ ├── ServletHandler.java │ │ │ ├── ServletInputStreamImpl.java │ │ │ ├── ServletOutputStreamImpl.java │ │ │ ├── ServletReaderImpl.java │ │ │ ├── ServletRegistration.java │ │ │ ├── ServletSessionManager.java │ │ │ ├── ServletUtils.java │ │ │ ├── ServletWriterImpl.java │ │ │ ├── SessionCookieConfig.java │ │ │ ├── WebConnectionImpl.java │ │ │ └── WebappContext.java │ │ └── test │ │ ├── java │ │ ├── filter │ │ │ ├── JerseyrNoServletTest.java │ │ │ ├── Main.java │ │ │ └── MyResource.java │ │ └── org │ │ │ └── glassfish │ │ │ └── grizzly │ │ │ └── servlet │ │ │ ├── BasicServletTest.java │ │ │ ├── ClientUtil.java │ │ │ ├── ComplexHttpServerTest.java │ │ │ ├── HelloHttpServerTest.java │ │ │ ├── HttpServerAbstractTest.java │ │ │ ├── HttpServerTest.java │ │ │ ├── HttpSessionTest.java │ │ │ ├── ListenersTest.java │ │ │ ├── LoadOnStartupTest.java │ │ │ ├── MapperTest.java │ │ │ ├── RequestDispatcherTest.java │ │ │ ├── ServletCookieTest.java │ │ │ ├── ServletHttpContinueTest.java │ │ │ ├── async │ │ │ ├── AsyncContextTest.java │ │ │ ├── AsyncDispatchTest.java │ │ │ ├── AsyncInputTest.java │ │ │ └── AsyncOutputTest.java │ │ │ └── httpupgrade │ │ │ └── HttpUpgradeTest.java │ │ └── resources │ │ ├── jsps │ │ └── index.jsp │ │ ├── test-keystore.jks │ │ └── test-truststore.jks ├── http │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── glassfish │ │ │ │ └── grizzly │ │ │ │ └── http │ │ │ │ ├── ChunkedTransferEncoding.java │ │ │ │ ├── CompressionConfig.java │ │ │ │ ├── ContentEncoding.java │ │ │ │ ├── ContentEncodingException.java │ │ │ │ ├── Cookie.java │ │ │ │ ├── Cookies.java │ │ │ │ ├── CookiesBuilder.java │ │ │ │ ├── EncodingFilter.java │ │ │ │ ├── FixedLengthTransferEncoding.java │ │ │ │ ├── GZipContentEncoding.java │ │ │ │ ├── HttpBaseFilter.java │ │ │ │ ├── HttpBrokenContent.java │ │ │ │ ├── HttpBrokenContentException.java │ │ │ │ ├── HttpClientFilter.java │ │ │ │ ├── HttpCodecFilter.java │ │ │ │ ├── HttpContent.java │ │ │ │ ├── HttpContext.java │ │ │ │ ├── HttpEvents.java │ │ │ │ ├── HttpHeader.java │ │ │ │ ├── HttpPacket.java │ │ │ │ ├── HttpPacketParsing.java │ │ │ │ ├── HttpProbe.java │ │ │ │ ├── HttpProbeNotifier.java │ │ │ │ ├── HttpRequestPacket.java │ │ │ │ ├── HttpRequestPacketImpl.java │ │ │ │ ├── HttpResponsePacket.java │ │ │ │ ├── HttpResponsePacketImpl.java │ │ │ │ ├── HttpServerFilter.java │ │ │ │ ├── HttpTrailer.java │ │ │ │ ├── KeepAlive.java │ │ │ │ ├── KeepAliveProbe.java │ │ │ │ ├── LZMAContentEncoding.java │ │ │ │ ├── LazyCookieState.java │ │ │ │ ├── Method.java │ │ │ │ ├── MimeHeadersPacket.java │ │ │ │ ├── Note.java │ │ │ │ ├── ParsingResult.java │ │ │ │ ├── ProcessingState.java │ │ │ │ ├── Protocol.java │ │ │ │ ├── TransferEncoding.java │ │ │ │ ├── io │ │ │ │ ├── BinaryNIOInputSource.java │ │ │ │ ├── BinaryNIOOutputSink.java │ │ │ │ ├── InputBuffer.java │ │ │ │ ├── NIOInputStream.java │ │ │ │ ├── NIOOutputStream.java │ │ │ │ ├── NIOReader.java │ │ │ │ ├── NIOWriter.java │ │ │ │ ├── OutputBuffer.java │ │ │ │ └── TemporaryHeapBuffer.java │ │ │ │ └── util │ │ │ │ ├── Ascii.java │ │ │ │ ├── B2CConverter.java │ │ │ │ ├── B2CConverterBlocking.java │ │ │ │ ├── BufferChunk.java │ │ │ │ ├── ByteChunk.java │ │ │ │ ├── C2BConverter.java │ │ │ │ ├── CacheableDataChunk.java │ │ │ │ ├── CharChunk.java │ │ │ │ ├── Chunk.java │ │ │ │ ├── Constants.java │ │ │ │ ├── ContentType.java │ │ │ │ ├── CookieParserUtils.java │ │ │ │ ├── CookieSerializerUtils.java │ │ │ │ ├── CookieUtils.java │ │ │ │ ├── DataChunk.java │ │ │ │ ├── FastDateFormat.java │ │ │ │ ├── FastHttpDateFormat.java │ │ │ │ ├── Header.java │ │ │ │ ├── HeaderValue.java │ │ │ │ ├── HexUtils.java │ │ │ │ ├── HttpCodecUtils.java │ │ │ │ ├── HttpRequestURIDecoder.java │ │ │ │ ├── HttpStatus.java │ │ │ │ ├── HttpUtils.java │ │ │ │ ├── MessageBytes.java │ │ │ │ ├── MimeHeaders.java │ │ │ │ ├── MimeType.java │ │ │ │ ├── Parameters.java │ │ │ │ ├── RequestURIRef.java │ │ │ │ ├── StringCache.java │ │ │ │ ├── StringManager.java │ │ │ │ ├── TimeStamp.java │ │ │ │ ├── UDecoder.java │ │ │ │ ├── UEncoder.java │ │ │ │ ├── URLDecoder.java │ │ │ │ └── version.properties │ │ └── resources │ │ │ └── META-INF │ │ │ └── LICENSE.txt │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── glassfish │ │ │ └── grizzly │ │ │ └── http │ │ │ ├── ChunkTest.java │ │ │ ├── ChunkedTransferEncodingTest.java │ │ │ ├── ClientRequestPipeliningTest.java │ │ │ ├── CompressionSemanticsTest.java │ │ │ ├── ContentTest.java │ │ │ ├── ContentTypeTest.java │ │ │ ├── CookiesTest.java │ │ │ ├── GZipEncodingTest.java │ │ │ ├── HttpCommTest.java │ │ │ ├── HttpRequestPacketTest.java │ │ │ ├── HttpRequestParseTest.java │ │ │ ├── HttpResponsePacketTest.java │ │ │ ├── HttpResponseParseTest.java │ │ │ ├── HttpSemanticsTest.java │ │ │ ├── LZMAEncodingTest.java │ │ │ ├── ParametersTest.java │ │ │ ├── RequestAttributesTest.java │ │ │ ├── RequestURITest.java │ │ │ ├── URIDecoderTest.java │ │ │ ├── io │ │ │ ├── ByteArrayClonerTest.java │ │ │ └── InputBufferTest.java │ │ │ └── util │ │ │ └── MimeHeadersTest.java │ │ └── resources │ │ ├── ssltest-cacerts.jks │ │ └── ssltest-keystore.jks ├── http2 │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── glassfish │ │ │ │ └── grizzly │ │ │ │ └── http2 │ │ │ │ ├── AggrCompletionHandler.java │ │ │ │ ├── AlpnClientNegotiatorImpl.java │ │ │ │ ├── AlpnNegotiatorBase.java │ │ │ │ ├── AlpnServerNegotiatorImpl.java │ │ │ │ ├── AlpnSupport.java │ │ │ │ ├── BundleQueue.java │ │ │ │ ├── DecoderUtils.java │ │ │ │ ├── DefaultInputBuffer.java │ │ │ │ ├── DefaultOutputSink.java │ │ │ │ ├── EncoderDecoderUtilsBase.java │ │ │ │ ├── EncoderUtils.java │ │ │ │ ├── HeaderDecodingException.java │ │ │ │ ├── HeadersDecoder.java │ │ │ │ ├── HeadersEncoder.java │ │ │ │ ├── Http2AddOn.java │ │ │ │ ├── Http2BaseFilter.java │ │ │ │ ├── Http2ClientFilter.java │ │ │ │ ├── Http2Configuration.java │ │ │ │ ├── Http2FrameCodec.java │ │ │ │ ├── Http2Header.java │ │ │ │ ├── Http2Packet.java │ │ │ │ ├── Http2Request.java │ │ │ │ ├── Http2Response.java │ │ │ │ ├── Http2ServerFilter.java │ │ │ │ ├── Http2Session.java │ │ │ │ ├── Http2SessionException.java │ │ │ │ ├── Http2SessionOutputSink.java │ │ │ │ ├── Http2State.java │ │ │ │ ├── Http2Stream.java │ │ │ │ ├── Http2StreamException.java │ │ │ │ ├── NetLogger.java │ │ │ │ ├── Node.java │ │ │ │ ├── Source.java │ │ │ │ ├── StreamInputBuffer.java │ │ │ │ ├── StreamOutputSink.java │ │ │ │ ├── Termination.java │ │ │ │ ├── UpgradeInputBuffer.java │ │ │ │ ├── UpgradeOutputSink.java │ │ │ │ ├── frames │ │ │ │ ├── CompressedHeadersBuilder.java │ │ │ │ ├── ContinuationFrame.java │ │ │ │ ├── DataFrame.java │ │ │ │ ├── ErrorCode.java │ │ │ │ ├── GoAwayFrame.java │ │ │ │ ├── HeaderBlockFragment.java │ │ │ │ ├── HeaderBlockHead.java │ │ │ │ ├── HeadersFrame.java │ │ │ │ ├── Http2Frame.java │ │ │ │ ├── PingFrame.java │ │ │ │ ├── PriorityFrame.java │ │ │ │ ├── PushPromiseFrame.java │ │ │ │ ├── RstStreamFrame.java │ │ │ │ ├── SettingsFrame.java │ │ │ │ ├── UnknownFrame.java │ │ │ │ └── WindowUpdateFrame.java │ │ │ │ ├── hpack │ │ │ │ ├── BinaryRepresentationWriter.java │ │ │ │ ├── BulkSizeUpdateWriter.java │ │ │ │ ├── Decoder.java │ │ │ │ ├── DecodingCallback.java │ │ │ │ ├── Encoder.java │ │ │ │ ├── HeaderTable.java │ │ │ │ ├── Huffman.java │ │ │ │ ├── ISO_8859_1.java │ │ │ │ ├── IndexNameValueWriter.java │ │ │ │ ├── IndexedWriter.java │ │ │ │ ├── IntegerReader.java │ │ │ │ ├── IntegerWriter.java │ │ │ │ ├── LiteralNeverIndexedWriter.java │ │ │ │ ├── LiteralWithIndexingWriter.java │ │ │ │ ├── LiteralWriter.java │ │ │ │ ├── SizeUpdateWriter.java │ │ │ │ ├── StringReader.java │ │ │ │ └── StringWriter.java │ │ │ │ └── utils │ │ │ │ └── ChunkedCompletionHandler.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── LICENSE.txt │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── glassfish │ │ │ └── grizzly │ │ │ └── http2 │ │ │ ├── AbstractHttp2Test.java │ │ │ ├── ConnectWithPriorKnowledgeTest.java │ │ │ ├── FileCacheTest.java │ │ │ ├── Http2SemanticsTest.java │ │ │ ├── HttpInputStreamsTest.java │ │ │ ├── HttpOutputStreamsTest.java │ │ │ ├── NIOInputSourcesTest.java │ │ │ ├── NIOOutputSinksTest.java │ │ │ ├── NaryTreeTest.java │ │ │ ├── NetworkListenerTest.java │ │ │ ├── PushTest.java │ │ │ └── TrailersTest.java │ │ └── resources │ │ ├── ssltest-cacerts.jks │ │ └── ssltest-keystore.jks ├── monitoring │ ├── grizzly │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── glassfish │ │ │ │ │ └── grizzly │ │ │ │ │ ├── memory │ │ │ │ │ └── jmx │ │ │ │ │ │ ├── ByteBufferManager.java │ │ │ │ │ │ ├── HeapMemoryManager.java │ │ │ │ │ │ └── MemoryManager.java │ │ │ │ │ ├── monitoring │ │ │ │ │ └── jmx │ │ │ │ │ │ ├── DefaultJmxManager.java │ │ │ │ │ │ └── JmxObject.java │ │ │ │ │ ├── nio │ │ │ │ │ └── transport │ │ │ │ │ │ └── jmx │ │ │ │ │ │ ├── NIOTransport.java │ │ │ │ │ │ ├── TCPNIOTransport.java │ │ │ │ │ │ └── UDPNIOTransport.java │ │ │ │ │ └── threadpool │ │ │ │ │ └── jmx │ │ │ │ │ └── ThreadPool.java │ │ │ └── resources │ │ │ │ └── META-INF │ │ │ │ └── LICENSE.txt │ │ │ └── test │ │ │ └── java │ │ │ └── org │ │ │ └── glassfish │ │ │ └── grizzly │ │ │ └── JmxBasicTest.java │ ├── http-server │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ ├── java │ │ │ └── org │ │ │ │ └── glassfish │ │ │ │ └── grizzly │ │ │ │ └── http │ │ │ │ └── server │ │ │ │ ├── filecache │ │ │ │ └── jmx │ │ │ │ │ └── FileCache.java │ │ │ │ └── jmx │ │ │ │ ├── HttpServer.java │ │ │ │ ├── HttpServerFilter.java │ │ │ │ └── NetworkListener.java │ │ │ ├── resources │ │ │ └── META-INF │ │ │ │ └── LICENSE.txt │ │ │ └── test │ │ │ └── org │ │ │ └── glassfish │ │ │ └── grizzly │ │ │ └── http │ │ │ └── server │ │ │ └── jmx │ │ │ └── HttpServerJMXTestCase.java │ ├── http │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ ├── java │ │ │ └── org │ │ │ │ └── glassfish │ │ │ │ └── grizzly │ │ │ │ └── http │ │ │ │ └── jmx │ │ │ │ ├── HttpCodecFilter.java │ │ │ │ └── KeepAlive.java │ │ │ └── resources │ │ │ └── META-INF │ │ │ └── LICENSE.txt │ └── pom.xml ├── pom.xml ├── portunif │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── glassfish │ │ │ │ └── grizzly │ │ │ │ └── portunif │ │ │ │ ├── BackChannelFilter.java │ │ │ │ ├── PUContext.java │ │ │ │ ├── PUFilter.java │ │ │ │ ├── PUProtocol.java │ │ │ │ ├── ProtocolFinder.java │ │ │ │ └── finders │ │ │ │ ├── HttpProtocolFinder.java │ │ │ │ └── SSLProtocolFinder.java │ │ └── resources │ │ │ └── META-INF │ │ │ └── LICENSE.txt │ │ └── test │ │ ├── java │ │ └── org │ │ │ └── glassfish │ │ │ └── grizzly │ │ │ └── portunif │ │ │ ├── AsyncPUTest.java │ │ │ ├── BasicPUTest.java │ │ │ ├── FilterChainReadTest.java │ │ │ └── SSLAndPlainTest.java │ │ └── resources │ │ ├── logging.properties │ │ ├── ssltest-cacerts.jks │ │ └── ssltest-keystore.jks └── websockets │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── org │ │ │ └── glassfish │ │ │ └── grizzly │ │ │ └── websockets │ │ │ ├── ArrayDecoder.java │ │ │ ├── ArrayEncoder.java │ │ │ ├── BaseFrameType.java │ │ │ ├── BaseWebSocketFilter.java │ │ │ ├── Broadcaster.java │ │ │ ├── ClosingFrame.java │ │ │ ├── Constants.java │ │ │ ├── DataFrame.java │ │ │ ├── DefaultWebSocket.java │ │ │ ├── DummyBroadcaster.java │ │ │ ├── Extension.java │ │ │ ├── FrameCompletionHandler.java │ │ │ ├── FrameType.java │ │ │ ├── FramingException.java │ │ │ ├── HandShake.java │ │ │ ├── HandshakeException.java │ │ │ ├── Masker.java │ │ │ ├── OptimizedBroadcaster.java │ │ │ ├── ParseResult.java │ │ │ ├── ProtocolError.java │ │ │ ├── ProtocolHandler.java │ │ │ ├── SecKey.java │ │ │ ├── SimpleWebSocket.java │ │ │ ├── Utf8DecodingError.java │ │ │ ├── Utf8Utils.java │ │ │ ├── Utils.java │ │ │ ├── Version.java │ │ │ ├── WebSocket.java │ │ │ ├── WebSocketAdapter.java │ │ │ ├── WebSocketAddOn.java │ │ │ ├── WebSocketApplication.java │ │ │ ├── WebSocketClientFilter.java │ │ │ ├── WebSocketEngine.java │ │ │ ├── WebSocketException.java │ │ │ ├── WebSocketFilter.java │ │ │ ├── WebSocketHolder.java │ │ │ ├── WebSocketListener.java │ │ │ ├── WebSocketMappingData.java │ │ │ ├── frametypes │ │ │ ├── BinaryFrameType.java │ │ │ ├── ClosingFrameType.java │ │ │ ├── ContinuationFrameType.java │ │ │ ├── PingFrameType.java │ │ │ ├── PongFrameType.java │ │ │ └── TextFrameType.java │ │ │ ├── glassfish │ │ │ └── GlassfishSupport.java │ │ │ └── rfc6455 │ │ │ ├── RFC6455HandShake.java │ │ │ └── RFC6455Handler.java │ └── resources │ │ └── META-INF │ │ └── LICENSE.txt │ └── test │ ├── java │ └── org │ │ └── glassfish │ │ └── grizzly │ │ └── websockets │ │ ├── BaseWebSocketTestUtilities.java │ │ ├── CountDownWebSocket.java │ │ ├── EchoApplication.java │ │ ├── EchoServlet.java │ │ ├── EchoWebSocketApplication.java │ │ ├── LifecycleTest.java │ │ ├── PingPongTest.java │ │ ├── RegistrationTest.java │ │ ├── ServerSideBroadcastTest.java │ │ ├── ServerSideTest.java │ │ ├── ServletBasedTest.java │ │ ├── TimeoutTest.java │ │ ├── TrackingWebSocket.java │ │ ├── WebSocketClient.java │ │ ├── WebSocketServer.java │ │ └── WebSocketsTest.java │ └── resources │ ├── ssltest-cacerts.jks │ └── ssltest-keystore.jks ├── pom.xml └── samples ├── connection-pool-samples ├── pom.xml └── src │ └── main │ └── java │ └── org │ └── glassfish │ └── grizzly │ └── samples │ └── connectionpool │ ├── ClientCallback.java │ ├── ClientFilter.java │ ├── EchoServer.java │ └── MultiEndpointPoolSample.java ├── framework-samples ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── glassfish │ │ └── grizzly │ │ └── samples │ │ ├── echo │ │ ├── ClientFilter.java │ │ ├── EchoClient.java │ │ ├── EchoFilter.java │ │ ├── EchoFilterAsync.java │ │ └── EchoServer.java │ │ ├── filterchain │ │ ├── GIOPClient.java │ │ ├── GIOPFilter.java │ │ ├── GIOPMessage.java │ │ └── GIOPServer.java │ │ ├── lifecycle │ │ ├── LifeCycleExample.java │ │ └── LifeCycleFilter.java │ │ ├── simpleauth │ │ ├── Client.java │ │ ├── ClientAuthFilter.java │ │ ├── ClientFilter.java │ │ ├── MultiLineFilter.java │ │ ├── MultiLinePacket.java │ │ ├── MultiStringFilter.java │ │ ├── Server.java │ │ └── ServerAuthFilter.java │ │ ├── ssl │ │ ├── SSLEchoClient.java │ │ └── SSLEchoServer.java │ │ ├── strategy │ │ └── CustomStrategy.java │ │ ├── tunnel │ │ ├── TunnelFilter.java │ │ └── TunnelServer.java │ │ ├── udpecho │ │ ├── EchoClient.java │ │ └── EchoServer.java │ │ └── udpmulticast │ │ ├── ChatCommand.java │ │ ├── MulticastChat.java │ │ └── PrintFilter.java │ └── resources │ ├── ssltest-cacerts.jks │ └── ssltest-keystore.jks ├── http-ajp-samples ├── pom.xml ├── readme.txt └── src │ └── main │ └── java │ └── org │ └── glassfish │ └── grizzly │ └── samples │ └── ajp │ └── AjpHelloWorld.java ├── http-jaxws-samples ├── pom.xml └── src │ └── main │ └── java │ └── org │ └── glassfish │ └── grizzly │ └── samples │ └── jaxws │ ├── Client.java │ ├── Server.java │ ├── addclient │ ├── Add.java │ ├── AddResponse.java │ ├── AddService.java │ ├── AddServiceService.java │ ├── ObjectFactory.java │ └── package-info.java │ └── service │ └── AddService.java ├── http-multipart-samples ├── pom.xml └── src │ └── main │ └── java │ └── org │ └── glassfish │ └── grizzly │ └── samples │ └── httpmultipart │ ├── FormHttpHandler.java │ ├── UploadServer.java │ └── UploaderHttpHandler.java ├── http-samples ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── glassfish │ │ └── grizzly │ │ └── samples │ │ └── http │ │ └── download │ │ ├── Client.java │ │ ├── ClientDownloadFilter.java │ │ ├── Server.java │ │ └── WebServerFilter.java │ └── resources │ ├── ssltest-cacerts.jks │ └── ssltest-keystore.jks ├── http-server-samples ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── glassfish │ │ └── grizzly │ │ └── samples │ │ └── httpserver │ │ ├── blockinghandler │ │ └── BlockingHttpHandlerSample.java │ │ ├── nonblockinghandler │ │ ├── DownloadHttpHandlerSample.java │ │ ├── NonBlockingHttpHandlerSample.java │ │ └── UploadHttpHandlerSample.java │ │ ├── priorities │ │ ├── HighPriorityHandler.java │ │ ├── LowPriorityHandler.java │ │ └── Server.java │ │ └── secure │ │ ├── Server.java │ │ └── SimpleHttpHandler.java │ └── resources │ └── ssltest-keystore.jks ├── pom.xml ├── portunif ├── pom.xml └── src │ └── main │ └── java │ └── org │ └── glassfish │ └── grizzly │ └── samples │ └── portunif │ ├── AddClient.java │ ├── HttpPUServer.java │ ├── PUServer.java │ ├── SubClient.java │ ├── addservice │ ├── AddClientMessageFilter.java │ ├── AddProtocolFinder.java │ ├── AddRequestMessage.java │ ├── AddResponseMessage.java │ ├── AddServerMessageFilter.java │ └── AddServiceFilter.java │ └── subservice │ ├── SubClientMessageFilter.java │ ├── SubProtocolFinder.java │ ├── SubRequestMessage.java │ ├── SubResponseMessage.java │ ├── SubServerMessageFilter.java │ └── SubServiceFilter.java └── tls-sni-samples ├── pom.xml └── src └── main ├── java └── org │ └── glassfish │ └── grizzly │ └── samples │ └── sni │ └── httpserver │ ├── FooBarSNIResolver.java │ ├── SNIAddOn.java │ ├── Server.java │ └── SimpleHttpHandler.java └── resources ├── bar.jks └── foo.jks /.gitignore: -------------------------------------------------------------------------------- 1 | *.ipr 2 | *.iml 3 | *.iws 4 | *.orig 5 | *.swp 6 | *~ 7 | atlassian-ide-plugin.xml 8 | target 9 | .idea 10 | nbactions.xml 11 | .classpath 12 | .project 13 | .settings/ 14 | modules/bundles/comet/src 15 | modules/bundles/core/src 16 | modules/bundles/http/src 17 | modules/bundles/http-all/src 18 | modules/bundles/http-servlet/src 19 | modules/bundles/websockets/src 20 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: java 2 | jdk: 3 | - oraclejdk8 4 | sudo: false 5 | script: mvn clean verify 6 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | #### :warning:This project is now part of the EE4J initiative. This repository has been archived as all activities are now happening in the [corresponding Eclipse repository](https://github.com/eclipse-ee4j/grizzly). See [here](https://www.eclipse.org/ee4j/status.php) for the overall EE4J transition status. 2 | 3 | --- 4 | 5 | --- 6 | 7 | # Source Code Submissions 8 | We welcome your contributions and look forward to collaborating with you. We can only accept source code repository 9 | submissions from users who have signed and returned the Oracle 10 | Contributor Agreement. You will find details and the agreement to sign at this OTN web page: 11 | [Oracle Contributor Agreement](http://www.oracle.com/technetwork/community/oca-486395.html). 12 | 13 | # Other Contrbutions 14 | For all project Submissions other than source code repository contributions, the following also applies: Oracle does 15 | not claim ownership of Your Submissions. However, in order to fulfill 16 | the purposes of this project, You must give Oracle and all Users 17 | the right to post, access, discuss, use, publish, disseminate, and refine 18 | Your Submissions. 19 | 20 | In legalese: *You hereby grant to Oracle and all 21 | Users a royalty-free, perpetual, irrevocable, worldwide, non-exclusive, 22 | and fully sub-licensable right and license, under Your intellectual 23 | property rights, to reproduce, modify, adapt, publish, translate, create 24 | derivative works from, distribute, perform, display, and use Your 25 | Submissions (in whole or part) and to incorporate or implement them in 26 | other works in any form, media, or technology now known or later 27 | developed, all subject to the obligation to retain any copyright notices 28 | included in Your Submissions. All Users, Oracle, and their 29 | sublicensees are responsible for any modifications they make to the 30 | Submissions of others.* 31 | 32 | Copyright © 2017 Oracle and/or its affiliates. All rights reserved 33 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | #### :warning:This project is now part of the EE4J initiative. This repository has been archived as all activities are now happening in the [corresponding Eclipse repository](https://github.com/eclipse-ee4j/grizzly). See [here](https://www.eclipse.org/ee4j/status.php) for the overall EE4J transition status. 2 | 3 | --- 4 | # Grizzly NIO 5 | 6 | Writing scalable server applications in the Java™ programming language 7 | has always been difficult. Before the advent of the Java New I/O API (NIO), 8 | thread management issues made it impossible for a server to scale to 9 | thousands of users. The Grizzly NIO framework has been designed to help 10 | developers to take advantage of the Java™ NIO API. Grizzly’s goal is to 11 | help developers to build scalable and robust servers using NIO as well 12 | as offering extended framework components: Web Framework (HTTP/S), 13 | WebSocket, Comet, and more! 14 | 15 | ## Getting Started 16 | 17 | Grizzly currently has several lines of development in the following 18 | branches: 19 | 20 | - 2.3.x : This is the sustaining branch for 2.3. (latest release is 2.3.33) 21 | - master : This is the sustaining branch for the most recent major release of Grizzly. (latest release is 2.4.2) 22 | - 3.0.x : This is our upcoming 3.0 release. Fair warning; it's not backwards compatible with previous releases. 23 | 24 | There are other branches for older releases of Grizzly that we don't 25 | actively maintain at this time, but we keep them for the history. 26 | 27 | 28 | ### Prerequisites 29 | 30 | We have different JDK requirements depending on the branch in use: 31 | 32 | - Oracle JDK 1.8 for master and 3.0.x branches. 33 | - Oracle JDK 1.7 for 2.3.x. 34 | 35 | Apache Maven 3.3.9 or later in order to build and run the tests. 36 | 37 | ### Installing 38 | 39 | See https://javaee.github.io/grizzly/dependencies.html for the maven 40 | coordinates of the 2.3.x release artifacts. 41 | 42 | If building in your local environment: 43 | 44 | ``` 45 | mvn clean install 46 | ``` 47 | 48 | 49 | ## Running the tests 50 | 51 | ``` 52 | mvn clean install 53 | ``` 54 | 55 | ## Contributing 56 | 57 | Please read [CONTRIBUTING.md](https://github.com/javaee/grizzly/blob/master/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us. 58 | 59 | ## License 60 | 61 | This project is licensed under the CDDLw/CPE - see the [LICENSE.txt](https://github.com/javaee/grizzly/blob/master/LICENSE.txt) file for details. 62 | 63 | -------------------------------------------------------------------------------- /copyright-exclude: -------------------------------------------------------------------------------- 1 | .apt 2 | .args 3 | .bundle 4 | .class 5 | .exe 6 | .gif 7 | .gitignore 8 | .ico 9 | .iml 10 | .ipr 11 | .iws 12 | .jar 13 | .jks 14 | .jpg 15 | .js 16 | .json 17 | .mm 18 | .ods 19 | .png 20 | .project 21 | .sql 22 | .svg 23 | .war 24 | .zip 25 | .dat 26 | /Grizzly_THIRDPARTYLICENSEREADME.txt 27 | /MANIFEST.MF 28 | /META-INF/services/ 29 | /README 30 | /behaviour.js 31 | /benchmark/runner/benchmark 32 | /catalog.cat 33 | /copyright-exclude 34 | /grizzlypex/readme 35 | /idea-files 36 | /javaee_5.xsd 37 | /javaee_6.xsd 38 | /javaee_web_services_client_1_2.xsd 39 | /javaee_web_services_client_1_3.xsd 40 | /jsp_2_1.xsd 41 | /jsp_2_2.xsd 42 | /last-occupied-test-port.info 43 | /license.txt 44 | /LICENSE.txt 45 | /manifest.mf 46 | /modules/benchmark/grizzlypex/GrizzlyPex.hudson 47 | /modules/benchmark/runner/fhb-runner 48 | /nbproject 49 | /prototype.js 50 | /readme.txt 51 | /web-app_2_5.xsd 52 | /web-app_3_0.xsd 53 | /web-common_3_0.xsd 54 | /xml.xsd 55 | /modules/http/src/main/java/org/glassfish/grizzly/http/util/Base64Utils.java 56 | /bom/pom.xml 57 | /CONTRIBUTING.md 58 | 59 | -------------------------------------------------------------------------------- /extras/connection-pool/src/main/resources/META-INF/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/extras/connection-pool/src/main/resources/META-INF/LICENSE.txt -------------------------------------------------------------------------------- /extras/grizzly-httpservice/src/main/etc/pax.args: -------------------------------------------------------------------------------- 1 | --log=INFO -------------------------------------------------------------------------------- /extras/grizzly-httpservice/src/main/resources/META-INF/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/extras/grizzly-httpservice/src/main/resources/META-INF/LICENSE.txt -------------------------------------------------------------------------------- /extras/grizzly-httpservice/src/site/apt/qstart.apt: -------------------------------------------------------------------------------- 1 | ------ 2 | Grizzly OSGi Http Service - Quick Start 3 | ------ 4 | Hubert Iwaniuk 5 | ------ 6 | ------ 7 | 8 | 9 | Grizzly OSGi Http Service Quick Start. 10 | 11 | Configuration parameters. 12 | 13 | Apart from standard OSGi Http Service parameters Grizzly has: 14 | 15 | * com.sun.grizzly.cometSupport - set it to true to enable Comet. -------------------------------------------------------------------------------- /extras/grizzly-httpservice/src/site/images/Activator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/extras/grizzly-httpservice/src/site/images/Activator.png -------------------------------------------------------------------------------- /extras/grizzly-httpservice/src/site/images/Grizzly OSGi HttpService.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/extras/grizzly-httpservice/src/site/images/Grizzly OSGi HttpService.png -------------------------------------------------------------------------------- /extras/grizzly-httpservice/src/site/images/GrizzlyOSGiHttpService.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/extras/grizzly-httpservice/src/site/images/GrizzlyOSGiHttpService.png -------------------------------------------------------------------------------- /extras/grizzly-httpservice/src/site/images/HttpServiceFactory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/extras/grizzly-httpservice/src/site/images/HttpServiceFactory.png -------------------------------------------------------------------------------- /extras/grizzly-httpservice/src/site/images/HttpServiceImpl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/extras/grizzly-httpservice/src/site/images/HttpServiceImpl.png -------------------------------------------------------------------------------- /extras/grizzly-httpservice/src/site/images/OSGiServletAdapter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/extras/grizzly-httpservice/src/site/images/OSGiServletAdapter.png -------------------------------------------------------------------------------- /extras/grizzly-httpservice/src/site/images/OSGiServletContext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/extras/grizzly-httpservice/src/site/images/OSGiServletContext.png -------------------------------------------------------------------------------- /extras/grizzly-httpservice/src/site/site.xml: -------------------------------------------------------------------------------- 1 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /extras/http-server-jaxws/src/main/resources/META-INF/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/extras/http-server-jaxws/src/main/resources/META-INF/LICENSE.txt -------------------------------------------------------------------------------- /extras/http-server-jaxws/src/test/java/org/glassfish/grizzly/jaxws/AddService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2011-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.jaxws; 42 | 43 | import javax.jws.WebService; 44 | import javax.jws.WebMethod; 45 | import javax.jws.WebParam; 46 | 47 | @WebService 48 | public class AddService { 49 | @WebMethod 50 | public int add(@WebParam(name="value1") int value1, @WebParam(name="value2") int value2) { 51 | return value1 + value2; 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /extras/http-server-jaxws/src/test/java/org/glassfish/grizzly/jaxws/addclient/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2011-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://jaxws.grizzly.glassfish.org/") 42 | package org.glassfish.grizzly.jaxws.addclient; 43 | -------------------------------------------------------------------------------- /extras/http-server-multipart/src/main/resources/META-INF/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/extras/http-server-multipart/src/main/resources/META-INF/LICENSE.txt -------------------------------------------------------------------------------- /extras/http-servlet-extras/src/main/resources/META-INF/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/extras/http-servlet-extras/src/main/resources/META-INF/LICENSE.txt -------------------------------------------------------------------------------- /extras/tls-sni/src/main/resources/META-INF/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/extras/tls-sni/src/main/resources/META-INF/LICENSE.txt -------------------------------------------------------------------------------- /extras/tls-sni/src/test/resources/ssltest-cacerts.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/extras/tls-sni/src/test/resources/ssltest-cacerts.jks -------------------------------------------------------------------------------- /extras/tls-sni/src/test/resources/ssltest-keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/extras/tls-sni/src/test/resources/ssltest-keystore.jks -------------------------------------------------------------------------------- /modules/comet/src/main/resources/META-INF/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/comet/src/main/resources/META-INF/LICENSE.txt -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/Appendable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly; 42 | 43 | /** 44 | * 45 | * @author Alexey Stashok 46 | */ 47 | public interface Appendable { 48 | T append(T element); 49 | } 50 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/Appender.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly; 42 | 43 | /** 44 | * 45 | * @author oleksiys 46 | */ 47 | public interface Appender { 48 | E append(E element1, E element2); 49 | } 50 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/Cacheable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly; 42 | 43 | /** 44 | * 45 | * @author oleksiys 46 | */ 47 | public interface Cacheable { 48 | void recycle(); 49 | } 50 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/ChangeListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly; 42 | 43 | /** 44 | * 45 | * @author Alexey Stashok 46 | */ 47 | public interface ChangeListener { 48 | void changed(E result); 49 | } 50 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/CloseListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2013-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly; 42 | 43 | import java.io.IOException; 44 | 45 | /** 46 | * The listener, which is used to be notified, when Connection gets closed. 47 | * While this interface is public, it's not intended for public consumption at this time. 48 | * This interface will be changing in 3.0. 49 | */ 50 | public interface CloseListener { 51 | void onClosed(T closeable, C type) throws IOException; 52 | } 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/CloseType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2013-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly; 42 | 43 | public enum CloseType implements ICloseType { 44 | LOCALLY, REMOTELY 45 | } 46 | 47 | 48 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/Codec.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2008-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly; 42 | 43 | /** 44 | * Codec is able to transform the original message to a custom represantation 45 | * and vise versa. 46 | * 47 | * @author Alexey Stashok 48 | */ 49 | public interface Codec { 50 | Transformer getDecoder(); 51 | 52 | Transformer getEncoder(); 53 | } 54 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/Copyable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2013-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly; 42 | 43 | /** 44 | * General interface for the objects, that could be copied/cloned. 45 | * 46 | * @author Alexey Stashok 47 | */ 48 | public interface Copyable { 49 | Object copy(); 50 | } 51 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/GenericCloseListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2013-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly; 42 | 43 | 44 | /** 45 | * This interface was added to 2.3 to avoid having to declare {@link CloseListener} with 46 | * parameter types. This interface will not be present in 3.0. In 3.0, it will 47 | * be required that all close listeners implement {@link CloseListener} without generic arguments. 48 | * 49 | * @since 2.3 50 | * 51 | * @deprecated 52 | */ 53 | @Deprecated 54 | public interface GenericCloseListener extends CloseListener{ 55 | 56 | } 57 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/ICloseType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2013-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly; 42 | 43 | /** 44 | * Added for backwards compatibility. This will be removed in 3.0. 45 | * @since 2.3 46 | * @deprecated 47 | */ 48 | @Deprecated 49 | public interface ICloseType { 50 | } 51 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/Result.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2008-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly; 42 | 43 | /** 44 | * Common I/O result interface. 45 | * 46 | * @author Alexey Stashok 47 | */ 48 | public interface Result extends Copyable { 49 | /** 50 | * Get {@link Connection}, associated with the result. 51 | * 52 | * @return {@link Connection}, associated with the result. 53 | */ 54 | Connection getConnection(); 55 | } 56 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/SocketAcceptor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2008-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly; 42 | 43 | import java.io.IOException; 44 | import java.util.concurrent.Future; 45 | 46 | /** 47 | * Common interface for SocketAcceptor implementations. 48 | * 49 | * @author Alexey Stashok 50 | */ 51 | public interface SocketAcceptor { 52 | /** 53 | * Accept a {@link Connection} 54 | * 55 | * @return {@link Future} 56 | * @throws java.io.IOException 57 | */ 58 | Future accept() throws IOException; 59 | } 60 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/asyncqueue/AsyncQueueEnabledTransport.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2008-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.asyncqueue; 42 | 43 | /** 44 | * Interface, which Transports should implement if they support AsyncQueues. 45 | * 46 | * @author Alexey Stashok 47 | */ 48 | public interface AsyncQueueEnabledTransport { 49 | /** 50 | * Get asynchronous queue implementation. 51 | * 52 | * @return asynchronous queue implementation. 53 | */ 54 | AsyncQueueIO getAsyncQueueIO(); 55 | } 56 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/asyncqueue/AsyncQueueReader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2008-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.asyncqueue; 42 | 43 | import org.glassfish.grizzly.Reader; 44 | 45 | /** 46 | * The {@link AsyncQueue}, which implements asynchronous read queue. 47 | * 48 | * @author Alexey Stashok 49 | */ 50 | public interface AsyncQueueReader extends Reader, AsyncQueue { 51 | } 52 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/filterchain/AbstractNextAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2008-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.filterchain; 42 | 43 | /** 44 | * Base implementation of {@link NextAction} 45 | * 46 | * @see NextAction 47 | * 48 | * @author Alexey Stashok 49 | */ 50 | abstract class AbstractNextAction implements NextAction { 51 | 52 | protected final int type; 53 | 54 | protected AbstractNextAction(int type) { 55 | this.type = type; 56 | } 57 | 58 | /** 59 | * {@inheritDoc} 60 | */ 61 | @Override 62 | public final int type() { 63 | return type; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/filterchain/CodecFilter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2008-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.filterchain; 42 | 43 | import org.glassfish.grizzly.Codec; 44 | 45 | /** 46 | * 47 | * @author Alexey Stashok 48 | */ 49 | public interface CodecFilter extends Filter, Codec { 50 | } 51 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/filterchain/FilterChainEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2008-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.filterchain; 42 | 43 | /** 44 | * 45 | * @author oleksiys 46 | */ 47 | public interface FilterChainEvent { 48 | Object type(); 49 | } 50 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/filterchain/NextAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2008-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.filterchain; 42 | 43 | /** 44 | * The interface defines the instruction for a {@link FilterChain}, 45 | * how it should continue filter chain execution. 46 | * 47 | * @see Filter 48 | * @see FilterChain 49 | * 50 | * @author Alexey Stashok 51 | */ 52 | public interface NextAction { 53 | /** 54 | * Get NextAction type 55 | * @return NextAction type 56 | */ 57 | int type(); 58 | } 59 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/filterchain/RerunChainAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2008-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.filterchain; 42 | 43 | /** 44 | * {@link NextAction} type, which is expected only on post processing phase. 45 | * Instructs {@link FilterChain} to re-process the {@link org.glassfish.grizzly.IOEvent} 46 | * processing again from the beginning. 47 | * 48 | * @author Alexey Stashok 49 | */ 50 | final class RerunChainAction extends AbstractNextAction { 51 | static final int TYPE = 3; 52 | 53 | RerunChainAction() { 54 | super(TYPE); 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/filterchain/RerunFilterAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.filterchain; 42 | 43 | /** 44 | * This {@link NextAction} instructs the {@link FilterChain} to rerun the same 45 | * {@link Filter} again. 46 | * 47 | * @author Alexey Stashok 48 | */ 49 | public class RerunFilterAction extends AbstractNextAction { 50 | static final int TYPE = 4; 51 | 52 | RerunFilterAction() { 53 | super(TYPE); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/filterchain/SuspendAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2008-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.filterchain; 42 | 43 | /** 44 | * {@link NextAction}, which instructs {@link FilterChain} to suspend filter 45 | * chain execution, both execute and post-execute phases. 46 | * 47 | * @author Alexey Stashok 48 | */ 49 | final class SuspendAction extends AbstractNextAction { 50 | static final int TYPE = 2; 51 | 52 | SuspendAction() { 53 | super(TYPE); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/localization/LocalizableMessageFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.localization; 42 | 43 | /** 44 | * @author WS Development Team 45 | */ 46 | public class LocalizableMessageFactory { 47 | 48 | private final String _bundlename; 49 | 50 | public LocalizableMessageFactory(String bundlename) { 51 | _bundlename = bundlename; 52 | } 53 | 54 | public Localizable getMessage(String key, Object... args) { 55 | return new LocalizableMessage(_bundlename, key, args); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/memory/ByteBufferAware.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.memory; 42 | 43 | import java.nio.ByteBuffer; 44 | 45 | /** 46 | * 47 | * @author oleksiys 48 | */ 49 | public interface ByteBufferAware { 50 | ByteBuffer allocateByteBuffer(int size); 51 | ByteBuffer allocateByteBufferAtLeast(int size); 52 | ByteBuffer reallocateByteBuffer(ByteBuffer oldByteBuffer, int newSize); 53 | void releaseByteBuffer(ByteBuffer byteBuffer); 54 | } 55 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/memory/ThreadLocalPool.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.memory; 42 | 43 | 44 | /** 45 | * TODO Documentation 46 | * 47 | * @param 48 | */ 49 | public interface ThreadLocalPool { 50 | void reset(E pool); 51 | 52 | E allocate(int size); 53 | 54 | E reallocate(E oldBuffer, int newSize); 55 | 56 | boolean release(E underlyingBuffer); 57 | 58 | boolean isLastAllocated(E oldBuffer); 59 | 60 | E reduceLastAllocated(E buffer); 61 | 62 | boolean wantReset(int size); 63 | 64 | int remaining(); 65 | 66 | boolean hasRemaining(); 67 | } 68 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/monitoring/MonitoringAware.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.monitoring; 42 | 43 | /** 44 | * General interface for the objects, which could be monitored during the lifecycle. 45 | * 46 | * @author Alexey Stashok 47 | */ 48 | public interface MonitoringAware { 49 | /** 50 | * Return the object associated {@link MonitoringConfig}. 51 | * 52 | * @return the object associated {@link MonitoringConfig}. 53 | */ 54 | MonitoringConfig getMonitoringConfig(); 55 | } 56 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/nio/SelectorHandlerTask.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.nio; 42 | 43 | import java.io.IOException; 44 | 45 | /** 46 | * Task, which may be registered on {@link SelectorHandler} and executed in a 47 | * Selector thread. 48 | * 49 | * @author Alexey Stashok 50 | */ 51 | public interface SelectorHandlerTask { 52 | boolean run(SelectorRunner selectorRunner) throws IOException; 53 | void cancel(); 54 | } 55 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/nio/tmpselectors/TemporarySelectorsEnabledTransport.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2008-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.nio.tmpselectors; 42 | 43 | /** 44 | * Common interface for Transports, which will use temporary selectors technics 45 | * 46 | * @author Alexey Stashok 47 | */ 48 | public interface TemporarySelectorsEnabledTransport { 49 | TemporarySelectorIO getTemporarySelectorIO(); 50 | } 51 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/utils/ExceptionHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2008-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.utils; 42 | 43 | /** 44 | * 45 | * @author oleksiys 46 | */ 47 | public interface ExceptionHandler { 48 | enum Severity {UNKNOWN, CONNECTION, TRANSPORT, FATAL} 49 | 50 | void notifyException(Severity severity, Throwable throwable); 51 | } 52 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/utils/GenericAdapter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2011-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.utils; 42 | 43 | /** 44 | * Generic Adapter interface. 45 | * 46 | * @author Alexey Stashok 47 | */ 48 | public interface GenericAdapter { 49 | V adapt(K result); 50 | } 51 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/utils/ObjectPool.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2008-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.utils; 42 | 43 | /** 44 | * Basic interface for object pool implementations 45 | * 46 | * @author Alexey Stashok 47 | */ 48 | public interface ObjectPool { 49 | E poll(); 50 | 51 | void offer(E object); 52 | 53 | void clear(); 54 | } 55 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/utils/PoolableObject.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2008-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.utils; 42 | 43 | /** 44 | * 45 | * @author oleksiys 46 | */ 47 | public interface PoolableObject { 48 | void prepare(); 49 | void release(); 50 | } 51 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/utils/ResultAware.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.utils; 42 | 43 | /** 44 | * 45 | * @author Alexey Stashok 46 | */ 47 | public interface ResultAware { 48 | void setResult(E result); 49 | } 50 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/utils/conditions/Condition.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2008-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.utils.conditions; 42 | 43 | /** 44 | * 45 | * @author oleksiys 46 | */ 47 | public interface Condition { 48 | boolean check(); 49 | } 50 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/java/org/glassfish/grizzly/version.properties: -------------------------------------------------------------------------------- 1 | # 2 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | # 4 | # Copyright (c) 2009-2017 Oracle and/or its affiliates. All rights reserved. 5 | # 6 | # The contents of this file are subject to the terms of either the GNU 7 | # General Public License Version 2 only ("GPL") or the Common Development 8 | # and Distribution License("CDDL") (collectively, the "License"). You 9 | # may not use this file except in compliance with the License. You can 10 | # obtain a copy of the License at 11 | # https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | # or LICENSE.txt. See the License for the specific 13 | # language governing permissions and limitations under the License. 14 | # 15 | # When distributing the software, include this License Header Notice in each 16 | # file and include the License file at LICENSE.txt. 17 | # 18 | # GPL Classpath Exception: 19 | # Oracle designates this particular file as subject to the "Classpath" 20 | # exception as provided by Oracle in the GPL Version 2 section of the License 21 | # file that accompanied this code. 22 | # 23 | # Modifications: 24 | # If applicable, add the following below the License Header, with the fields 25 | # enclosed by brackets [] replaced by your own identifying information: 26 | # "Portions Copyright [year] [name of copyright owner]" 27 | # 28 | # Contributor(s): 29 | # If you wish your version of this file to be governed by only the CDDL or 30 | # only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | # elects to include this software in this distribution under the [CDDL or GPL 32 | # Version 2] license." If you don't indicate a single choice of license, a 33 | # recipient has the option to distribute your version of this file under 34 | # either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | # its licensees as provided above. However, if you add GPL Version 2 code 36 | # and therefore, elected the GPL Version 2 license, then the option applies 37 | # only if the new code is made subject to such option by the copyright 38 | # holder. 39 | # 40 | 41 | grizzly.version=${pom.version} 42 | -------------------------------------------------------------------------------- /modules/grizzly/src/main/resources/META-INF/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/grizzly/src/main/resources/META-INF/LICENSE.txt -------------------------------------------------------------------------------- /modules/grizzly/src/test/java/org/glassfish/grizzly/GrizzlyTestCase.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly; 42 | 43 | import org.glassfish.grizzly.memory.ByteBufferWrapper; 44 | import junit.framework.TestCase; 45 | 46 | /** 47 | * 48 | * @author oleksiys 49 | */ 50 | public abstract class GrizzlyTestCase extends TestCase { 51 | 52 | @Override 53 | protected void setUp() throws Exception { 54 | super.setUp(); 55 | Grizzly.setTrackingThreadCache(true); 56 | ByteBufferWrapper.DEBUG_MODE = true; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /modules/grizzly/src/test/java/org/glassfish/grizzly/GrizzlyVersionTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2009-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly; 42 | 43 | /** 44 | * 45 | * @author Alexey Stashok 46 | */ 47 | public class GrizzlyVersionTest extends GrizzlyTestCase { 48 | public void testGrizzlyVersion() { 49 | System.out.println("Grizzly version: " + Grizzly.getDotedVersion()); 50 | assertNotSame("Major version is -1", -1, Grizzly.getMajorVersion()); 51 | assertNotSame("Minor version is -1", -1, Grizzly.getMinorVersion()); 52 | assertNotSame("wrong version", "no.version", Grizzly.getDotedVersion()); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /modules/grizzly/src/test/java/org/glassfish/grizzly/last-occupied-test-port.info: -------------------------------------------------------------------------------- 1 | ProtocolChainCodecTest: 7789 -------------------------------------------------------------------------------- /modules/grizzly/src/test/resources/ssltest-cacerts.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/grizzly/src/test/resources/ssltest-cacerts.jks -------------------------------------------------------------------------------- /modules/grizzly/src/test/resources/ssltest-keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/grizzly/src/test/resources/ssltest-keystore.jks -------------------------------------------------------------------------------- /modules/http-ajp/src/main/java/org/glassfish/grizzly/http/ajp/AjpHttpResponse.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2011-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http.ajp; 42 | 43 | import org.glassfish.grizzly.http.HttpResponsePacket; 44 | import org.glassfish.grizzly.http.ProcessingState; 45 | 46 | /** 47 | * {@link HttpResponsePacket} implementation, which also contains AJP 48 | * related meta data. 49 | * 50 | * @author Alexey Stashok 51 | */ 52 | public final class AjpHttpResponse extends HttpResponsePacket { 53 | 54 | @Override 55 | public ProcessingState getProcessingState() { 56 | return getRequest().getProcessingState(); 57 | } 58 | 59 | } 60 | -------------------------------------------------------------------------------- /modules/http-ajp/src/main/java/org/glassfish/grizzly/http/ajp/ShutdownHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http.ajp; 42 | 43 | import org.glassfish.grizzly.Connection; 44 | 45 | /** 46 | * Handler, which will be called, once Ajp shutdown message received. 47 | * 48 | * @author Alexey Stashok 49 | */ 50 | public interface ShutdownHandler { 51 | /** 52 | * Method is called once AjpHandlerFilter received shutdown message. 53 | * 54 | * @param initiator peer {@link Connection} the shutdown request has been 55 | * received from. 56 | */ 57 | void onShutdown(final Connection initiator); 58 | } 59 | -------------------------------------------------------------------------------- /modules/http-ajp/src/main/resources/META-INF/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/http-ajp/src/main/resources/META-INF/LICENSE.txt -------------------------------------------------------------------------------- /modules/http-ajp/src/test/resources/form-params-payload1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/http-ajp/src/test/resources/form-params-payload1.dat -------------------------------------------------------------------------------- /modules/http-ajp/src/test/resources/form-params-payload2.dat: -------------------------------------------------------------------------------- 1 | 4A?title=Developing+PaaS+Components&authors=Shalini+M&price=100%24 -------------------------------------------------------------------------------- /modules/http-ajp/src/test/resources/get-secured.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/http-ajp/src/test/resources/get-secured.dat -------------------------------------------------------------------------------- /modules/http-ajp/src/test/resources/null-attr-payload.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/http-ajp/src/test/resources/null-attr-payload.dat -------------------------------------------------------------------------------- /modules/http-ajp/src/test/resources/peer-addr-check.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/http-ajp/src/test/resources/peer-addr-check.dat -------------------------------------------------------------------------------- /modules/http-server/src/main/java/org/glassfish/grizzly/http/server/LocaleParser.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2013-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http.server; 42 | 43 | import java.util.Locale; 44 | 45 | interface LocaleParser { 46 | 47 | Locale parseLocale(final String source); 48 | 49 | } 50 | -------------------------------------------------------------------------------- /modules/http-server/src/main/java/org/glassfish/grizzly/http/server/State.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2013-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http.server; 42 | 43 | /** 44 | * Network component (like {@link HttpServer} or {@link NetworkListener}) state. 45 | */ 46 | enum State { 47 | RUNNING, PAUSED, STOPPING, STOPPED 48 | } 49 | -------------------------------------------------------------------------------- /modules/http-server/src/main/java/org/glassfish/grizzly/http/server/TagLocaleParser.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2013-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http.server; 42 | 43 | import java.util.Locale; 44 | 45 | class TagLocaleParser implements LocaleParser { 46 | 47 | 48 | // ------------------------------------------------ Methods from LocalParser 49 | 50 | 51 | @Override 52 | public Locale parseLocale(String source) { 53 | Locale l = Locale.forLanguageTag(source); 54 | return (l.getLanguage().isEmpty() ? null : l); 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /modules/http-server/src/main/java/org/glassfish/grizzly/http/server/io/ReadHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http.server.io; 42 | /** 43 | *

44 | * This class represents a call-back mechanism that will notify implementations 45 | * as HTTP request data becomes available to read without blocking. 46 | *

47 | * 48 | * @since 2.0 49 | * 50 | * @deprecated please use {@link org.glassfish.grizzly.ReadHandler} 51 | */ 52 | public interface ReadHandler extends org.glassfish.grizzly.ReadHandler { 53 | } 54 | -------------------------------------------------------------------------------- /modules/http-server/src/main/java/org/glassfish/grizzly/http/server/io/WriteHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http.server.io; 42 | 43 | 44 | /** 45 | * Callback notification mechanism that signals the developer it's possible 46 | * to write content. 47 | * 48 | * @since 2.0 49 | * 50 | * @deprecated please use {@link org.glassfish.grizzly.WriteHandler} 51 | */ 52 | public interface WriteHandler extends org.glassfish.grizzly.WriteHandler { 53 | } 54 | -------------------------------------------------------------------------------- /modules/http-server/src/main/java/org/glassfish/grizzly/http/server/naming/DirContext.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2013-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http.server.naming; 42 | 43 | /** 44 | * The directory service interface, containing 45 | * methods for examining and updating attributes 46 | * associated with objects, and for searching the directory. 47 | * 48 | * @see javax.naming.directory.DirContext 49 | * 50 | * @author Grizzly Team 51 | */ 52 | public interface DirContext extends NamingContext { 53 | } 54 | -------------------------------------------------------------------------------- /modules/http-server/src/main/java/org/glassfish/grizzly/http/server/util/DispatcherHelper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2011-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http.server.util; 42 | 43 | import org.glassfish.grizzly.http.HttpRequestPacket; 44 | import org.glassfish.grizzly.http.util.DataChunk; 45 | 46 | /** 47 | * Interface simplifies by path or name mapping. 48 | * 49 | * @author Alexey Stashok 50 | */ 51 | public interface DispatcherHelper { 52 | void mapPath(HttpRequestPacket requestPacket, DataChunk path, MappingData mappingData) 53 | throws Exception; 54 | 55 | void mapName(DataChunk name, MappingData mappingData) throws Exception; 56 | } 57 | -------------------------------------------------------------------------------- /modules/http-server/src/main/resources/META-INF/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/http-server/src/main/resources/META-INF/LICENSE.txt -------------------------------------------------------------------------------- /modules/http-server/src/test/resources/clhandler/a/index.html: -------------------------------------------------------------------------------- 1 | 42 | 43 | Welcome file from a folder #2 44 | -------------------------------------------------------------------------------- /modules/http-server/src/test/resources/clhandler/index.html: -------------------------------------------------------------------------------- 1 | 42 | 43 | Welcome file from a folder #1 44 | -------------------------------------------------------------------------------- /modules/http-server/src/test/resources/clhandler/welcome.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/http-server/src/test/resources/clhandler/welcome.jar -------------------------------------------------------------------------------- /modules/http-server/src/test/resources/ssltest-cacerts.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/http-server/src/test/resources/ssltest-cacerts.jks -------------------------------------------------------------------------------- /modules/http-server/src/test/resources/ssltest-keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/http-server/src/test/resources/ssltest-keystore.jks -------------------------------------------------------------------------------- /modules/http-servlet/src/main/java/org/glassfish/grizzly/servlet/FilterChainInvoker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2011-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.servlet; 42 | 43 | import javax.servlet.ServletException; 44 | import javax.servlet.ServletRequest; 45 | import javax.servlet.ServletResponse; 46 | import java.io.IOException; 47 | 48 | public interface FilterChainInvoker { 49 | 50 | void invokeFilterChain(ServletRequest request, ServletResponse response) 51 | throws IOException, ServletException; 52 | 53 | } 54 | -------------------------------------------------------------------------------- /modules/http-servlet/src/test/resources/jsps/index.jsp: -------------------------------------------------------------------------------- 1 | 42 | 43 | <%=request.getRequestURI()%> 44 | -------------------------------------------------------------------------------- /modules/http-servlet/src/test/resources/test-keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/http-servlet/src/test/resources/test-keystore.jks -------------------------------------------------------------------------------- /modules/http-servlet/src/test/resources/test-truststore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/http-servlet/src/test/resources/test-truststore.jks -------------------------------------------------------------------------------- /modules/http/src/main/java/org/glassfish/grizzly/http/ContentEncodingException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http; 42 | 43 | /** 44 | * 45 | * @author oleksiys 46 | */ 47 | public class ContentEncodingException extends IllegalStateException { 48 | public ContentEncodingException() { 49 | } 50 | 51 | public ContentEncodingException(String s) { 52 | super(s); 53 | } 54 | 55 | public ContentEncodingException(Throwable cause) { 56 | super(cause); 57 | } 58 | 59 | public ContentEncodingException(String message, Throwable cause) { 60 | super(message, cause); 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /modules/http/src/main/java/org/glassfish/grizzly/http/EncodingFilter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http; 42 | 43 | /** 44 | * 45 | * @author oleksiys 46 | */ 47 | public interface EncodingFilter { 48 | boolean applyEncoding(final HttpHeader httpPacket); 49 | boolean applyDecoding(final HttpHeader httpPacket); 50 | } 51 | -------------------------------------------------------------------------------- /modules/http/src/main/java/org/glassfish/grizzly/http/HttpPacketParsing.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http; 42 | 43 | import org.glassfish.grizzly.http.util.MimeHeaders; 44 | 45 | /** 46 | * 47 | * @author oleksiys 48 | */ 49 | public interface HttpPacketParsing { 50 | boolean isHeaderParsed(); 51 | 52 | void setHeaderParsed(boolean isHeaderParsed); 53 | 54 | HttpCodecFilter.HeaderParsingState getHeaderParsingState(); 55 | 56 | HttpCodecFilter.ContentParsingState getContentParsingState(); 57 | 58 | MimeHeaders getHeaders(); 59 | } 60 | -------------------------------------------------------------------------------- /modules/http/src/main/java/org/glassfish/grizzly/http/Note.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2011-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http; 42 | 43 | import org.glassfish.grizzly.attributes.Attribute; 44 | 45 | /** 46 | * The Note value associated with HttpRequestPacket. 47 | * 48 | * @author Alexey Stashok 49 | */ 50 | public final class Note { 51 | 52 | final Attribute attribute; 53 | 54 | Note(Attribute attribute) { 55 | this.attribute = attribute; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /modules/http/src/main/java/org/glassfish/grizzly/http/io/NIOInputStream.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http.io; 42 | 43 | import java.io.InputStream; 44 | 45 | /** 46 | * Stream implementation to read binary request content. 47 | * 48 | * @since 2.0 49 | */ 50 | public abstract class NIOInputStream extends InputStream 51 | implements BinaryNIOInputSource { 52 | 53 | } 54 | -------------------------------------------------------------------------------- /modules/http/src/main/java/org/glassfish/grizzly/http/io/NIOOutputStream.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http.io; 42 | 43 | 44 | import java.io.OutputStream; 45 | 46 | /** 47 | * Stream implementation for writing binary content to an HTTP user-agent. 48 | * 49 | * @since 2.0 50 | */ 51 | public abstract class NIOOutputStream extends OutputStream 52 | implements BinaryNIOOutputSink { 53 | 54 | } 55 | -------------------------------------------------------------------------------- /modules/http/src/main/java/org/glassfish/grizzly/http/io/NIOReader.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http.io; 42 | 43 | 44 | import org.glassfish.grizzly.InputSource; 45 | 46 | import java.io.Reader; 47 | 48 | /** 49 | * Character stream implementation used to read character-based request 50 | * content. 51 | * 52 | * @since 2.0 53 | */ 54 | public abstract class NIOReader extends Reader implements InputSource { 55 | } 56 | -------------------------------------------------------------------------------- /modules/http/src/main/java/org/glassfish/grizzly/http/io/NIOWriter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http.io; 42 | 43 | 44 | import org.glassfish.grizzly.OutputSink; 45 | 46 | import java.io.Writer; 47 | 48 | /** 49 | * Stream implementation for writing character content to an HTTP user-agent. 50 | * 51 | * @since 2.0 52 | */ 53 | public abstract class NIOWriter extends Writer implements OutputSink { 54 | } 55 | -------------------------------------------------------------------------------- /modules/http/src/main/java/org/glassfish/grizzly/http/util/version.properties: -------------------------------------------------------------------------------- 1 | # 2 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | # 4 | # Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | # 6 | # The contents of this file are subject to the terms of either the GNU 7 | # General Public License Version 2 only ("GPL") or the Common Development 8 | # and Distribution License("CDDL") (collectively, the "License"). You 9 | # may not use this file except in compliance with the License. You can 10 | # obtain a copy of the License at 11 | # https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | # or LICENSE.txt. See the License for the specific 13 | # language governing permissions and limitations under the License. 14 | # 15 | # When distributing the software, include this License Header Notice in each 16 | # file and include the License file at LICENSE.txt. 17 | # 18 | # GPL Classpath Exception: 19 | # Oracle designates this particular file as subject to the "Classpath" 20 | # exception as provided by Oracle in the GPL Version 2 section of the License 21 | # file that accompanied this code. 22 | # 23 | # Modifications: 24 | # If applicable, add the following below the License Header, with the fields 25 | # enclosed by brackets [] replaced by your own identifying information: 26 | # "Portions Copyright [year] [name of copyright owner]" 27 | # 28 | # Contributor(s): 29 | # If you wish your version of this file to be governed by only the CDDL or 30 | # only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | # elects to include this software in this distribution under the [CDDL or GPL 32 | # Version 2] license." If you don't indicate a single choice of license, a 33 | # recipient has the option to distribute your version of this file under 34 | # either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | # its licensees as provided above. However, if you add GPL Version 2 code 36 | # and therefore, elected the GPL Version 2 license, then the option applies 37 | # only if the new code is made subject to such option by the copyright 38 | # holder. 39 | # 40 | 41 | grizzly.version=${pom.version} 42 | -------------------------------------------------------------------------------- /modules/http/src/main/resources/META-INF/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/http/src/main/resources/META-INF/LICENSE.txt -------------------------------------------------------------------------------- /modules/http/src/test/resources/ssltest-cacerts.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/http/src/test/resources/ssltest-cacerts.jks -------------------------------------------------------------------------------- /modules/http/src/test/resources/ssltest-keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/http/src/test/resources/ssltest-keystore.jks -------------------------------------------------------------------------------- /modules/http2/src/main/java/org/glassfish/grizzly/http2/AlpnNegotiatorBase.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http2; 42 | 43 | 44 | class AlpnNegotiatorBase { 45 | 46 | /** 47 | * ALPN token for HTTP/1.1. 48 | */ 49 | static final String HTTP11 = "http/1.1"; 50 | 51 | /** 52 | * ALPN token for HTTP/2.0. 53 | */ 54 | static final String HTTP2 = "h2"; 55 | 56 | /** 57 | * Supported protocols for negotiation. 58 | */ 59 | static final String[] SUPPORTED_PROTOCOLS = new String[] { HTTP2, HTTP11 }; 60 | } 61 | -------------------------------------------------------------------------------- /modules/http2/src/main/java/org/glassfish/grizzly/http2/EncoderDecoderUtilsBase.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http2; 42 | 43 | class EncoderDecoderUtilsBase { 44 | 45 | static final String AUTHORITY_HEADER = ":authority"; 46 | 47 | static final String METHOD_HEADER = ":method"; 48 | 49 | static final String PATH_HEADER = ":path"; 50 | 51 | static final String SCHEMA_HEADER = ":scheme"; 52 | 53 | static final String STATUS_HEADER = ":status"; 54 | 55 | } 56 | -------------------------------------------------------------------------------- /modules/http2/src/main/java/org/glassfish/grizzly/http2/Http2Header.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2012-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http2; 42 | 43 | /** 44 | * 45 | * @author oleksiys 46 | */ 47 | interface Http2Header extends Http2Packet { 48 | void setExpectContent(boolean isExpectContent); 49 | } 50 | -------------------------------------------------------------------------------- /modules/http2/src/main/java/org/glassfish/grizzly/http2/Http2Packet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2012-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http2; 42 | 43 | /** 44 | * 45 | * @author oleksiys 46 | */ 47 | public interface Http2Packet { 48 | Http2Stream getHttp2Stream(); 49 | } 50 | -------------------------------------------------------------------------------- /modules/http2/src/main/java/org/glassfish/grizzly/http2/hpack/BinaryRepresentationWriter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2015-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http2.hpack; 42 | 43 | import org.glassfish.grizzly.Buffer; 44 | 45 | 46 | interface BinaryRepresentationWriter { 47 | 48 | boolean write(HeaderTable table, Buffer destination); 49 | 50 | BinaryRepresentationWriter reset(); 51 | } 52 | -------------------------------------------------------------------------------- /modules/http2/src/main/java/org/glassfish/grizzly/http2/hpack/LiteralNeverIndexedWriter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2016-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http2.hpack; 42 | 43 | final class LiteralNeverIndexedWriter extends IndexNameValueWriter { 44 | 45 | LiteralNeverIndexedWriter() { 46 | super(0b0001_0000, 4); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /modules/http2/src/main/java/org/glassfish/grizzly/http2/hpack/LiteralWriter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2016-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.http2.hpack; 42 | 43 | final class LiteralWriter extends IndexNameValueWriter { 44 | 45 | LiteralWriter() { 46 | super(0b0000_0000, 4); 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /modules/http2/src/main/resources/META-INF/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/http2/src/main/resources/META-INF/LICENSE.txt -------------------------------------------------------------------------------- /modules/http2/src/test/resources/ssltest-cacerts.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/http2/src/test/resources/ssltest-cacerts.jks -------------------------------------------------------------------------------- /modules/http2/src/test/resources/ssltest-keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/http2/src/test/resources/ssltest-keystore.jks -------------------------------------------------------------------------------- /modules/monitoring/grizzly/src/main/resources/META-INF/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/monitoring/grizzly/src/main/resources/META-INF/LICENSE.txt -------------------------------------------------------------------------------- /modules/monitoring/http-server/src/main/resources/META-INF/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/monitoring/http-server/src/main/resources/META-INF/LICENSE.txt -------------------------------------------------------------------------------- /modules/monitoring/http/src/main/resources/META-INF/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/monitoring/http/src/main/resources/META-INF/LICENSE.txt -------------------------------------------------------------------------------- /modules/portunif/src/main/resources/META-INF/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/portunif/src/main/resources/META-INF/LICENSE.txt -------------------------------------------------------------------------------- /modules/portunif/src/test/resources/ssltest-cacerts.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/portunif/src/test/resources/ssltest-cacerts.jks -------------------------------------------------------------------------------- /modules/portunif/src/test/resources/ssltest-keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/portunif/src/test/resources/ssltest-keystore.jks -------------------------------------------------------------------------------- /modules/websockets/src/main/java/org/glassfish/grizzly/websockets/ArrayDecoder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2011-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.websockets; 42 | 43 | /* 44 | * FastPath byte[]->char[] decoder, REPLACE on malformed or 45 | * unmappable input. 46 | */ 47 | interface ArrayDecoder { 48 | 49 | int decode(byte[] src, int off, int len, char[] dst); 50 | 51 | } 52 | -------------------------------------------------------------------------------- /modules/websockets/src/main/java/org/glassfish/grizzly/websockets/ArrayEncoder.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2011-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.websockets; 42 | 43 | /* 44 | * FastPath char[]->byte[] encoder, REPLACE on malformed input or 45 | * unmappable input. 46 | */ 47 | 48 | interface ArrayEncoder { 49 | int encode(char[] src, int off, int len, byte[] dst); 50 | } 51 | -------------------------------------------------------------------------------- /modules/websockets/src/main/java/org/glassfish/grizzly/websockets/BaseFrameType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2011-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.websockets; 42 | 43 | public abstract class BaseFrameType implements FrameType { 44 | 45 | public void setPayload(DataFrame frame, byte[] data) { 46 | frame.setPayload(data); 47 | } 48 | 49 | public byte[] getBytes(DataFrame dataFrame) { 50 | return dataFrame.getBytes(); 51 | } 52 | 53 | public DataFrame create(boolean fin, byte[] data) { 54 | return new DataFrame(this, data, fin); 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /modules/websockets/src/main/java/org/glassfish/grizzly/websockets/FrameType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2010-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.websockets; 42 | 43 | public interface FrameType { 44 | void respond(WebSocket socket, DataFrame frame); 45 | 46 | void setPayload(DataFrame frame, byte[] data); 47 | 48 | byte[] getBytes(DataFrame dataFrame); 49 | 50 | DataFrame create(boolean fin, byte[] data); 51 | } 52 | -------------------------------------------------------------------------------- /modules/websockets/src/main/java/org/glassfish/grizzly/websockets/FramingException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2011-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.websockets; 42 | 43 | public abstract class FramingException extends WebSocketException { 44 | private int code = -1; 45 | 46 | public FramingException(String s) { 47 | super(s); 48 | } 49 | 50 | public FramingException(String s, Throwable throwable) { 51 | super(s, throwable); 52 | } 53 | 54 | public FramingException(Throwable throwable) { 55 | super(throwable); 56 | } 57 | 58 | public abstract int getClosingCode(); 59 | } 60 | -------------------------------------------------------------------------------- /modules/websockets/src/main/java/org/glassfish/grizzly/websockets/WebSocketException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2011-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.websockets; 42 | 43 | public class WebSocketException extends RuntimeException { 44 | public WebSocketException(String message) { 45 | super(message); 46 | } 47 | 48 | public WebSocketException(String message, Throwable throwable) { 49 | super(message, throwable); 50 | } 51 | public WebSocketException(Throwable throwable) { 52 | super(throwable); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /modules/websockets/src/main/java/org/glassfish/grizzly/websockets/WebSocketMappingData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2014-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.websockets; 42 | 43 | import org.glassfish.grizzly.http.server.util.MappingData; 44 | 45 | /** 46 | * Mapping information to be filled out during 47 | * the {@link WebSocketApplication} discovery. 48 | * 49 | * @author Alexey Stashok 50 | */ 51 | public class WebSocketMappingData extends MappingData { 52 | 53 | public WebSocketMappingData(final boolean isGlassfish) { 54 | this.isGlassfish = isGlassfish; 55 | } 56 | 57 | public final boolean isGlassfish; 58 | } 59 | -------------------------------------------------------------------------------- /modules/websockets/src/main/java/org/glassfish/grizzly/websockets/frametypes/PingFrameType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2011-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.websockets.frametypes; 42 | 43 | import org.glassfish.grizzly.websockets.BaseFrameType; 44 | import org.glassfish.grizzly.websockets.DataFrame; 45 | import org.glassfish.grizzly.websockets.WebSocket; 46 | 47 | public class PingFrameType extends BaseFrameType { 48 | public void respond(WebSocket socket, DataFrame frame) { 49 | socket.onPing(frame); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /modules/websockets/src/main/java/org/glassfish/grizzly/websockets/frametypes/PongFrameType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2011-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.websockets.frametypes; 42 | 43 | import org.glassfish.grizzly.websockets.BaseFrameType; 44 | import org.glassfish.grizzly.websockets.DataFrame; 45 | import org.glassfish.grizzly.websockets.WebSocket; 46 | 47 | public class PongFrameType extends BaseFrameType { 48 | public void respond(WebSocket socket, DataFrame frame) { 49 | socket.onPong(frame); 50 | } 51 | 52 | } 53 | -------------------------------------------------------------------------------- /modules/websockets/src/main/resources/META-INF/LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/websockets/src/main/resources/META-INF/LICENSE.txt -------------------------------------------------------------------------------- /modules/websockets/src/test/java/org/glassfish/grizzly/websockets/EchoApplication.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2011-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.websockets; 42 | 43 | import org.glassfish.grizzly.http.HttpRequestPacket; 44 | 45 | public class EchoApplication extends WebSocketApplication { 46 | @Override 47 | public boolean isApplicationRequest(HttpRequestPacket request) { 48 | return "/echo".equals(request.getRequestURI()); 49 | } 50 | 51 | public void onMessage(WebSocket socket, String data) { 52 | socket.send(data); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /modules/websockets/src/test/resources/ssltest-cacerts.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/websockets/src/test/resources/ssltest-cacerts.jks -------------------------------------------------------------------------------- /modules/websockets/src/test/resources/ssltest-keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/modules/websockets/src/test/resources/ssltest-keystore.jks -------------------------------------------------------------------------------- /samples/framework-samples/src/main/resources/ssltest-cacerts.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/samples/framework-samples/src/main/resources/ssltest-cacerts.jks -------------------------------------------------------------------------------- /samples/framework-samples/src/main/resources/ssltest-keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/samples/framework-samples/src/main/resources/ssltest-keystore.jks -------------------------------------------------------------------------------- /samples/http-jaxws-samples/src/main/java/org/glassfish/grizzly/samples/jaxws/addclient/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2011-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | @javax.xml.bind.annotation.XmlSchema(namespace = "http://jaxws.grizzly.glassfish.org/") 42 | package org.glassfish.grizzly.samples.jaxws.addclient; 43 | -------------------------------------------------------------------------------- /samples/http-jaxws-samples/src/main/java/org/glassfish/grizzly/samples/jaxws/service/AddService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 | * 4 | * Copyright (c) 2011-2017 Oracle and/or its affiliates. All rights reserved. 5 | * 6 | * The contents of this file are subject to the terms of either the GNU 7 | * General Public License Version 2 only ("GPL") or the Common Development 8 | * and Distribution License("CDDL") (collectively, the "License"). You 9 | * may not use this file except in compliance with the License. You can 10 | * obtain a copy of the License at 11 | * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 | * or LICENSE.txt. See the License for the specific 13 | * language governing permissions and limitations under the License. 14 | * 15 | * When distributing the software, include this License Header Notice in each 16 | * file and include the License file at LICENSE.txt. 17 | * 18 | * GPL Classpath Exception: 19 | * Oracle designates this particular file as subject to the "Classpath" 20 | * exception as provided by Oracle in the GPL Version 2 section of the License 21 | * file that accompanied this code. 22 | * 23 | * Modifications: 24 | * If applicable, add the following below the License Header, with the fields 25 | * enclosed by brackets [] replaced by your own identifying information: 26 | * "Portions Copyright [year] [name of copyright owner]" 27 | * 28 | * Contributor(s): 29 | * If you wish your version of this file to be governed by only the CDDL or 30 | * only the GPL Version 2, indicate your decision by adding "[Contributor] 31 | * elects to include this software in this distribution under the [CDDL or GPL 32 | * Version 2] license." If you don't indicate a single choice of license, a 33 | * recipient has the option to distribute your version of this file under 34 | * either the CDDL, the GPL Version 2 or to extend the choice of license to 35 | * its licensees as provided above. However, if you add GPL Version 2 code 36 | * and therefore, elected the GPL Version 2 license, then the option applies 37 | * only if the new code is made subject to such option by the copyright 38 | * holder. 39 | */ 40 | 41 | package org.glassfish.grizzly.samples.jaxws.service; 42 | 43 | import javax.jws.WebService; 44 | import javax.jws.WebMethod; 45 | import javax.jws.WebParam; 46 | 47 | /** 48 | * Simple "add" web service implementation. 49 | * 50 | * @author Alexey Stashok 51 | */ 52 | @WebService 53 | public class AddService { 54 | @WebMethod 55 | public int add(@WebParam(name="value1") int value1, @WebParam(name="value2") int value2) { 56 | return value1 + value2; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /samples/http-samples/src/main/resources/ssltest-cacerts.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/samples/http-samples/src/main/resources/ssltest-cacerts.jks -------------------------------------------------------------------------------- /samples/http-samples/src/main/resources/ssltest-keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/samples/http-samples/src/main/resources/ssltest-keystore.jks -------------------------------------------------------------------------------- /samples/http-server-samples/src/main/resources/ssltest-keystore.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/samples/http-server-samples/src/main/resources/ssltest-keystore.jks -------------------------------------------------------------------------------- /samples/tls-sni-samples/src/main/resources/bar.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/samples/tls-sni-samples/src/main/resources/bar.jks -------------------------------------------------------------------------------- /samples/tls-sni-samples/src/main/resources/foo.jks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/javaee/grizzly/c704aa684f47abd38a7a8ac9f044e65e928270ef/samples/tls-sni-samples/src/main/resources/foo.jks --------------------------------------------------------------------------------