本文整理了Java中org.glassfish.jersey.media.multipart.MultiPart.setEntity()
方法的一些代码示例,展示了MultiPart.setEntity()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MultiPart.setEntity()
方法的具体详情如下:
包路径:org.glassfish.jersey.media.multipart.MultiPart
类名称:MultiPart
方法名:setEntity
[英]Disables access to the entity for a MultiPart. Use the list returned by getBodyParts() to access the relevant BodyPart instead.
[中]禁用对多部分实体的访问。使用getBodyParts()返回的列表来访问相关的BodyPart。
代码示例来源:origin: jersey/jersey
/**
* Override the entity set operation on a {@link MultiPart} to throw
* {@code IllegalArgumentException}.
*
* @param entity entity to set for this {@link BodyPart}.
*/
@Override
public BodyPart entity(Object entity) {
setEntity(entity);
return this;
}
代码示例来源:origin: hstaudacher/osgi-jax-rs-connector
/**
* Override the entity set operation on a {@link MultiPart} to throw
* {@code IllegalArgumentException}.
*
* @param entity entity to set for this {@link BodyPart}.
*/
@Override
public BodyPart entity(Object entity) {
setEntity(entity);
return this;
}
代码示例来源:origin: org.glassfish.jersey.media/jersey-media-multipart
/**
* Override the entity set operation on a {@link MultiPart} to throw
* {@code IllegalArgumentException}.
*
* @param entity entity to set for this {@link BodyPart}.
*/
@Override
public BodyPart entity(Object entity) {
setEntity(entity);
return this;
}
代码示例来源:origin: hstaudacher/osgi-jax-rs-connector
/**
* Override the entity set operation on a {@link MultiPart} to throw
* {@code IllegalArgumentException}.
*
* @param entity entity to set for this {@link BodyPart}.
*/
@Override
public BodyPart entity(Object entity) {
setEntity(entity);
return this;
}
代码示例来源:origin: com.eclipsesource.jaxrs/jersey-all
/**
* Override the entity set operation on a {@link MultiPart} to throw
* {@code IllegalArgumentException}.
*
* @param entity entity to set for this {@link BodyPart}.
*/
@Override
public BodyPart entity(Object entity) {
setEntity(entity);
return this;
}
内容来源于网络,如有侵权,请联系作者删除!