Package org.eclipse.jetty.util.component
Interface Dumpable
- All Known Subinterfaces:
Dumpable.DumpableContainer
- All Known Implementing Classes:
AbstractConnectionFactory
,AbstractConnectionPool
,AbstractConnector
,AbstractConnectorHttpClientTransport
,AbstractFlowControlStrategy
,AbstractHandler
,AbstractHandler.ErrorDispatchHandler
,AbstractHandlerContainer
,AbstractHTTP2ServerConnectionFactory
,AbstractHTTP2ServerConnectionFactory.HTTP2SessionContainer
,AbstractHTTP3ServerConnectionFactory
,AbstractHttpClientTransport
,AbstractLoginService
,AbstractNetworkConnector
,AbstractSessionCache
,AbstractSessionDataStore
,AdaptiveExecutionStrategy
,ALPNServerConnectionFactory
,AnnotationConfiguration.DiscoveredServletContainerInitializerHolder
,AntWebAppContext
,AntWebAppContext.AntServletHandler
,AntWebAppContext.AntServletHolder
,ArrayByteBufferPool
,ArrayByteBufferPool.Retained
,ArrayRetainableByteBufferPool
,AsyncDelayHandler
,AttributeContainerMap
,AttributesMap
,BaseHolder
,BufferedResponseHandler
,BufferingFlowControlStrategy
,CachingSessionDataStore
,ClassLoaderDump
,ClientConnectionFactory.Info
,ClientConnectionFactoryOverHTTP2
,ClientConnectionFactoryOverHTTP2.HTTP2
,ClientConnectionFactoryOverHTTP3
,ClientConnectionFactoryOverHTTP3.HTTP3
,ClientConnector
,ClientConnector.ClientSelectorManager
,ClientConnector.Configurator
,ClientProtocolSession
,ClientQuicSession
,CompressionPool
,ConfigurableSpnegoLoginService
,Configurations
,ConnectHandler
,ConnectHandler.ConnectManager
,ConnectionStatistics
,ConnectionStatistics.Stats
,ConstraintSecurityHandler
,ContainerLifeCycle
,ContextHandler
,ContextHandler.Context
,ContextHandler.StaticContext
,ContextHandlerCollection
,CustomRequestLog
,DataSourceLoginService
,DebugHandler
,DefaultHandler
,DefaultSessionCache
,DefaultSessionIdManager
,DeflaterPool
,DelegatingThreadPool
,DeploymentManager
,DetectorConnectionFactory
,DumpableCollection
,DuplexConnectionPool
,DuplexHttpDestination
,EatWhatYouKill
,ErrorHandler
,ErrorPageErrorHandler
,ExecutorThreadPool
,ExtensionStack
,FileBufferedResponseHandler
,FileSessionDataStore
,FilterHolder
,FilterMapping
,GCloudSessionDataStore
,GzipHandler
,HandlerCollection
,HandlerList
,HandlerWrapper
,HashLoginService
,Holder
,HotSwapHandler
,HTTP2Client
,HTTP2ClientSession
,HTTP2CServerConnectionFactory
,HTTP2Flusher
,HTTP2ServerConnectionFactory
,HTTP2ServerSession
,HTTP2Session
,HTTP2Stream
,HTTP3Client
,HTTP3ServerConnectionFactory
,HTTP3ServerConnector
,HttpClient
,HttpClientTransportDynamic
,HttpClientTransportOverFCGI
,HttpClientTransportOverHTTP
,HttpClientTransportOverHTTP2
,HttpClientTransportOverHTTP3
,HttpClientTransportOverUnixSockets
,HttpConfiguration
,HttpConnectionFactory
,HttpConversation
,HttpDestination
,HttpSpiContextHandler
,IdleTimeoutHandler
,IncludeExcludeConnectionStatistics
,InetAccessHandler
,InfinispanSessionDataStore
,InflaterPool
,JAASLoginService
,JakartaWebSocketClientContainer
,JakartaWebSocketContainer
,JakartaWebSocketServerContainer
,JakartaWebSocketShutdownContainer
,JDBCLoginService
,JDBCSessionDataStore
,JettyServerFrameHandlerFactory
,JettyWebSocketFrameHandlerFactory
,JettyWebSocketServerContainer
,KeyStoreScanner
,LeakTrackingByteBufferPool
,LeakTrackingConnectionPool
,ListenerHolder
,LocalConnector
,LogarithmicArrayByteBufferPool
,LogarithmicArrayByteBufferPool.LogarithmicRetainablePool
,LowResourceMonitor
,ManagedSelector
,MappedByteBufferPool
,MappedByteBufferPool.Retained
,MappedByteBufferPool.Tagged
,MBeanContainer
,MongoSessionDataStore
,MonitoredQueuedThreadPool
,MovedContextHandler
,MultiplexConnectionPool
,MultiplexHttpDestination
,NamingContext
,NamingDump
,NegotiatingServerConnectionFactory
,NetworkTrafficServerConnector
,NoSqlSessionDataStore
,NullSessionCache
,NullSessionDataStore
,OpenIdConfiguration
,OpenIdLoginService
,OptionalSslConnectionFactory
,PathMappings
,Pool
,PropertiesConfigurationManager
,ProtocolHandlers
,ProtocolSession
,ProxyConnectionFactory
,ProxyConnectionFactory.ProxyEndPoint
,QpackDecoder
,QpackEncoder
,QueuedThreadPool
,QuicClientConnectorConfigurator
,QuicServerConnector
,QuicSession
,QuicSessionContainer
,RandomConnectionPool
,RawHTTP2ServerConnectionFactory
,RawHTTP3ServerConnectionFactory
,RequestLogHandler
,ReservedThreadExecutor
,ResourceHandler
,RewriteCustomizer
,RewriteHandler
,RoundRobinConnectionPool
,RuleContainer
,Scanner
,ScanningAppProvider
,ScheduledExecutorScheduler
,ScopedHandler
,SecuredRedirectHandler
,SecurityHandler
,SelectorManager
,Server
,ServerConnectionStatistics
,ServerConnector
,ServerConnector.ServerConnectorManager
,ServerFCGIConnectionFactory
,ServerProtocolSession
,ServerQuicSession
,ServletContainerInitializerHolder
,ServletContextHandler
,ServletContextHandler.Context
,ServletContextHandler.ServletContainerInitializerStarter
,ServletHandler
,ServletHolder
,ServletTester
,SessionHandler
,SessionTracker
,SessionTracker
,ShutdownHandler
,SimpleFlowControlStrategy
,SslConnectionFactory
,SslContextFactory
,SslContextFactory.Client
,SslContextFactory.Server
,StatisticsHandler
,ThreadLimitHandler
,UnixSocketConnector
,UnixSocketConnector.UnixSocketConnectorManager
,ValidatingConnectionPool
,VirtualHostRuleContainer
,WebAppContext
,WebAppContext.Context
,WebAppProvider
,WebSocketClient
,WebSocketComponents
,WebSocketConnection
,WebSocketCoreClient
,WebSocketCoreSession
,WebSocketMappings
,WebSocketServerComponents
,WebSocketSession
,WebSocketUpgradeFilter
,WebSocketUpgradeHandler
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
DumpableContainer A Dumpable that is a container of beans can implement this interface to allow it to refine which of its beans can be dumped. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
dump()
void
dump
(Appendable out, String indent) Dump this object (and children) into an Appendable using the provided indent after any new lines.static String
Utility method to implementdump()
by callingdump(Appendable, String)
static void
dumpContainer
(Appendable out, String indent, Container object, boolean last) static void
dumpIterable
(Appendable out, String indent, Iterable<?> iterable, boolean last) static void
dumpMapEntries
(Appendable out, String indent, Map<?, ?> map, boolean last) static void
dumpObject
(Appendable out, Object o) Dump just an Object (but not it's contained items) to an Appendable.static void
dumpObjects
(Appendable out, String indent, Object object, Object... extraChildren) Dump an Object, it's contained items and additional items to anAppendable
.default String
dumpSelf()
The description of this/self found in the dump.static Dumpable
-
Field Details
-
KEY
- See Also:
-
-
Method Details
-
dump
@ManagedOperation(value="Dump the nested Object state as a String", impact="INFO") default String dump() -
dump
Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.- Parameters:
out
- The appendable to dump toindent
- The indent to apply after any new lines.- Throws:
IOException
- if unable to write to Appendable
-
dump
Utility method to implementdump()
by callingdump(Appendable, String)
- Parameters:
dumpable
- The dumpable to dump- Returns:
- The dumped string
-
dumpSelf
The description of this/self found in the dump. Allows for alternative representation of Object other then .toString() where the long form output of toString() is represented in a cleaner way within the dump infrastructure.- Returns:
- the representation of self
-
dumpObject
Dump just an Object (but not it's contained items) to an Appendable.- Parameters:
out
- The Appendable to dump too
- The object to dump.- Throws:
IOException
- May be thrown by the Appendable
-
dumpObjects
static void dumpObjects(Appendable out, String indent, Object object, Object... extraChildren) throws IOException Dump an Object, it's contained items and additional items to anAppendable
. If the object in anIterable
or anArray
, then its contained items are also dumped.- Parameters:
out
- the Appendable to dump toindent
- The indent to apply after any new linesobject
- The object to dump. If the object is an instance ofContainer
,Stream
,Iterable
,Array
orMap
, then children of the object a recursively dumped.extraChildren
- Items to be dumped as children of the object, in addition to any discovered children of object- Throws:
IOException
- May be thrown by the Appendable
-
dumpContainer
static void dumpContainer(Appendable out, String indent, Container object, boolean last) throws IOException - Throws:
IOException
-
dumpIterable
static void dumpIterable(Appendable out, String indent, Iterable<?> iterable, boolean last) throws IOException - Throws:
IOException
-
dumpMapEntries
static void dumpMapEntries(Appendable out, String indent, Map<?, ?> map, boolean last) throws IOException- Throws:
IOException
-
named
-