public class ServiceProxy extends AbstractProxy
| Modifier and Type | Field and Description |
|---|---|
static String |
ELEMENT_NAME |
blockRequest, blockResponse, interceptors, key, localHost, namerouter| Constructor and Description |
|---|
ServiceProxy() |
ServiceProxy(Router router) |
ServiceProxy(ServiceProxyKey ruleKey,
String targetHost,
int targetPort) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getElementName() |
String |
getName() |
protected AbstractProxy |
getNewInstance() |
SSLContext |
getSslInboundContext() |
SSLContext |
getSslOutboundContext() |
String |
getTargetHost() |
int |
getTargetPort() |
String |
getTargetURL() |
protected void |
parseChildren(XMLStreamReader token,
String child) |
protected void |
parseKeyAttributes(XMLStreamReader token) |
void |
setTargetHost(String targetHost) |
void |
setTargetPort(int targetPort) |
void |
setTargetURL(String targetURL) |
void |
write(XMLStreamWriter out) |
protected void |
writeExtension(XMLStreamWriter out) |
collectStatisticsFrom, getCount, getDeepCopy, getInterceptors, getKey, getLocalHost, getStatisticsByStatusCodes, getStreamReaderFor, isBlockRequest, isBlockResponse, parseAttributes, setBlockRequest, setBlockResponse, setInterceptors, setKey, setLocalHost, setName, toString, writeAttrIfTrue, writeRulegetRouter, setRouterdoAfterParsing, getBoolean, move2RootElementIfNeeded, parse, parseCharacters, toXml, writeIfNotNullpublic static final String ELEMENT_NAME
public ServiceProxy()
public ServiceProxy(Router router)
public ServiceProxy(ServiceProxyKey ruleKey, String targetHost, int targetPort)
public String getTargetHost()
public void setTargetHost(String targetHost)
public int getTargetPort()
public void setTargetPort(int targetPort)
public String getTargetURL()
public void setTargetURL(String targetURL)
protected void parseKeyAttributes(XMLStreamReader token)
parseKeyAttributes in class AbstractProxyprotected void parseChildren(XMLStreamReader token, String child) throws Exception
parseChildren in class AbstractProxyExceptionpublic void write(XMLStreamWriter out) throws XMLStreamException
write in interface XMLElementwrite in interface Rulewrite in class AbstractXmlElementXMLStreamExceptionprotected void writeExtension(XMLStreamWriter out) throws XMLStreamException
writeExtension in class AbstractProxyXMLStreamExceptionprotected String getElementName()
getElementName in class AbstractXmlElementprotected AbstractProxy getNewInstance()
getNewInstance in class AbstractProxypublic String getName()
getName in interface RulegetName in class AbstractProxypublic SSLContext getSslInboundContext()
getSslInboundContext in interface RulegetSslInboundContext in class AbstractProxypublic SSLContext getSslOutboundContext()
getSslOutboundContext in interface RulegetSslOutboundContext in class AbstractProxyCopyright © 2012. All Rights Reserved.