本文整理汇总了Java中org.fusesource.restygwt.client.RestServiceProxy类的典型用法代码示例。如果您正苦于以下问题:Java RestServiceProxy类的具体用法?Java RestServiceProxy怎么用?Java RestServiceProxy使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RestServiceProxy类属于org.fusesource.restygwt.client包,在下文中一共展示了RestServiceProxy类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: user
import org.fusesource.restygwt.client.RestServiceProxy; //导入依赖的package包/类
public UserService user() {
if (userService == null) {
userService = GWT.create(UserService.class);
((RestServiceProxy) userService).setResource(getResource("users"));
}
return userService;
}
开发者ID:vsite-hr,项目名称:mentor,代码行数:8,代码来源:Api.java
示例2: course
import org.fusesource.restygwt.client.RestServiceProxy; //导入依赖的package包/类
public CourseService course() {
if (courseService == null) {
courseService = GWT.create(CourseService.class);
((RestServiceProxy) courseService).setResource(getResource("courses"));
}
return courseService;
}
开发者ID:vsite-hr,项目名称:mentor,代码行数:8,代码来源:Api.java
示例3: lecture
import org.fusesource.restygwt.client.RestServiceProxy; //导入依赖的package包/类
public LectureService lecture() {
if (lectureService == null) {
lectureService = GWT.create(LectureService.class);
((RestServiceProxy) lectureService).setResource(getResource("lectures"));
}
return lectureService;
}
开发者ID:vsite-hr,项目名称:mentor,代码行数:8,代码来源:Api.java
示例4: unit
import org.fusesource.restygwt.client.RestServiceProxy; //导入依赖的package包/类
public UnitService unit() {
if (unitService == null) {
unitService = GWT.create(UnitService.class);
((RestServiceProxy) unitService).setResource(getResource("units"));
}
return unitService;
}
开发者ID:vsite-hr,项目名称:mentor,代码行数:8,代码来源:Api.java
示例5: SoftwareREST
import org.fusesource.restygwt.client.RestServiceProxy; //导入依赖的package包/类
public SoftwareREST (String url) {
//Defaults.setServiceRoot(Config.getServerURL());
Defaults.setDateFormat(null);
Defaults.setDispatcher(new AuthenticatedDispatcher());
this.service = GWT.create(SoftwareService.class);
((RestServiceProxy)this.service).setResource(
new Resource(url));
}
开发者ID:KnowledgeCaptureAndDiscovery,项目名称:ontosoft,代码行数:9,代码来源:SoftwareREST.java
示例6: provideLoanService
import org.fusesource.restygwt.client.RestServiceProxy; //导入依赖的package包/类
@Provides
@Singleton
public LoanService provideLoanService() {
LoanServiceConfig config = GWT.create(LoanServiceConfig.class);
LoanService loanService = GWT.create(LoanService.class);
String url = "http://" + config.host() + ":" + config.httpPort();
Resource resource = new Resource(url);
((RestServiceProxy) loanService).setResource(resource);
return loanService;
}
开发者ID:fastnsilver,项目名称:fns-projects,代码行数:11,代码来源:RestModule.java
示例7: getService
import org.fusesource.restygwt.client.RestServiceProxy; //导入依赖的package包/类
public static GameService getService() {
if (instance == null) {
instance = GWT.create(GameService.class);
}
Resource resource = new Resource(GWT.getModuleBaseURL() + "game");
((RestServiceProxy) instance).setResource(resource);
return instance;
}
开发者ID:pillingworthz,项目名称:ifictionary,代码行数:10,代码来源:GameService.java
示例8: AbstractServiceConsumer
import org.fusesource.restygwt.client.RestServiceProxy; //导入依赖的package包/类
protected AbstractServiceConsumer(R rest) {
if (rest == null) throw new IllegalArgumentException("Rest service cannot be a null");
this.rest = rest;
RestServiceProxy restProxy = (RestServiceProxy) this.rest;
String serviceUrl = getServiceUrl();
String resourceUrl = restProxy.getResource().getUri();
if (resourceUrl.startsWith(GWT.getModuleBaseURL()))
serviceUrl += resourceUrl.substring(GWT.getModuleBaseURL().length() - 1);
LOG.info("AbstractServiceConsumer: resourceUrl=" + resourceUrl + "; serviceUrl=" + serviceUrl);
restProxy.setResource(new Resource(serviceUrl));
}
开发者ID:domax,项目名称:gwt-dynamic-plugins,代码行数:12,代码来源:AbstractServiceConsumer.java
示例9: provideHostService
import org.fusesource.restygwt.client.RestServiceProxy; //导入依赖的package包/类
@Provides @Singleton
HostService provideHostService() {
HostService hostService = GWT.create(HostService.class);
((RestServiceProxy)hostService).setResource(new Resource(GWT.getHostPageBaseURL() + "data"));
return hostService;
}
开发者ID:jitlogic,项目名称:zico,代码行数:7,代码来源:ClientModule.java
示例10: provideSystemService
import org.fusesource.restygwt.client.RestServiceProxy; //导入依赖的package包/类
@Provides @Singleton
SystemService provideSystemService() {
SystemService systemService = GWT.create(SystemService.class);
((RestServiceProxy)systemService).setResource(new Resource(GWT.getHostPageBaseURL() + "data"));
return systemService;
}
开发者ID:jitlogic,项目名称:zico,代码行数:7,代码来源:ClientModule.java
示例11: provideUserService
import org.fusesource.restygwt.client.RestServiceProxy; //导入依赖的package包/类
@Provides @Singleton
UserService provideUserService() {
UserService userService = GWT.create(UserService.class);
((RestServiceProxy)userService).setResource(new Resource(GWT.getHostPageBaseURL() + "data"));
return userService;
}
开发者ID:jitlogic,项目名称:zico,代码行数:7,代码来源:ClientModule.java
示例12: provideTraceTemplateService
import org.fusesource.restygwt.client.RestServiceProxy; //导入依赖的package包/类
@Provides @Singleton
TraceTemplateService provideTraceTemplateService() {
TraceTemplateService templateService = GWT.create(TraceTemplateService.class);
((RestServiceProxy)templateService).setResource(new Resource(GWT.getHostPageBaseURL() + "data"));
return templateService;
}
开发者ID:jitlogic,项目名称:zico,代码行数:7,代码来源:ClientModule.java
示例13: provideTraceDataService
import org.fusesource.restygwt.client.RestServiceProxy; //导入依赖的package包/类
@Provides @Singleton
TraceDataService provideTraceDataService() {
TraceDataService traceDataService = GWT.create(TraceDataService.class);
((RestServiceProxy)traceDataService).setResource(new Resource(GWT.getHostPageBaseURL() + "data"));
return traceDataService;
}
开发者ID:jitlogic,项目名称:zico,代码行数:7,代码来源:ClientModule.java
示例14: initServices
import org.fusesource.restygwt.client.RestServiceProxy; //导入依赖的package包/类
private void initServices(String baseUrl) {
Defaults.setDateFormat(null);
logger.info("Init the domains...");
Resource resource = new Resource(baseUrl);
((RestServiceProxy) personClient).setResource(resource);
((RestServiceProxy) userClient).setResource(resource);
}
开发者ID:interseroh,项目名称:demo-gwt-springboot,代码行数:11,代码来源:RestServicePreparator.java
注:本文中的org.fusesource.restygwt.client.RestServiceProxy类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论