public abstract class CosXmlResult
extends java.lang.Object
COS返回结果基类
限定符和类型 | 字段和说明 |
---|---|
java.lang.String |
accessUrl
访问 object 的地址.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
headers
http headers
|
int |
httpCode
http状态码
|
java.lang.String |
httpMessage
http状态信息
|
构造器和说明 |
---|
CosXmlResult() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getHeader(java.lang.String key) |
void |
parseResponseBody(HttpResponse response)
根据HttpResponse解析相关内容
|
java.lang.String |
printResult()
返回转换后的字符串
|
protected void |
xmlParser(HttpResponse response)
收拢xml解析
|
public int httpCode
public java.lang.String httpMessage
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers
public java.lang.String accessUrl
public void parseResponseBody(HttpResponse response) throws CosXmlClientException, CosXmlServiceException
response
- http响应CosXmlClientException
- 客户端异常CosXmlServiceException
- 服务端异常public java.lang.String printResult()
protected void xmlParser(HttpResponse response) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException
org.xmlpull.v1.XmlPullParserException
java.io.IOException
@Nullable public java.lang.String getHeader(java.lang.String key)