org.jclouds.vcloud.xml
Class OrgNetworkHandler

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.jclouds.http.functions.ParseSax.HandlerWithResult<OrgNetwork>
          extended by org.jclouds.vcloud.xml.OrgNetworkHandler
All Implemented Interfaces:
InvocationContext<ParseSax.HandlerWithResult<OrgNetwork>>, ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class OrgNetworkHandler
extends ParseSax.HandlerWithResult<OrgNetwork>

Author:
Adrian Cole

Field Summary
protected  Set<String> allocatedIpAddresses
           
protected  Set<String> allowedExternalIpAddresses
           
protected  OrgNetwork.Configuration configuration
           
protected  StringBuilder currentText
           
protected  Integer defaultLeaseTime
           
protected  String destinationIp
           
protected  DhcpService dhcpService
           
protected  String dns1
           
protected  String dns2
           
protected  String dnsSuffix
           
protected  String endAddress
           
protected  String externalIP
           
protected  int externalPort
           
protected  Features features
           
protected  FenceMode fenceMode
           
protected  FirewallPolicy firewallPolicy
           
protected  String firewallRuleDescription
           
protected  boolean firewallRuleEnabled
           
protected  List<FirewallRule> firewallRules
           
protected  FirewallService firewallService
           
protected  String gateway
           
protected  boolean inFirewallRule
           
protected  boolean inherited
           
protected  String internalIP
           
protected  int internalPort
           
protected  Set<IpRange> ipRanges
           
protected  IpScope ipScope
           
protected  MappingMode mappingMode
           
protected  Integer maxLeaseTime
           
protected  NatPolicy natPolicy
           
protected  NatProtocol natProtocol
           
protected  List<NatRule> natRules
           
protected  NatService natService
           
protected  NatType natType
           
protected  String netmask
           
protected  ReferenceType network
           
protected  ReferenceType networkPool
           
protected  ReferenceType org
           
protected  String orgDescription
           
protected  ReferenceType parentNetwork
           
protected  int port
           
protected  FirewallProtocols protocols
           
protected  boolean serviceEnabled
           
protected  String startAddress
           
protected  TaskHandler taskHandler
           
protected  List<Task> tasks
           
protected  boolean tcp
           
protected  boolean udp
           
protected  String vAppScopedLocalId
           
protected  String vAppScopedVmId
           
protected  int vmNicId
           
 
Constructor Summary
OrgNetworkHandler(TaskHandler taskHandler)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
protected  String currentOrNull()
           
 void endElement(String uri, String name, String qName)
           
 OrgNetwork getResult()
           
 void startElement(String uri, String localName, String qName, Attributes attrs)
           
 
Methods inherited from class org.jclouds.http.functions.ParseSax.HandlerWithResult
getRequest, setContext
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

taskHandler

protected final TaskHandler taskHandler

currentText

protected StringBuilder currentText

network

protected ReferenceType network

org

protected ReferenceType org

orgDescription

protected String orgDescription

tasks

protected List<Task> tasks

startAddress

protected String startAddress

endAddress

protected String endAddress

inherited

protected boolean inherited

gateway

protected String gateway

netmask

protected String netmask

dns1

protected String dns1

dns2

protected String dns2

dnsSuffix

protected String dnsSuffix

ipRanges

protected Set<IpRange> ipRanges

allocatedIpAddresses

protected Set<String> allocatedIpAddresses

ipScope

protected IpScope ipScope

parentNetwork

protected ReferenceType parentNetwork

fenceMode

protected FenceMode fenceMode

serviceEnabled

protected boolean serviceEnabled

defaultLeaseTime

protected Integer defaultLeaseTime

maxLeaseTime

protected Integer maxLeaseTime

dhcpService

protected DhcpService dhcpService

inFirewallRule

protected boolean inFirewallRule

firewallRuleEnabled

protected boolean firewallRuleEnabled

firewallRuleDescription

protected String firewallRuleDescription

firewallPolicy

protected FirewallPolicy firewallPolicy

tcp

protected boolean tcp

udp

protected boolean udp

protocols

protected FirewallProtocols protocols

port

protected int port

destinationIp

protected String destinationIp

firewallRules

protected List<FirewallRule> firewallRules

firewallService

protected FirewallService firewallService

natType

protected NatType natType

natPolicy

protected NatPolicy natPolicy

mappingMode

protected MappingMode mappingMode

externalIP

protected String externalIP

vAppScopedVmId

protected String vAppScopedVmId

vmNicId

protected int vmNicId

externalPort

protected int externalPort

internalIP

protected String internalIP

internalPort

protected int internalPort

natProtocol

protected NatProtocol natProtocol

vAppScopedLocalId

protected String vAppScopedLocalId

natRules

protected List<NatRule> natRules

natService

protected NatService natService

features

protected Features features

configuration

protected OrgNetwork.Configuration configuration

networkPool

protected ReferenceType networkPool

allowedExternalIpAddresses

protected Set<String> allowedExternalIpAddresses
Constructor Detail

OrgNetworkHandler

@Inject
public OrgNetworkHandler(TaskHandler taskHandler)
Method Detail

getResult

public OrgNetwork getResult()
Specified by:
getResult in class ParseSax.HandlerWithResult<OrgNetwork>

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes attrs)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
SAXException

endElement

public void endElement(String uri,
                       String name,
                       String qName)
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler

characters

public void characters(char[] ch,
                       int start,
                       int length)
Specified by:
characters in interface ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler

currentOrNull

protected String currentOrNull()


Copyright © 2009-2011 jclouds. All Rights Reserved.