bundles/org.eclipse.packagedrone.repo.adapter.unzip/src/org/eclipse/packagedrone/repo/adapter/unzip/UnzipServlet.java
protected static boolean isZip ( final ArtifactInformation artifact )
    {
        if ( artifact.getName ().toLowerCase ().endsWith ( ".zip" ) )
        {
            return true;
        }

        final String mdExtension = artifact.getMetaData ().get ( MK_MVN_EXTENSION );
        if ( mdExtension != null && mdExtension.equalsIgnoreCase ( "zip" ) )
        {
            return true;
        }

        final String mdMime = artifact.getMetaData ().get ( MK_MIME_TYPE );
        if ( mdMime != null && mdMime.equalsIgnoreCase ( "application/zip" ) )
        {
            return true;
        }

        return false;
    }
protected static boolean isZip ( final ArtifactInformation artifact )
    {
        if ( artifact.getName ().toLowerCase ().endsWith ( ".zip" ) )
        {
            return true;
        }

        final String mdExtension = artifact.getMetaData ().get ( MK_MVN_EXTENSION );
        if ( mdExtension != null && mdExtension.equalsIgnoreCase ( "zip" ) )
        {
            return true;
        }

        final String mdMime = artifact.getMetaData ().get ( MK_MIME_TYPE );
        if ( mdMime != null && mdMime.equalsIgnoreCase ( "application/zip" ) )
        {
            return true;
        }

        return false;
    }
Check if an artifact is a ZIP file
<p>
An artifact is a ZIP file if at least one of th following tests is true:
<ul>
<li>Its lower case name ends with <code>.zip</code></li>
<li>The meta data field <code>mvn:extension</code> is set to
<code>zip</code>
<li>The meta data field <code>mime:type</code> is set to
<code>application/zip</code>
</ul>
</p>

@param artifact
the artifact to check
@return <code>true</code> if the artifact is a ZIP file,
<code>false</code> otherwise