cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Le Goff" <eric.leg...@babelgum.com>
Subject Re: svn commit: r599702 - in /incubator/cxf/trunk: rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/ rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/ systests/src/test/java/org/apache/cxf/systest/jaxrs/ systests/src/test/ja
Date Fri, 30 Nov 2007 09:10:56 GMT
> 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

Mime
View raw message