本文整理汇总了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;
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}