public static void main(String[] args) {
try {
BasicConfigurator.configure();
Debug.info(" - Initializing Hibernate ... ");
_RootDAO.initialize();
ApplicationProperties.getConfigProperties().setProperty(
ApplicationProperty.CustomizationDefaultCourseUrl.key(),
"http://syllabuskrk.agh.edu.pl/:years/pl/magnesite/modules/:courseNbr");
ApplicationProperties.getConfigProperties().setProperty("unitime.custom.default.course_api_url",
"http://syllabuskrk.agh.edu.pl/api/:years/modules/:courseNbr");
ApplicationProperties.getDefaultProperties()
.setProperty(ApplicationProperty.CustomizationDefaultCourseDetailsDownload.key(), "true");
System.out.println("URL:" + new AGHCourseDetailsProvider()
.getCourseUrl(new AcademicSessionInfo(231379l, "2015", "Semestr zimowy", "AGH"), "BAND", "101"));
System.out.println("Details:\n" + new AGHCourseDetailsProvider()
.getDetails(new AcademicSessionInfo(231379l, "2015", "Semestr zimowy", "AGH"), "BAND", "101"));
} catch (Exception e) {
e.printStackTrace();
}
}
AGHCourseDetailsProvider.java 文件源码
java
阅读 18
收藏 0
点赞 0
评论 0
项目:unitime
作者:
评论列表
文章目录