@Override protected void doEndElement(String uri, String name, String qName) { if (in("BucketLoggingStatus", "LoggingEnabled")) { if (name.equals("TargetBucket")) { bucketLoggingConfiguration .setDestinationBucketName(getText()); } else if (name.equals("TargetPrefix")) { bucketLoggingConfiguration .setLogFilePrefix(getText()); } } } }
/** * Parses a LoggingStatus response XML document for a bucket from an input * stream. * * @param inputStream * XML data input stream. * @return the XML handler object populated with data parsed from the XML * stream. * * @throws SdkClientException */ public BucketLoggingConfigurationHandler parseLoggingStatusResponse(InputStream inputStream) throws IOException { BucketLoggingConfigurationHandler handler = new BucketLoggingConfigurationHandler(); parseXmlInputStream(handler, inputStream); return handler; }
/** * Parses a LoggingStatus response XML document for a bucket from an input * stream. * * @param inputStream XML data input stream. * @return the XML handler object populated with data parsed from the XML * stream. * @throws AmazonClientException */ public BucketLoggingConfigurationHandler parseLoggingStatusResponse(InputStream inputStream) throws IOException { final BucketLoggingConfigurationHandler handler = new BucketLoggingConfigurationHandler(); parseXmlInputStream(handler, inputStream); return handler; }
@Override protected void doEndElement(String uri, String name, String qName) { if (in("BucketLoggingStatus", "LoggingEnabled")) { if (name.equals("TargetBucket")) { bucketLoggingConfiguration .setDestinationBucketName(getText()); } else if (name.equals("TargetPrefix")) { bucketLoggingConfiguration .setLogFilePrefix(getText()); } } } }
@Override protected void doEndElement(String uri, String name, String qName) { if (in("BucketLoggingStatus", "LoggingEnabled")) { if (name.equals("TargetBucket")) { bucketLoggingConfiguration .setDestinationBucketName(getText()); } else if (name.equals("TargetPrefix")) { bucketLoggingConfiguration .setLogFilePrefix(getText()); } } } }
@Override public BucketLoggingConfiguration unmarshall(InputStream in) throws Exception { return new XmlResponsesSaxParser() .parseLoggingStatusResponse(in).getBucketLoggingConfiguration(); } }
public BucketLoggingConfiguration unmarshall(InputStream in) throws Exception { return new XmlResponsesSaxParser() .parseLoggingStatusResponse(in).getBucketLoggingConfiguration(); } }
/** * Parses a LoggingStatus response XML document for a bucket from an input * stream. * * @param inputStream XML data input stream. * @return the XML handler object populated with data parsed from the XML * stream. * @throws AmazonClientException */ public BucketLoggingConfigurationHandler parseLoggingStatusResponse(InputStream inputStream) throws IOException { final BucketLoggingConfigurationHandler handler = new BucketLoggingConfigurationHandler(); parseXmlInputStream(handler, inputStream); return handler; }
@Override protected void doEndElement(String uri, String name, String qName) { if (in("BucketLoggingStatus", "LoggingEnabled")) { if (name.equals("TargetBucket")) { bucketLoggingConfiguration .setDestinationBucketName(getText()); } else if (name.equals("TargetPrefix")) { bucketLoggingConfiguration .setLogFilePrefix(getText()); } } } }
@Override public BucketLoggingConfiguration unmarshall(InputStream in) throws Exception { return new XmlResponsesSaxParser() .parseLoggingStatusResponse(in).getBucketLoggingConfiguration(); } }
/** * Parses a LoggingStatus response XML document for a bucket from an input * stream. * * @param inputStream * XML data input stream. * @return the XML handler object populated with data parsed from the XML * stream. * * @throws SdkClientException */ public BucketLoggingConfigurationHandler parseLoggingStatusResponse(InputStream inputStream) throws IOException { BucketLoggingConfigurationHandler handler = new BucketLoggingConfigurationHandler(); parseXmlInputStream(handler, inputStream); return handler; }
public BucketLoggingConfiguration unmarshall(InputStream in) throws Exception { return new XmlResponsesSaxParser() .parseLoggingStatusResponse(in).getBucketLoggingConfiguration(); } }