本文整理了Java中javax.ws.rs.client.Entity.getAnnotations()
方法的一些代码示例,展示了Entity.getAnnotations()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Entity.getAnnotations()
方法的具体详情如下:
包路径:javax.ws.rs.client.Entity
类名称:Entity
方法名:getAnnotations
[英]Get the entity annotations.
[中]获取实体注释。
代码示例来源:origin: jersey/jersey
private void storeEntity(final Entity<?> entity) {
if (entity != null) {
requestContext.variant(entity.getVariant());
requestContext.setEntity(entity.getEntity());
requestContext.setEntityAnnotations(entity.getAnnotations());
}
}
代码示例来源:origin: jersey/jersey
private void storeEntity(final Entity<?> entity) {
if (entity != null) {
requestContext.variant(entity.getVariant());
requestContext.setEntity(entity.getEntity());
requestContext.setEntityAnnotations(entity.getAnnotations());
}
}
代码示例来源:origin: org.glassfish.jersey.core/jersey-client
private void storeEntity(final Entity<?> entity) {
if (entity != null) {
requestContext.variant(entity.getVariant());
requestContext.setEntity(entity.getEntity());
requestContext.setEntityAnnotations(entity.getAnnotations());
}
}
代码示例来源:origin: resteasy/Resteasy
public void setEntity(Entity<?> entity)
{
if (entity == null)
{
this.entity = null;
this.entityAnnotations = null;
this.entityClass = null;
this.entityGenericType = null;
}
else
{
Object ent = entity.getEntity();
setEntityObject(ent);
this.entityAnnotations = entity.getAnnotations();
Variant v = entity.getVariant();
headers.setMediaType(v.getMediaType());
headers.setLanguage(v.getLanguage());
headers.header("Content-Encoding", null);
headers.header("Content-Encoding", v.getEncoding());
}
}
代码示例来源:origin: hstaudacher/osgi-jax-rs-connector
private void storeEntity(final Entity<?> entity) {
if (entity != null) {
requestContext.variant(entity.getVariant());
requestContext.setEntity(entity.getEntity());
requestContext.setEntityAnnotations(entity.getAnnotations());
}
}
代码示例来源:origin: com.eclipsesource.jaxrs/jersey-all
private void storeEntity(final Entity<?> entity) {
if (entity != null) {
requestContext.variant(entity.getVariant());
requestContext.setEntity(entity.getEntity());
requestContext.setEntityAnnotations(entity.getAnnotations());
}
}
代码示例来源:origin: org.glassfish.jersey.bundles/jaxrs-ri
private void storeEntity(final Entity<?> entity) {
if (entity != null) {
requestContext.variant(entity.getVariant());
requestContext.setEntity(entity.getEntity());
requestContext.setEntityAnnotations(entity.getAnnotations());
}
}
代码示例来源:origin: hstaudacher/osgi-jax-rs-connector
private void storeEntity(final Entity<?> entity) {
if (entity != null) {
requestContext.variant(entity.getVariant());
requestContext.setEntity(entity.getEntity());
requestContext.setEntityAnnotations(entity.getAnnotations());
}
}
代码示例来源:origin: org.apache.cxf/cxf-rt-rs-client
requestClass = body.getClass();
inGenericType = body.getClass();
inAnns = entity.getAnnotations();
代码示例来源:origin: apache/cxf
requestClass = body.getClass();
inGenericType = body.getClass();
inAnns = entity.getAnnotations();
代码示例来源:origin: apache/cxf
requestClass = body.getClass();
inType = body.getClass();
inAnns = entity.getAnnotations();
代码示例来源:origin: org.apache.cxf/cxf-rt-rs-client
requestClass = body.getClass();
inType = body.getClass();
inAnns = entity.getAnnotations();
代码示例来源:origin: org.jboss.resteasy/resteasy-client-20
public void setEntity(Entity<?> entity)
{
if (entity == null)
{
this.entity = null;
this.entityAnnotations = null;
this.entityClass = null;
this.entityGenericType = null;
}
else
{
Object ent = entity.getEntity();
setEntityObject(ent);
this.entityAnnotations = entity.getAnnotations();
Variant v = entity.getVariant();
headers.setMediaType(v.getMediaType());
headers.setLanguage(v.getLanguage());
headers.header("Content-Encoding", null);
headers.header("Content-Encoding", v.getEncoding());
}
}
代码示例来源:origin: org.jboss.resteasy/resteasy-client
public void setEntity(Entity<?> entity)
{
if (entity == null)
{
this.entity = null;
this.entityAnnotations = null;
this.entityClass = null;
this.entityGenericType = null;
}
else
{
Object ent = entity.getEntity();
setEntityObject(ent);
this.entityAnnotations = entity.getAnnotations();
Variant v = entity.getVariant();
headers.setMediaType(v.getMediaType());
headers.setLanguage(v.getLanguage());
headers.header("Content-Encoding", null);
headers.header("Content-Encoding", v.getEncoding());
}
}
内容来源于网络,如有侵权,请联系作者删除!