response = adapter.headEntry(request);
else if (method.equalsIgnoreCase("OPTIONS"))
response = adapter.optionsEntry(request);
} else if (type == TargetType.TYPE_MEDIA) {
if (adapter instanceof MediaCollectionAdapter) {
MediaCollectionAdapter mcadapter =
(MediaCollectionAdapter) adapter;
if (method.equalsIgnoreCase("GET"))
response = mcadapter.getMedia(request);
else if (method.equalsIgnoreCase("PUT"))
response = mcadapter.putMedia(request);
else if (method.equalsIgnoreCase("DELETE"))
response = mcadapter.deleteMedia(request);
else if (method.equalsIgnoreCase("HEAD"))
response = mcadapter.headMedia(request);
else if (method.equalsIgnoreCase("OPTIONS"))
response = mcadapter.optionsMedia(request);
} else {
response = ProviderHelper.notsupported(request);
}
} else if (type == TargetType.TYPE_NOT_FOUND) {
response = ProviderHelper.notfound(request);