Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.1

E36938-01


com.oracle.sft.xcap.client
Interface XcapResponse


public interface XcapResponse

Represents an XCAP response.


Method Summary
 String getContent()
          Provides the content of the response.
 String getContentType()
          Provides the value of the Content-type header.
 Map<String,List<String>> getHeaders()
          Provides all headers of the response.
 String getResponseMessage()
          Get response message of XCAP operation, if any, returned along with the response status from a XCAP server.
 int getStatus()
          Provides the response status returned by the XCAP server.
 XcapError getXcapError()
          Get xcap error if there is.
 boolean isSuccess()
          Convenience wrapper around getStatus.

 

Method Detail

getStatus

int getStatus()
Provides the response status returned by the XCAP server.
Returns:
the status returned by the XCAPS.

isSuccess

boolean isSuccess()
Convenience wrapper around getStatus.
Returns:
true if the status is between 200 and 300

getHeaders

Map<String,List<String>> getHeaders()
Provides all headers of the response.
Returns:
the headers of this response as a map of key - value pairs. The key of the map is the header name. The value of the map is the header value.

getContent

String getContent()
Provides the content of the response.
Returns:
content of the reponse. Or null in case the response does not include content.

getContentType

String getContentType()
Provides the value of the Content-type header.
Returns:
MIME type of the content. Or null in case the response does not include content.

getResponseMessage

String getResponseMessage()
Get response message of XCAP operation, if any, returned along with the response status from a XCAP server.
Returns:
the response message, or null

getXcapError

XcapError getXcapError()
Get xcap error if there is.
Returns:
the XcapError instance, null if there isn't.

Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.1

E36938-01


Copyright © 2012 Oracle Corporation. All Rights Reserved.