The message here is either a Request or a Response.
The sample code is as below:
if(message.getContentLength() > 0)
{
String contentType = message.getContentType();
message.setContentType("text/plain"); //The SIP Container only can realize this type
String sdpContent = message.getContent().toString();
......// OK,now it just need some operation on String,as the code below
message.setContent(sdpContent,"text/plain");
message.setContentType(contentType);
}