javax.faces.application.Resource.setContentType()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(95)

本文整理了Java中javax.faces.application.Resource.setContentType方法的一些代码示例,展示了Resource.setContentType的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Resource.setContentType方法的具体详情如下:
包路径:javax.faces.application.Resource
类名称:Resource
方法名:setContentType

Resource.setContentType介绍

[英]Set the MIME content-type for this resource. The default implementation performs no validation on the argument.
[中]设置此资源的MIME内容类型。默认实现不对参数执行验证。

代码示例

代码示例来源:origin: primefaces/primefaces

@Override
public void setContentType(final String contentType) {
  getWrapped().setContentType(contentType);
}

代码示例来源:origin: liferay/liferay-faces

/**
 * Since this method is not supplied by the {@link ResourceWrapper} class it has to be implemented here.
 */
@Override
public void setContentType(String contentType) {
  wrappedResource.setContentType(contentType);
}

代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl

/**
 * Since this method is not supplied by the {@link ResourceWrapper} class it has to be implemented here.
 */
@Override
public void setContentType(String contentType) {
  wrappedResource.setContentType(contentType);
}

代码示例来源:origin: liferay/liferay-faces

/**
 * Since this method is not supplied by the {@link ResourceWrapper} class it has to be implemented here.
 */
@Override
public void setContentType(String contentType) {
  wrappedResource.setContentType(contentType);
}

代码示例来源:origin: com.liferay.faces/liferay-faces-bridge-impl

/**
 * Since this method is not supplied by the {@link ResourceWrapper} class it has to be implemented here.
 */
@Override
public void setContentType(String contentType) {
  wrappedResource.setContentType(contentType);
}

代码示例来源:origin: javax.faces/javax.faces-api

/**
 * <p class="changed_added_2_2"> The default behavior of this method is to call
 * {@link Resource#setContentType(String)} on the wrapped {@link ResourceHandler} object. </p>
 */
@Override
public void setContentType(String contentType) {
  getWrapped().setContentType(contentType);
}

代码示例来源:origin: com.liferay.faces/com.liferay.faces.util

/**
 * Since this method is not supplied by the {@link ResourceWrapper} class it has to be implemented here.
 */
@Override
public void setContentType(String contentType) {
  getWrapped().setContentType(contentType);
}

代码示例来源:origin: com.sun.faces/jsf-api

/**
 * <p class="changed_added_2_2"> The default behavior of this method is to call
 * {@link Resource#setContentType(String)} on the wrapped {@link ResourceHandler} object. </p>
 */
@Override
public void setContentType(String contentType) {
  getWrapped().setContentType(contentType);
}

代码示例来源:origin: org.glassfish/jakarta.faces

/**
 * <p class="changed_added_2_2">
 * The default behavior of this method is to call {@link Resource#setContentType(String)} on the
 * wrapped {@link ResourceHandler} object.
 * </p>
 */
@Override
public void setContentType(String contentType) {
  getWrapped().setContentType(contentType);
}

代码示例来源:origin: org.apache.deltaspike.modules/deltaspike-jsf-module-impl-ee6

@Override
public void setContentType(String contentType)
{
  getWrapped().setContentType(contentType);
}

代码示例来源:origin: javax/javaee-web-api

/**
 * <p class="changed_added_2_2"> The default behavior of this method is to call
 * {@link Resource#setContentType(String)} on the wrapped {@link ResourceHandler} object. </p>
 */
@Override
public void setContentType(String contentType) {
  getWrapped().setContentType(contentType);
}

代码示例来源:origin: eclipse-ee4j/mojarra

/**
 * <p class="changed_added_2_2">
 * The default behavior of this method is to call {@link Resource#setContentType(String)} on the
 * wrapped {@link ResourceHandler} object.
 * </p>
 */
@Override
public void setContentType(String contentType) {
  getWrapped().setContentType(contentType);
}

代码示例来源:origin: org.glassfish/javax.faces

/**
 * <p class="changed_added_2_2">
 * The default behavior of this method is to call {@link Resource#setContentType(String)} on the
 * wrapped {@link ResourceHandler} object.
 * </p>
 */
@Override
public void setContentType(String contentType) {
  getWrapped().setContentType(contentType);
}

代码示例来源:origin: org.apache.myfaces.core/myfaces-api

@Override
public void setContentType(String contentType)
{
  getWrapped().setContentType(contentType);
}

代码示例来源:origin: org.apache.deltaspike.modules/deltaspike-jsf-module-impl

@Override
public void setContentType(String contentType)
{
  getWrapped().setContentType(contentType);
}

代码示例来源:origin: eclipse-ee4j/mojarra

/**
 * <p class="changed_added_2_2">
 * The default behavior of this method is to call {@link Resource#setContentType(String)} on the
 * wrapped {@link ResourceHandler} object.
 * </p>
 */
@Override
public void setContentType(String contentType) {
  getWrapped().setContentType(contentType);
}

代码示例来源:origin: org.primefaces/primefaces

@Override
public void setContentType(final String contentType) {
  getWrapped().setContentType(contentType);
}

代码示例来源:origin: jboss/jboss-javaee-specs

/**
 * <p class="changed_added_2_2"> The default behavior of this method is to call
 * {@link Resource#setContentType(String)} on the wrapped {@link ResourceHandler} object. </p>
 */
@Override
public void setContentType(String contentType) {
  getWrapped().setContentType(contentType);
}

代码示例来源:origin: org.icefaces/icefaces-ace

public IceOutputResource(String name, String libraryName, Object o, String mimeType) {
  this.name = name;
  this.libraryName = libraryName;
  super.setResourceName(name);
  super.setLibraryName(libraryName);
  this.content = o;
  super.setLibraryName(libraryName);
  super.setContentType(mimeType);
}

代码示例来源:origin: org.glassfish/jakarta.faces

/**
 * Creates a new instance of ResourceBase
 */
public ResourceImpl(ResourceInfo resourceInfo, String contentType, long initialTime, long maxAge) {
  this.resourceInfo = resourceInfo;
  super.setResourceName(resourceInfo.getName());
  super.setLibraryName(resourceInfo.getLibraryInfo() != null
             ? resourceInfo.getLibraryInfo().getName()
             : null);
  super.setContentType(contentType);
  this.initialTime = initialTime;
  this.maxAge = maxAge;
}

相关文章