public class ProxyEngineSelector
extends org.eclipse.jetty.spdy.api.server.ServerSessionFrameListener.Adapter
ProxyEngineSelector is the main entry point for push stream events of a jetty SPDY proxy. It receives the
push stream frames from the clients, checks if there's an appropriate ProxyEngineSelector.ProxyServerInfo for the given target
host and forwards the push to a ProxyEngine for the protocol defined in ProxyEngineSelector.ProxyServerInfo.
If no ProxyEngineSelector.ProxyServerInfo can be found for the given target host or no ProxyEngine can be found for
the given protocol, it resets the client stream.
This class also provides configuration for the proxy rules.
| Modifier and Type | Class and Description |
|---|---|
static class |
ProxyEngineSelector.ProxyServerInfo |
| Constructor and Description |
|---|
ProxyEngineSelector() |
| Modifier and Type | Method and Description |
|---|---|
ProxyEngine |
getProxyEngine(String protocol) |
Map<String,ProxyEngine> |
getProxyEngines() |
protected ProxyEngineSelector.ProxyServerInfo |
getProxyServerInfo(String host) |
Map<String,ProxyEngineSelector.ProxyServerInfo> |
getProxyServerInfos() |
void |
onGoAway(org.eclipse.jetty.spdy.api.Session session,
org.eclipse.jetty.spdy.api.GoAwayResultInfo goAwayResultInfo) |
void |
onPing(org.eclipse.jetty.spdy.api.Session clientSession,
org.eclipse.jetty.spdy.api.PingResultInfo pingResultInfo) |
org.eclipse.jetty.spdy.api.StreamFrameListener |
onSyn(org.eclipse.jetty.spdy.api.Stream clientStream,
org.eclipse.jetty.spdy.api.SynInfo clientSynInfo) |
void |
putProxyEngine(String protocol,
ProxyEngine proxyEngine) |
void |
putProxyServerInfo(String host,
ProxyEngineSelector.ProxyServerInfo proxyServerInfo) |
void |
setProxyEngines(Map<String,ProxyEngine> proxyEngines) |
void |
setProxyServerInfos(Map<String,ProxyEngineSelector.ProxyServerInfo> proxyServerInfos) |
onConnectonFailure, onRst, onSettingsprotected final Logger LOG
public final org.eclipse.jetty.spdy.api.StreamFrameListener onSyn(org.eclipse.jetty.spdy.api.Stream clientStream,
org.eclipse.jetty.spdy.api.SynInfo clientSynInfo)
onSyn in interface org.eclipse.jetty.spdy.api.SessionFrameListeneronSyn in class org.eclipse.jetty.spdy.api.SessionFrameListener.Adapterpublic void onPing(org.eclipse.jetty.spdy.api.Session clientSession,
org.eclipse.jetty.spdy.api.PingResultInfo pingResultInfo)
onPing in interface org.eclipse.jetty.spdy.api.SessionFrameListeneronPing in class org.eclipse.jetty.spdy.api.SessionFrameListener.Adapterpublic void onGoAway(org.eclipse.jetty.spdy.api.Session session,
org.eclipse.jetty.spdy.api.GoAwayResultInfo goAwayResultInfo)
onGoAway in interface org.eclipse.jetty.spdy.api.SessionFrameListeneronGoAway in class org.eclipse.jetty.spdy.api.SessionFrameListener.Adapterpublic Map<String,ProxyEngine> getProxyEngines()
public void setProxyEngines(Map<String,ProxyEngine> proxyEngines)
public ProxyEngine getProxyEngine(String protocol)
public void putProxyEngine(String protocol, ProxyEngine proxyEngine)
public Map<String,ProxyEngineSelector.ProxyServerInfo> getProxyServerInfos()
protected ProxyEngineSelector.ProxyServerInfo getProxyServerInfo(String host)
public void setProxyServerInfos(Map<String,ProxyEngineSelector.ProxyServerInfo> proxyServerInfos)
public void putProxyServerInfo(String host, ProxyEngineSelector.ProxyServerInfo proxyServerInfo)
Copyright © 1995-2018 Webtide. All Rights Reserved.