當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。