> Modified: > incubator/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactoryImpl.java > URL: > http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ProviderFactoryImpl.java?rev=599702&r1=599701&r2=599702&view=diff > ============================================================================== > + private boolean isMineTypeSupported(String requestedMimeType, String > supportedMimeType) { > + // REVISIT: better algorithm > + if (supportedMimeType.equals(requestedMimeType)) { > + return true; > + } else if (supportedMimeType.startsWith("*/")) { > + return true; > + } else if (supportedMimeType.regionMatches(0, requestedMimeType, 0, > supportedMimeType.indexOf("/")) > + && supportedMimeType.endsWith("/*")) { > + return true; > + } > + > + return false; > + } > +
I guess there is a typo in the method name which should be called private boolean isMimeTypeSupported(String requestedMimeType, String supportedMimeType) (s/Mine/Mime) Regards, -- Eric Le Goff
