JasperserverRestAPIProperties.java 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. package com.uas.report;
  2. import org.springframework.beans.factory.annotation.Value;
  3. import org.springframework.context.annotation.Configuration;
  4. /**
  5. * jasperserver rest_v2 api 相关参数
  6. *
  7. * @author sunyj
  8. * @since 2016年9月23日 下午4:36:29
  9. */
  10. @Configuration
  11. public class JasperserverRestAPIProperties {
  12. /**
  13. * 协议
  14. */
  15. @Value("${jasperserver.rest.api.schema}")
  16. private String schema;
  17. /**
  18. * 主机名
  19. */
  20. @Value("${jasperserver.rest.api.host}")
  21. // localhost
  22. private String host;
  23. /**
  24. * 端口号
  25. */
  26. @Value("${jasperserver.rest.api.port}")
  27. // 8081
  28. private Integer port;
  29. /**
  30. * 根路径
  31. */
  32. @Value("${jasperserver.rest.api.context-root}")
  33. private String contextRoot;
  34. /**
  35. * rest服务路径
  36. */
  37. @Value("${jasperserver.rest.api.rest}")
  38. private String rest;
  39. /**
  40. * resources接口路径
  41. */
  42. @Value("${jasperserver.rest.api.resources}")
  43. private String resources;
  44. /**
  45. * 验证信息
  46. */
  47. @Value("${jasperserver.rest.api.authorization}")
  48. // amFzcGVyYWRtaW46emh1aTEqOA==
  49. private String authorization;
  50. /**
  51. * 图片资源路径
  52. */
  53. @Value("${jasperserver.rest.api.images}")
  54. private String images;
  55. public String getSchema() {
  56. return schema;
  57. }
  58. public void setSchema(String schema) {
  59. this.schema = schema;
  60. }
  61. public String getHost() {
  62. return host;
  63. }
  64. public void setHost(String host) {
  65. this.host = host;
  66. }
  67. public Integer getPort() {
  68. return port;
  69. }
  70. public void setPort(Integer port) {
  71. this.port = port;
  72. }
  73. public String getContextRoot() {
  74. return contextRoot;
  75. }
  76. public void setContextRoot(String contextRoot) {
  77. this.contextRoot = contextRoot;
  78. }
  79. public String getRest() {
  80. return rest;
  81. }
  82. public void setRest(String rest) {
  83. this.rest = rest;
  84. }
  85. public String getResources() {
  86. return resources;
  87. }
  88. public void setResources(String resources) {
  89. this.resources = resources;
  90. }
  91. public String getAuthorization() {
  92. return authorization;
  93. }
  94. public void setAuthorization(String authorization) {
  95. this.authorization = authorization;
  96. }
  97. public String getImages() {
  98. return images;
  99. }
  100. public void setImages(String images) {
  101. this.images = images;
  102. }
  103. }