@Override public BucketLoggingStatusHandler parseLoggingStatusResponse(InputStream inputStream) throws ServiceException { return super.parseLoggingStatusResponse(inputStream, new GSBucketLoggingStatusHandler()); }
protected StorageBucketLoggingStatus getBucketLoggingStatusImpl(String bucketName) throws ServiceException { if(log.isDebugEnabled()) { log.debug("Retrieving Logging Status for Bucket: " + bucketName); } Map<String, String> requestParameters = new HashMap<String, String>(); requestParameters.put("logging", ""); HttpResponse httpResponse = performRestGet(bucketName, null, requestParameters, null); return getXmlResponseSaxParser() .parseLoggingStatusResponse( new HttpMethodReleaseInputStream(httpResponse)).getBucketLoggingStatus(); }
protected StorageBucketLoggingStatus getBucketLoggingStatusImpl(String bucketName) throws ServiceException { if(log.isDebugEnabled()) { log.debug("Retrieving Logging Status for Bucket: " + bucketName); } Map<String, String> requestParameters = new HashMap<String, String>(); requestParameters.put("logging", ""); HttpResponse httpResponse = performRestGet(bucketName, null, requestParameters, null); return getXmlResponseSaxParser() .parseLoggingStatusResponse( new HttpMethodReleaseInputStream(httpResponse)).getBucketLoggingStatus(); }
/** * 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 ServiceException */ public BucketLoggingStatusHandler parseLoggingStatusResponse(InputStream inputStream) throws ServiceException { BucketLoggingStatusHandler handler; if (this.isGoogleStorageMode) { handler = new GSBucketLoggingStatusHandler(); } else { handler = new S3BucketLoggingStatusHandler(); } return parseLoggingStatusResponse(inputStream, 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 ServiceException */ public BucketLoggingStatusHandler parseLoggingStatusResponse(InputStream inputStream) throws ServiceException { BucketLoggingStatusHandler handler; if (this.isGoogleStorageMode) { handler = new GSBucketLoggingStatusHandler(); } else { handler = new S3BucketLoggingStatusHandler(); } return parseLoggingStatusResponse(inputStream, handler); }