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

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

package com.ksyun.ks3.service.response;

import org.xml.sax.Attributes;
import org.xml.sax.SAXException;

import com.ksyun.ks3.dto.CreateBucketConfiguration;
import com.ksyun.ks3.dto.CreateBucketConfiguration.REGION;

/**
 * @author lijunwei[[email protected]]  
 * 
 * @date 2014年11月16日 下午6:45:23
 * 
 * @description 获取 bucket的存储地点
 **/
public class GetBucketLocationResponse extends Ks3WebServiceXmlResponse{

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

	@Override
	public void preHandle() {	
	}

	@Override
	public void startDocument() throws SAXException {
	}

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

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

	@Override
	public void string(String s) {
		if("LocationConstraint".equalsIgnoreCase(getTag()))
			result = REGION.load(s);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy