Skip navigation links
  • Overview
  • Package
  • Class
  • Use
  • Tree
  • Deprecated
  • Index
  • Help

Deprecated API

Contents

  • Terminally Deprecated
  • Interfaces
  • Classes
  • Enum Classes
  • Fields
  • Methods
  • Constructors
  • Terminally Deprecated Elements
    Element
    Description
    jakarta.servlet.http.Cookie.getComment()
    This is no longer required with RFC 6265
    jakarta.servlet.http.Cookie.getVersion()
    This is no longer required with RFC 6265
    jakarta.servlet.http.Cookie.setComment(String)
    This is no longer required with RFC 6265
    jakarta.servlet.http.Cookie.setVersion(int)
    This is no longer required with RFC 6265
    jakarta.servlet.http.HttpServlet.LEGACY_DO_HEAD
    may be removed in future releases
    jakarta.servlet.SessionCookieConfig.getComment()
    This is no longer required with RFC 6265
    jakarta.servlet.SessionCookieConfig.setComment(String)
    This is no longer required with RFC 6265
    org.glassfish.grizzly.ssl.SSLSupport.getPeerCertificateChain()
    use SSLSupport.getPeerCertificates() instead.
    org.glassfish.grizzly.ssl.SSLSupport.getPeerCertificateChain(boolean)
    use SSLSupport.getPeerCertificates(boolean) instead.
  • Deprecated Interfaces
    Interface
    Description
    org.glassfish.grizzly.asyncqueue.PushBackHandler
    push back logic is deprecated.
    org.glassfish.grizzly.Connection.CloseListener
    use CloseListener
    org.glassfish.grizzly.GenericCloseListener
     
    org.glassfish.grizzly.http.server.io.ReadHandler
    please use ReadHandler
    org.glassfish.grizzly.http.server.io.WriteHandler
    please use WriteHandler
    org.glassfish.grizzly.ICloseType
     
  • Deprecated Classes
    Class
    Description
    org.glassfish.grizzly.asyncqueue.PushBackContext
    push back logic is deprecated.
  • Deprecated Enum Classes
    Enum Class
    Description
    org.glassfish.grizzly.Connection.CloseType
    use CloseType
    org.glassfish.grizzly.http.server.CompressionLevel
    pls. use org.glassfish.grizzly.http.Compression#CompressionLevel.
  • Deprecated Fields
    Field
    Description
    jakarta.servlet.http.HttpServlet.LEGACY_DO_HEAD
    may be removed in future releases
    org.glassfish.grizzly.AbstractTransport.isStandalone
  • Deprecated Methods
    Method
    Description
    jakarta.servlet.http.Cookie.getComment()
    This is no longer required with RFC 6265
    jakarta.servlet.http.Cookie.getVersion()
    This is no longer required with RFC 6265
    jakarta.servlet.http.Cookie.setComment(String)
    This is no longer required with RFC 6265
    jakarta.servlet.http.Cookie.setVersion(int)
    This is no longer required with RFC 6265
    jakarta.servlet.SessionCookieConfig.getComment()
    This is no longer required with RFC 6265
    jakarta.servlet.SessionCookieConfig.setComment(String)
    This is no longer required with RFC 6265
    org.glassfish.grizzly.AbstractTransport.stop()
    org.glassfish.grizzly.asyncqueue.AsyncQueueWriter.canWrite(Connection<L>, int)
    the size parameter will be ignored, use Writer.canWrite(org.glassfish.grizzly.Connection) instead.
    org.glassfish.grizzly.asyncqueue.AsyncQueueWriter.notifyWritePossible(Connection<L>, WriteHandler, int)
    the size parameter will be ignored, use instead.
    org.glassfish.grizzly.asyncqueue.AsyncQueueWriter.write(Connection<L>, L, WritableMessage, CompletionHandler<WriteResult<WritableMessage, L>>, PushBackHandler, MessageCloner<WritableMessage>)
    push back logic is deprecated
    org.glassfish.grizzly.asyncqueue.AsyncWriteQueueRecord.getPushBackHandler()
    org.glassfish.grizzly.Closeable.close(CompletionHandler<Closeable>)
    please use Closeable.close() with the following GrizzlyFuture.addCompletionHandler(org.glassfish.grizzly.CompletionHandler) call
    org.glassfish.grizzly.Connection.addCloseListener(Connection.CloseListener)
    use Connection.addCloseListener(org.glassfish.grizzly.CloseListener)
    org.glassfish.grizzly.Connection.close(CompletionHandler<Closeable>)
    use Connection.close() with the following GrizzlyFuture.addCompletionHandler(org.glassfish.grizzly.CompletionHandler).
    org.glassfish.grizzly.Connection.configureStandalone(boolean)
    org.glassfish.grizzly.Connection.isStandalone()
    org.glassfish.grizzly.Connection.removeCloseListener(Connection.CloseListener)
    use Connection.removeCloseListener(org.glassfish.grizzly.CloseListener)
    org.glassfish.grizzly.filterchain.DefaultFilterChain.write(Connection, Object, Object, CompletionHandler, PushBackHandler)
    org.glassfish.grizzly.filterchain.FilterChainContext.getSuspendingStopAction()
    use FilterChainContext.getForkAction()
    org.glassfish.grizzly.filterchain.FilterChainContext.TransportContext.getPushBackHandler()
    org.glassfish.grizzly.filterchain.FilterChainContext.TransportContext.setPushBackHandler(PushBackHandler)
    org.glassfish.grizzly.filterchain.FilterChainContext.write(Object, Object, CompletionHandler<WriteResult>, PushBackHandler)
    org.glassfish.grizzly.filterchain.FilterChainContext.write(Object, Object, CompletionHandler<WriteResult>, PushBackHandler, boolean)
    org.glassfish.grizzly.filterchain.FilterChainContext.write(Object, Object, CompletionHandler<WriteResult>, PushBackHandler, MessageCloner)
    org.glassfish.grizzly.filterchain.FilterChainContext.write(Object, Object, CompletionHandler<WriteResult>, PushBackHandler, MessageCloner, boolean)
    org.glassfish.grizzly.GrizzlyFuture.markForRecycle(boolean)
     
    org.glassfish.grizzly.http.CompressionConfig.getCompressableMimeTypes()
    Use CompressionConfig.getCompressibleMimeTypes()
    org.glassfish.grizzly.http.CompressionConfig.setCompressableMimeTypes(String...)
    Use CompressionConfig.setCompressibleMimeTypes(String...)
    org.glassfish.grizzly.http.CompressionConfig.setCompressableMimeTypes(Set<String>)
    Use CompressionConfig.setCompressibleMimeTypes(Set)
    org.glassfish.grizzly.http.io.InputBuffer.isAsyncEnabled()
    will always return true
    org.glassfish.grizzly.http.io.InputBuffer.setAsyncEnabled(boolean)
    org.glassfish.grizzly.http.io.InputBuffer.skip(long, boolean)
    pls. use InputBuffer.skip(long), the block parameter will be ignored
    org.glassfish.grizzly.http.io.OutputBuffer.canWrite(int)
    the length parameter will be ignored. Please use OutputBuffer.canWrite().
    org.glassfish.grizzly.http.io.OutputBuffer.canWriteChar(int)
    org.glassfish.grizzly.http.io.OutputBuffer.isAsyncEnabled()
    will always return true
    org.glassfish.grizzly.http.io.OutputBuffer.notifyCanWrite(WriteHandler, int)
    the length parameter will be ignored. Please use OutputBuffer.notifyCanWrite(org.glassfish.grizzly.WriteHandler).
    org.glassfish.grizzly.http.io.OutputBuffer.setAsyncEnabled(boolean)
    org.glassfish.grizzly.http.server.HttpHandlerRegistration.bulder()
    typo :(
    org.glassfish.grizzly.http.server.HttpServer.stop()
    use HttpServer.shutdownNow()
    org.glassfish.grizzly.http.server.NetworkListener.getCompressibleMimeTypes()
    use getCompressionConfig().getCompressibleMimeTypes()
    org.glassfish.grizzly.http.server.NetworkListener.getCompression()
    use getCompressionConfig().getCompressionMode().name()
    org.glassfish.grizzly.http.server.NetworkListener.getCompressionMinSize()
    use getCompressionConfig().getCompressionMinSize()
    org.glassfish.grizzly.http.server.NetworkListener.getNoCompressionUserAgents()
    use getCompressionConfig().getNoCompressionUserAgents()
    org.glassfish.grizzly.http.server.NetworkListener.setCompressibleMimeTypes(String)
    use getCompressionConfig().setCompressibleMimeTypes(Set<String>)
    org.glassfish.grizzly.http.server.NetworkListener.setCompression(String)
    use getCompressionConfig().setCompressionMode(mode)
    org.glassfish.grizzly.http.server.NetworkListener.setCompressionMinSize(int)
    use getCompressionConfig().setCompressionMinSize(int)
    org.glassfish.grizzly.http.server.NetworkListener.setNoCompressionUserAgents(String)
    use getCompressionConfig().setNoCompressionUserAgents(Set<String>)
    org.glassfish.grizzly.http.server.NetworkListener.stop()
    use NetworkListener.shutdownNow()
    org.glassfish.grizzly.http.server.Response.cancel()
    pls. use Response.resume()
    org.glassfish.grizzly.http.server.Response.suspend(long, TimeUnit)
    timeout parameters don't make any sense without CompletionHandler
    org.glassfish.grizzly.http.server.Response.SuspendedContextImpl.markCancelled()
     
    org.glassfish.grizzly.http.server.ServerConfiguration.getHttpHandlers()
    please use ServerConfiguration.getHttpHandlersWithMapping()
    org.glassfish.grizzly.http.server.ServerFilterConfiguration.isReuseSessionID()
    since 2.3.17
    org.glassfish.grizzly.http.server.ServerFilterConfiguration.setReuseSessionID(boolean)
    since 2.3.17
    org.glassfish.grizzly.http.server.util.ClassLoaderUtil.createClassloader(File, ClassLoader)
    removal candidate, never used
    org.glassfish.grizzly.http.util.B2CConverterBlocking.convert(ByteChunk, CharChunk)
     
    org.glassfish.grizzly.http2.Http2Stream.canWrite(int)
    org.glassfish.grizzly.http2.Http2Stream.close(CompletionHandler<Closeable>)
    please use Http2Stream.close() with the following GrizzlyFuture.addCompletionHandler(org.glassfish.grizzly.CompletionHandler) call
    org.glassfish.grizzly.http2.Http2Stream.notifyCanWrite(WriteHandler, int)
    org.glassfish.grizzly.IOEventLifeCycleListener.onTerminate(Context)
    will never be invoked
    org.glassfish.grizzly.nio.AbstractNIOAsyncQueueWriter.canWrite(Connection<SocketAddress>, int)
    org.glassfish.grizzly.nio.AbstractNIOAsyncQueueWriter.notifyWritePossible(Connection<SocketAddress>, WriteHandler, int)
    org.glassfish.grizzly.nio.AbstractNIOAsyncQueueWriter.write(Connection<SocketAddress>, SocketAddress, WritableMessage, CompletionHandler<WriteResult<WritableMessage, SocketAddress>>, PushBackHandler)
    org.glassfish.grizzly.nio.AbstractNIOAsyncQueueWriter.write(Connection<SocketAddress>, SocketAddress, WritableMessage, CompletionHandler<WriteResult<WritableMessage, SocketAddress>>, PushBackHandler, MessageCloner<WritableMessage>)
    org.glassfish.grizzly.nio.NIOConnection.close(CompletionHandler<Closeable>)
    please use NIOConnection.close() with the following GrizzlyFuture.addCompletionHandler(org.glassfish.grizzly.CompletionHandler) call
    org.glassfish.grizzly.nio.NIOConnection.write(SocketAddress, M, CompletionHandler<WriteResult<M, SocketAddress>>, PushBackHandler)
    org.glassfish.grizzly.nio.NIOConnection.write(M, CompletionHandler<WriteResult<M, SocketAddress>>, PushBackHandler)
    org.glassfish.grizzly.nio.tmpselectors.TemporarySelectorWriter.write(Connection<SocketAddress>, SocketAddress, WritableMessage, CompletionHandler<WriteResult<WritableMessage, SocketAddress>>, PushBackHandler)
    org.glassfish.grizzly.nio.transport.TCPNIOConnection.canWrite(int)
    org.glassfish.grizzly.nio.transport.TCPNIOConnection.notifyCanWrite(WriteHandler, int)
    org.glassfish.grizzly.nio.transport.UDPNIOConnection.canWrite(int)
    org.glassfish.grizzly.nio.transport.UDPNIOConnection.notifyCanWrite(WriteHandler, int)
    org.glassfish.grizzly.OutputSink.canWrite(int)
    the length parameter will be ignored. Pls. use OutputSink.canWrite().
    org.glassfish.grizzly.OutputSink.notifyCanWrite(WriteHandler, int)
    the length parameter will be ignored. Pls. use OutputSink.notifyCanWrite(org.glassfish.grizzly.WriteHandler).
    org.glassfish.grizzly.Processor.write(Connection, Object, Object, CompletionHandler<WriteResult>, PushBackHandler)
    org.glassfish.grizzly.servlet.SessionCookieConfig.getComment()
     
    org.glassfish.grizzly.servlet.SessionCookieConfig.setComment(String)
     
    org.glassfish.grizzly.ssl.SSLContextConfigurator.createSSLContext()
    Use SSLContextConfigurator.createSSLContext(boolean).
    org.glassfish.grizzly.ssl.SSLContextConfigurator.validateConfiguration()
    Use SSLContextConfigurator.createSSLContext(boolean).
    org.glassfish.grizzly.ssl.SSLContextConfigurator.validateConfiguration(boolean)
    Use SSLContextConfigurator.createSSLContext(boolean).
    org.glassfish.grizzly.ssl.SSLSupport.getPeerCertificateChain()
    use SSLSupport.getPeerCertificates() instead.
    org.glassfish.grizzly.ssl.SSLSupport.getPeerCertificateChain(boolean)
    use SSLSupport.getPeerCertificates(boolean) instead.
    org.glassfish.grizzly.StandaloneProcessor.write(Connection, Object, Object, CompletionHandler, PushBackHandler)
    org.glassfish.grizzly.Transport.stop()
    Use Transport.shutdownNow().
    org.glassfish.grizzly.websockets.WebSocketApplication.createSocket(ProtocolHandler, WebSocketListener...)
    Use WebSocketApplication.createSocket(ProtocolHandler, org.glassfish.grizzly.http.HttpRequestPacket, WebSocketListener...)
    org.glassfish.grizzly.websockets.WebSocketApplication.isApplicationRequest(HttpRequestPacket)
    URI mapping shouldn't be intrinsic to the application. WebSocketApplications should be registered using WebSocketEngine.register(String, String, WebSocketApplication) using standard Servlet url-pattern rules.
    org.glassfish.grizzly.websockets.WebSocketEngine.register(WebSocketApplication)
    Use WebSocketEngine.register(String, String, WebSocketApplication)
    org.glassfish.grizzly.Writeable.write(L, M, CompletionHandler<WriteResult<M, L>>, PushBackHandler)
    push back logic is deprecated
    org.glassfish.grizzly.Writeable.write(M, CompletionHandler<WriteResult<M, L>>, PushBackHandler)
    push back logic is deprecated
    org.glassfish.grizzly.Writer.write(Connection<L>, L, WritableMessage, CompletionHandler<WriteResult<WritableMessage, L>>, PushBackHandler)
    push back logic is deprecated
  • Deprecated Constructors
    Constructor
    Description
    org.glassfish.grizzly.attributes.IndexedAttributeHolder(AttributeBuilder)
    use AttributeBuilder.createSafeAttributeHolder()
    org.glassfish.grizzly.http.HttpServerFilter()
    Next major release will include builders for filters requiring configuration. Constructors will be hidden.
    org.glassfish.grizzly.http.HttpServerFilter(boolean, int, String, KeepAlive, DelayedExecutor)
    Next major release will include builders for filters requiring configuration. Constructors will be hidden.
    org.glassfish.grizzly.http.HttpServerFilter(boolean, int, String, KeepAlive, DelayedExecutor, int, int)
    Next major release will include builders for filters requiring configuration. Constructors will be hidden.
    org.glassfish.grizzly.http.HttpServerFilter(boolean, int, KeepAlive, DelayedExecutor)
    Next major release will include builders for filters requiring configuration. Constructors will be hidden.
    org.glassfish.grizzly.http.server.Request()
     
    org.glassfish.grizzly.http.util.MessageBytes()
    Use static newInstance() in order to allow future hooks.

Copyright © 2017–2020 Oracle Corporation. All rights reserved.