Class BaseLoadBalancerResponseHandler<T>
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.jclouds.http.functions.ParseSax.HandlerWithResult<T>
-
- org.jclouds.http.functions.ParseSax.HandlerForGeneratedRequestWithResult<T>
-
- org.jclouds.profitbricks.http.parser.BaseProfitBricksResponseHandler<T>
-
- org.jclouds.profitbricks.http.parser.loadbalancer.BaseLoadBalancerResponseHandler<T>
-
- All Implemented Interfaces:
InvocationContext<ParseSax.HandlerWithResult<T>>
,ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
- Direct Known Subclasses:
LoadBalancerListResponseHandler
,LoadBalancerResponseHandler
public abstract class BaseLoadBalancerResponseHandler<T> extends BaseProfitBricksResponseHandler<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected ServerListResponseHandler
balancedServerResponseHandler
protected LoadBalancer.Builder
builder
protected DataCenter.Builder
dataCenterBuilder
protected DateService
dateService
protected FirewallListResponseHandler
firewallListResponseHandler
protected boolean
useBalancedServerParser
protected boolean
useFirewallParser
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseLoadBalancerResponseHandler(DateService dateService, ServerListResponseHandler balancedServerResponseHandler, FirewallListResponseHandler firewallResponseHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] ch, int start, int length)
protected void
setPropertyOnEndTag(String qName)
void
startElement(String uri, String localName, String qName, Attributes attributes)
protected Date
textToIso8601Date()
-
Methods inherited from class org.jclouds.profitbricks.http.parser.BaseProfitBricksResponseHandler
clearTextBuffer, endElement, reset, textToBooleanValue, textToDoubleValue, textToFloatValue, textToIntValue, textToStringValue
-
Methods inherited from class org.jclouds.http.functions.ParseSax.HandlerForGeneratedRequestWithResult
getRequest, setContext
-
Methods inherited from class org.jclouds.http.functions.ParseSax.HandlerWithResult
getResult
-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Field Detail
-
balancedServerResponseHandler
protected final ServerListResponseHandler balancedServerResponseHandler
-
firewallListResponseHandler
protected final FirewallListResponseHandler firewallListResponseHandler
-
builder
protected LoadBalancer.Builder builder
-
dataCenterBuilder
protected DataCenter.Builder dataCenterBuilder
-
dateService
protected final DateService dateService
-
useBalancedServerParser
protected boolean useBalancedServerParser
-
useFirewallParser
protected boolean useFirewallParser
-
-
Constructor Detail
-
BaseLoadBalancerResponseHandler
protected BaseLoadBalancerResponseHandler(DateService dateService, ServerListResponseHandler balancedServerResponseHandler, FirewallListResponseHandler firewallResponseHandler)
-
-
Method Detail
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
- Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length)
- Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classBaseProfitBricksResponseHandler<T>
-
textToIso8601Date
protected final Date textToIso8601Date()
-
setPropertyOnEndTag
protected void setPropertyOnEndTag(String qName)
- Specified by:
setPropertyOnEndTag
in classBaseProfitBricksResponseHandler<T>
-
-