org.glassfish.jersey.media.multipart.MultiPart.setEntity()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(100)

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

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;
}

相关文章