当前位置: 首页>>代码示例>>Java>>正文


Java WebResource.path方法代码示例

本文整理汇总了Java中com.sun.jersey.api.client.WebResource.path方法的典型用法代码示例。如果您正苦于以下问题:Java WebResource.path方法的具体用法?Java WebResource.path怎么用?Java WebResource.path使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.sun.jersey.api.client.WebResource的用法示例。


在下文中一共展示了WebResource.path方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: constructWebResource

import com.sun.jersey.api.client.WebResource; //导入方法依赖的package包/类
private WebResource constructWebResource(WebResource r, String... paths) {
  WebResource rt = r;
  for (String path : paths) {
    rt = rt.path(path);
  }
  if (isAuthenticationEnabled()) {
    rt = rt.queryParam("user.name", webserviceUserName);
  }
  return rt;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:11,代码来源:TestRMWebServicesAppsModification.java

示例2: findAmerican_XML

import com.sun.jersey.api.client.WebResource; //导入方法依赖的package包/类
public <T> T findAmerican_XML(Class<T> responseType) throws UniformInterfaceException {
    WebResource resource = webResource;
    resource = resource.path(java.text.MessageFormat.format("/international/{0}", new Object[]{"0"}));
    return resource.accept(javax.ws.rs.core.MediaType.APPLICATION_XML).get(responseType);
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:6,代码来源:RegionClient.java

示例3: findRecentRegionProductTypeFrom_JSON

import com.sun.jersey.api.client.WebResource; //导入方法依赖的package包/类
public <T> T findRecentRegionProductTypeFrom_JSON(Class<T> responseType, String region, Integer productTypeId, Integer orderLineId) throws UniformInterfaceException {
    WebResource resource = webResource;
    resource = resource.path(java.text.MessageFormat.format("/recent/region/producttype/{0}/{1}/{2}", new Object[]{region, productTypeId.toString(), orderLineId.toString()}));
    return resource.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON).get(responseType);
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:6,代码来源:LiveSalesViewClient.java

示例4: findAll_JSON

import com.sun.jersey.api.client.WebResource; //导入方法依赖的package包/类
public <T> T findAll_JSON(Class<T> responseType) throws UniformInterfaceException {
    WebResource resource = webResource;
    resource = resource.path("");
    return resource.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON).get(responseType);
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:6,代码来源:CumulativeLiveSalesClient.java

示例5: findTypeRange_XML

import com.sun.jersey.api.client.WebResource; //导入方法依赖的package包/类
public <T> T findTypeRange_XML(Class<T> responseType, String from, String to) throws UniformInterfaceException {
    WebResource resource = webResource;
    resource = resource.path(java.text.MessageFormat.format("type/{0}/{1}", new Object[]{from, to}));
    return resource.accept(javax.ws.rs.core.MediaType.APPLICATION_XML).get(responseType);
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:6,代码来源:CumulativeLiveSalesClient.java

示例6: findAllRegion_JSON

import com.sun.jersey.api.client.WebResource; //导入方法依赖的package包/类
public <T> T findAllRegion_JSON(Class<T> responseType, Integer regionId) throws UniformInterfaceException {
    WebResource resource = webResource;
    resource = resource.path(java.text.MessageFormat.format("region/{0}/", new Object[]{regionId}));
    return resource.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON).get(responseType);
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:6,代码来源:CumulativeLiveSalesClient.java

示例7: findRecent_JSON

import com.sun.jersey.api.client.WebResource; //导入方法依赖的package包/类
public <T> T findRecent_JSON(Class<T> responseType) throws UniformInterfaceException {
    WebResource resource = webResource;
    resource = resource.path("recent");
    return resource.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON).get(responseType);
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:6,代码来源:CumulativeLiveSalesClient.java

示例8: findAll_XML

import com.sun.jersey.api.client.WebResource; //导入方法依赖的package包/类
public <T> T findAll_XML(Class<T> responseType) throws UniformInterfaceException {
    WebResource resource = webResource;
    resource = resource.path("");
    return resource.accept(javax.ws.rs.core.MediaType.APPLICATION_XML).get(responseType);
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:6,代码来源:CumulativeLiveSalesClient.java

示例9: findRecentProductType_JSON

import com.sun.jersey.api.client.WebResource; //导入方法依赖的package包/类
public <T> T findRecentProductType_JSON(Class<T> responseType, Integer productTypeId) throws UniformInterfaceException {
    WebResource resource = webResource;
    resource = resource.path(java.text.MessageFormat.format("/recent/producttype/{0}", new Object[]{productTypeId.toString()}));
    return resource.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON).get(responseType);
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:6,代码来源:LiveSalesViewClient.java

示例10: findRecentRegion_JSON

import com.sun.jersey.api.client.WebResource; //导入方法依赖的package包/类
public <T> T findRecentRegion_JSON(Class<T> responseType, String region) throws UniformInterfaceException {
    WebResource resource = webResource;
    resource = resource.path(java.text.MessageFormat.format("/recent/region/{0}", new Object[]{region}));
    return resource.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON).get(responseType);
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:6,代码来源:LiveSalesViewClient.java

示例11: findRegionRange_JSON

import com.sun.jersey.api.client.WebResource; //导入方法依赖的package包/类
public <T> T findRegionRange_JSON(Class<T> responseType, String from, String to) throws UniformInterfaceException {
    WebResource resource = webResource;
    resource = resource.path(java.text.MessageFormat.format("region/{0}/{1}", new Object[]{from, to}));
    return resource.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON).get(responseType);
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:6,代码来源:CumulativeLiveSalesClient.java

示例12: findRange_JSON

import com.sun.jersey.api.client.WebResource; //导入方法依赖的package包/类
public <T> T findRange_JSON(Class<T> responseType, String from, String to) throws UniformInterfaceException {
    WebResource resource = webResource;
    resource = resource.path(java.text.MessageFormat.format("{0}/{1}", new Object[]{from, to}));
    return resource.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON).get(responseType);
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:6,代码来源:ProductTypeClient.java

示例13: getProductTypeHeatMap_XML

import com.sun.jersey.api.client.WebResource; //导入方法依赖的package包/类
public <T> T getProductTypeHeatMap_XML(Class<T> responseType, Date date1, Date date2, Integer productTypeId1, Integer productTypeId2) throws UniformInterfaceException {
    WebResource resource = webResource;
    resource = resource.path(java.text.MessageFormat.format("/producttype/{0}/{1}/{2}/{3}", new Object[]{((Long)date1.getTime()).toString(), ((Long)date2.getTime()).toString(), productTypeId1.toString(), productTypeId2.toString()}));
    return resource.accept(javax.ws.rs.core.MediaType.APPLICATION_XML).get(responseType);
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:6,代码来源:HeatMapClient.java

示例14: getDateRange_JSON

import com.sun.jersey.api.client.WebResource; //导入方法依赖的package包/类
public <T> T getDateRange_JSON(Class<T> responseType) throws UniformInterfaceException {
    WebResource resource = webResource;
    resource = resource.path("range");
    return resource.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON).get(responseType);
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:6,代码来源:HeatMapClient.java

示例15: findRecentRegionFrom_JSON

import com.sun.jersey.api.client.WebResource; //导入方法依赖的package包/类
public <T> T findRecentRegionFrom_JSON(Class<T> responseType, String region, Integer orderLineId) throws UniformInterfaceException {
    WebResource resource = webResource;
    resource = resource.path(java.text.MessageFormat.format("/recent/region/{0}/{1}", new Object[]{region, orderLineId.toString()}));
    return resource.accept(javax.ws.rs.core.MediaType.APPLICATION_JSON).get(responseType);
}
 
开发者ID:jalian-systems,项目名称:marathonv5,代码行数:6,代码来源:LiveSalesViewClient.java


注:本文中的com.sun.jersey.api.client.WebResource.path方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。