All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ksyun.ks3.service.response.GetBucketStorageQuotaResponse Maven / Gradle / Ivy

package com.ksyun.ks3.service.response;

import com.ksyun.ks3.dto.BucketStorageQuota;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;

public class GetBucketStorageQuotaResponse extends Ks3WebServiceXmlResponse {

    public void preHandle() {

    }

    public void startDocument() throws SAXException {
        result = new BucketStorageQuota();
    }

    public void startEle(String uri, String localName, String qName, Attributes attributes) throws SAXException {

    }

    public void endEle(String uri, String localName, String qName) throws SAXException {
    }

    public void string(String s) {
        if ("StorageQuota".equals(getTag())) {
            result.setStorageQuota(Long.parseLong(s));
        }
    }

    public int[] expectedStatus() {
        return new int[]{200};
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy