public class ServiceProxy extends AbstractProxy
Modifier and Type | Field and Description |
---|---|
static String |
ELEMENT_NAME |
blockRequest, blockResponse, interceptors, key, localHost, name
router
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, writeRule
getRouter, setRouter
doAfterParsing, getBoolean, move2RootElementIfNeeded, parse, parseCharacters, toXml, writeIfNotNull
public 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 AbstractProxy
protected void parseChildren(XMLStreamReader token, String child) throws Exception
parseChildren
in class AbstractProxy
Exception
public void write(XMLStreamWriter out) throws XMLStreamException
write
in interface XMLElement
write
in interface Rule
write
in class AbstractXmlElement
XMLStreamException
protected void writeExtension(XMLStreamWriter out) throws XMLStreamException
writeExtension
in class AbstractProxy
XMLStreamException
protected String getElementName()
getElementName
in class AbstractXmlElement
protected AbstractProxy getNewInstance()
getNewInstance
in class AbstractProxy
public String getName()
getName
in interface Rule
getName
in class AbstractProxy
public SSLContext getSslInboundContext()
getSslInboundContext
in interface Rule
getSslInboundContext
in class AbstractProxy
public SSLContext getSslOutboundContext()
getSslOutboundContext
in interface Rule
getSslOutboundContext
in class AbstractProxy
Copyright © 2012. All Rights Reserved.