public class DelegatingAvaticaHandler extends Object implements AvaticaHandler
This implementation provides a no-op implementation for
setServerRpcMetadata(org.apache.calcite.avatica.remote.Service.RpcMetadataResponse)
.
Does not implement MetricsAwareAvaticaHandler
as this implementation is only presented
for backwards compatibility.
Constructor and Description |
---|
DelegatingAvaticaHandler(org.eclipse.jetty.server.Handler handler) |
Modifier and Type | Method and Description |
---|---|
void |
addLifeCycleListener(org.eclipse.jetty.util.component.LifeCycle.Listener listener) |
void |
destroy() |
org.eclipse.jetty.server.Server |
getServer() |
void |
handle(String target,
org.eclipse.jetty.server.Request baseRequest,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
boolean |
isFailed() |
boolean |
isRunning() |
boolean |
isStarted() |
boolean |
isStarting() |
boolean |
isStopped() |
boolean |
isStopping() |
void |
removeLifeCycleListener(org.eclipse.jetty.util.component.LifeCycle.Listener listener) |
void |
setServer(org.eclipse.jetty.server.Server server) |
void |
setServerRpcMetadata(Service.RpcMetadataResponse metadata) |
void |
start() |
void |
stop() |
public DelegatingAvaticaHandler(org.eclipse.jetty.server.Handler handler)
public void handle(String target, org.eclipse.jetty.server.Request baseRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
handle
in interface org.eclipse.jetty.server.Handler
IOException
javax.servlet.ServletException
public void setServer(org.eclipse.jetty.server.Server server)
setServer
in interface org.eclipse.jetty.server.Handler
public org.eclipse.jetty.server.Server getServer()
getServer
in interface org.eclipse.jetty.server.Handler
public void destroy()
destroy
in interface org.eclipse.jetty.server.Handler
destroy
in interface org.eclipse.jetty.util.component.Destroyable
public void start() throws Exception
start
in interface org.eclipse.jetty.util.component.LifeCycle
Exception
public void stop() throws Exception
stop
in interface org.eclipse.jetty.util.component.LifeCycle
Exception
public boolean isRunning()
isRunning
in interface org.eclipse.jetty.util.component.LifeCycle
public boolean isStarted()
isStarted
in interface org.eclipse.jetty.util.component.LifeCycle
public boolean isStarting()
isStarting
in interface org.eclipse.jetty.util.component.LifeCycle
public boolean isStopping()
isStopping
in interface org.eclipse.jetty.util.component.LifeCycle
public boolean isStopped()
isStopped
in interface org.eclipse.jetty.util.component.LifeCycle
public boolean isFailed()
isFailed
in interface org.eclipse.jetty.util.component.LifeCycle
public void addLifeCycleListener(org.eclipse.jetty.util.component.LifeCycle.Listener listener)
addLifeCycleListener
in interface org.eclipse.jetty.util.component.LifeCycle
public void removeLifeCycleListener(org.eclipse.jetty.util.component.LifeCycle.Listener listener)
removeLifeCycleListener
in interface org.eclipse.jetty.util.component.LifeCycle
public void setServerRpcMetadata(Service.RpcMetadataResponse metadata)
setServerRpcMetadata
in interface AvaticaHandler
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.