|
|
|
|
@ -400,7 +400,7 @@ public ContentType getPresContent(String imageName)
|
|
|
|
|
resourceId.toString());
|
|
|
|
|
throw new XCapException(errorMessage);
|
|
|
|
|
}
|
|
|
|
|
if (!contentType.equals(PresContentClient.CONTENT_TYPE))
|
|
|
|
|
if (!contentType.startsWith(PresContentClient.CONTENT_TYPE))
|
|
|
|
|
{
|
|
|
|
|
String errorMessage = String.format(
|
|
|
|
|
"XCAP server returns invalid PresContent content type: %1s",
|
|
|
|
|
@ -628,7 +628,7 @@ private String getResource(XCapResourceId resourceId, String contentType)
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!contentType.equals(response.getContentType()))
|
|
|
|
|
if (!response.getContentType().startsWith(contentType))
|
|
|
|
|
{
|
|
|
|
|
String errorMessage = String.format(
|
|
|
|
|
"XCAP server returns invalid content type: %1s",
|
|
|
|
|
|