org.jclouds.http.functions
Class ParseSax.HandlerWithResult<T>

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.jclouds.http.functions.ParseSax.HandlerWithResult<T>
All Implemented Interfaces:
InvocationContext<ParseSax.HandlerWithResult<T>>, ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Direct Known Subclasses:
AccessControlListHandler, AccountNameEnumerationResultsHandler, AllocateAddressResponseHandler, BackupHandler, BackupsHandler, BaseEnvelopeHandler, BlockDeviceMappingHandler, BooleanValueHandler, BucketLoggingHandler, CatalogHandler, CatalogHandler, CatalogItemHandler, CatalogItemHandler, ContainerNameEnumerationResultsHandler, CopyObjectHandler, CreateSecurityGroupResponseHandler, CustomizationParametersHandler, DataCenterHandler, DataCentersHandler, DeltacloudCollectionHandler, DeltacloudCollectionsHandler, DescribeAvailabilityZonesResponseHandler, DescribeBundleTasksResponseHandler, DescribePlacementGroupsResponseHandler, DescribeRegionsResponseHandler, DescribeReservedInstancesOfferingResponseHandler, DescribeSnapshotsResponseHandler, DescribeSpotPriceHistoryResponseHandler, DescribeTagsResponseHandler, DescribeVolumesResponseHandler, ErrorHandler, ErrorHandler, ErrorHandler, ErrorHandler, ErrorHandler, ErrorHandler, FirewallRuleHandler, FirewallServiceHandler, FlavorHandler, FlavorsHandler, GetMetricStatisticsResponseHandler, GuestCustomizationSectionHandler, HardwareProfileHandler, HardwareProfilesHandler, HardwarePropertyHandler, ImageHandler, ImageHandler, ImageIdHandler, ImagesHandler, ImagesHandler, InstanceHandler, InstanceInitiatedShutdownBehaviorHandler, InstancesHandler, InstanceStatesHandler, InstanceTypeHandler, InternetServiceHandler, InternetServicesHandler, IpAddressesHandler, KeyPairHandler, KeyPairsHandler, ListAllMyBucketsHandler, ListBucketHandler, ListDirectoryResponseHandler, LocationConstraintHandler, MonitoringStateHandler, NetworkConnectionHandler, NetworkConnectionSectionHandler, NetworkExtendedInfoHandler, NetworkHandler, NetworkHandler, NodeHandler, NodesHandler, OrgHandler, OrgHandler, OrgHandler, OrgListHandler, OrgListHandler, OrgListHandler, OrgNetworkHandler, ParseSax.HandlerForGeneratedRequestWithResult, PayerHandler, PermissionHandler, ProductCodesHandler, PublicIpAddressesHandler, PublicIpAddressHandler, RealmHandler, RealmsHandler, ResourceAllocationSettingDataHandler, SectionHandler, SliceHandler, SlicesHandler, SpotInstancesHandler, StringValueHandler, SupportedVersionsHandler, SupportedVersionsHandler, TagNameToUsageCountHandler, TaskHandler, TaskHandler, TaskHandler, TasksListHandler, TasksListHandler, TasksListHandler, VAppExtendedInfoHandler, VAppHandler, VAppHandler, VAppTemplateHandler, VAppTemplateHandler, VCloudNetworkSectionHandler, VCloudOperatingSystemHandler, VCloudVirtualHardwareHandler, VDCHandler, VDCHandler, VDCHandler, VirtualSystemSettingDataHandler, VmHandler
Enclosing class:
ParseSax<T>

public abstract static class ParseSax.HandlerWithResult<T>
extends org.xml.sax.helpers.DefaultHandler
implements InvocationContext<ParseSax.HandlerWithResult<T>>

Handler that produces a useable domain object accessible after parsing completes.

Author:
Adrian Cole

Constructor Summary
ParseSax.HandlerWithResult()
           
 
Method Summary
protected  HttpRequest getRequest()
           
abstract  T getResult()
           
 ParseSax.HandlerWithResult<T> setContext(HttpRequest request)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseSax.HandlerWithResult

public ParseSax.HandlerWithResult()
Method Detail

getRequest

protected HttpRequest getRequest()

getResult

public abstract T getResult()

setContext

public ParseSax.HandlerWithResult<T> setContext(HttpRequest request)
Specified by:
setContext in interface InvocationContext<ParseSax.HandlerWithResult<T>>


Copyright © 2009-2011 jclouds. All Rights Reserved.