public class ProxyEngineSelector extends ServerSessionFrameListener.Adapter
ProxyEngineSelector is the main entry point for syn stream events of a jetty SPDY proxy. It receives the
syn stream frames from the clients, checks if there's an appropriate ProxyEngineSelector.ProxyServerInfo for the given target
host and forwards the syn 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 |
ServerSessionFrameListener.Adapter| Constructor and Description |
|---|
ProxyEngineSelector() |
| Modifier and Type | Method and Description |
|---|---|
ProxyEngine |
getProxyEngine(java.lang.String protocol) |
java.util.Map<java.lang.String,ProxyEngine> |
getProxyEngines() |
protected ProxyEngineSelector.ProxyServerInfo |
getProxyServerInfo(java.lang.String host) |
java.util.Map<java.lang.String,ProxyEngineSelector.ProxyServerInfo> |
getProxyServerInfos() |
void |
onGoAway(Session session,
GoAwayInfo goAwayInfo) |
void |
onPing(Session clientSession,
PingInfo pingInfo) |
StreamFrameListener |
onSyn(Stream clientStream,
SynInfo clientSynInfo) |
void |
putProxyEngine(java.lang.String protocol,
ProxyEngine proxyEngine) |
void |
putProxyServerInfo(java.lang.String host,
ProxyEngineSelector.ProxyServerInfo proxyServerInfo) |
void |
setProxyEngines(java.util.Map<java.lang.String,ProxyEngine> proxyEngines) |
void |
setProxyServerInfos(java.util.Map<java.lang.String,ProxyEngineSelector.ProxyServerInfo> proxyServerInfos) |
onConnectonException, onRst, onSettingsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonException, onRst, onSettingsprotected final Logger logger
public final StreamFrameListener onSyn(Stream clientStream, SynInfo clientSynInfo)
onSyn in interface SessionFrameListeneronSyn in class SessionFrameListener.Adapterpublic void onPing(Session clientSession, PingInfo pingInfo)
onPing in interface SessionFrameListeneronPing in class SessionFrameListener.Adapterpublic void onGoAway(Session session, GoAwayInfo goAwayInfo)
onGoAway in interface SessionFrameListeneronGoAway in class SessionFrameListener.Adapterpublic java.util.Map<java.lang.String,ProxyEngine> getProxyEngines()
public void setProxyEngines(java.util.Map<java.lang.String,ProxyEngine> proxyEngines)
public ProxyEngine getProxyEngine(java.lang.String protocol)
public void putProxyEngine(java.lang.String protocol,
ProxyEngine proxyEngine)
public java.util.Map<java.lang.String,ProxyEngineSelector.ProxyServerInfo> getProxyServerInfos()
protected ProxyEngineSelector.ProxyServerInfo getProxyServerInfo(java.lang.String host)
public void setProxyServerInfos(java.util.Map<java.lang.String,ProxyEngineSelector.ProxyServerInfo> proxyServerInfos)
public void putProxyServerInfo(java.lang.String host,
ProxyEngineSelector.ProxyServerInfo proxyServerInfo)
Copyright © 2013 FuseSource, Corp.. All Rights Reserved.