@Test public void isTextEcmascriptJavaScriptMimetype() { assertTrue(this.action.isJavascriptMimeType("text/ecmascript")); }
public boolean isJavascriptMimeType(String mimetype) { boolean result = "text/javascript".equalsIgnoreCase(mimetype) || "application/x-javascript".equalsIgnoreCase(mimetype) || "application/javascript".equalsIgnoreCase(mimetype); result |= "application/ecmascript".equalsIgnoreCase(mimetype) || "text/ecmascript".equalsIgnoreCase(mimetype); return result; }
SkinAction extends XWikiAction { public boolean isJavascriptMimeType(String mimetype) { boolean result = "text/javascript".equalsIgnoreCase(mimetype) || "application/x-javascript".equalsIgnoreCase(mimetype) || "application/javascript".equalsIgnoreCase(mimetype); result |= "application/ecmascript".equalsIgnoreCase(mimetype) || "text/ecmascript".equalsIgnoreCase(mimetype); return result; } }
SkinAction extends XWikiAction { public boolean isJavascriptMimeType(String mimetype) { boolean result = "text/javascript".equalsIgnoreCase(mimetype) || "application/x-javascript".equalsIgnoreCase(mimetype) || "application/javascript".equalsIgnoreCase(mimetype); result |= "application/ecmascript".equalsIgnoreCase(mimetype) || "text/ecmascript".equalsIgnoreCase(mimetype); return result; }  }
SkinAction extends XWikiAction { public boolean isJavascriptMimeType(String mimetype) { boolean result = "text/javascript".equalsIgnoreCase(mimetype) || "application/x-javascript".equalsIgnoreCase(mimetype) || "application/javascript".equalsIgnoreCase(mimetype); result |= "application/ecmascript".equalsIgnoreCase(mimetype) || "text/ecmascript".equalsIgnoreCase(mimetype); return result; }  @Override String render(XWikiContext context); String render(String path, XWikiContext context); String getSkinFilePath(String filename, String skin); String getResourceFilePath(String filename); boolean renderFileFromObjectField(String filename, XWikiDocument doc, final XWikiContext context); boolean renderFileFromAttachment(String filename, XWikiDocument doc, XWikiContext context); boolean isJavascriptMimeType(String mimetype); boolean isCssMimeType(String mimetype); }
SkinAction extends XWikiAction { public boolean isJavascriptMimeType(String mimetype) { boolean result = "text/javascript".equalsIgnoreCase(mimetype) || "application/x-javascript".equalsIgnoreCase(mimetype) || "application/javascript".equalsIgnoreCase(mimetype); result |= "application/ecmascript".equalsIgnoreCase(mimetype) || "text/ecmascript".equalsIgnoreCase(mimetype); return result; }  @Override String render(XWikiContext context); String render(String path, XWikiContext context); String getSkinFilePath(String filename, String skin); String getResourceFilePath(String filename); boolean renderFileFromObjectField(String filename, XWikiDocument doc, final XWikiContext context); boolean renderFileFromAttachment(String filename, XWikiDocument doc, XWikiContext context); boolean isJavascriptMimeType(String mimetype); boolean isCssMimeType(String mimetype);  }