上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 46 下一页
  2016年4月16日
摘要: Conditional GETs are a great way to reduce bandwidth, and potentially server-side performance, depending on how the information used to determine cond 阅读全文
posted @ 2016-04-16 22:41 huey2672 阅读(311) 评论(0) 推荐(0) 编辑
摘要: Previous sections have shown how to return HTTP responses and it is possible to return HTTP errors using the same mechanism. However, sometimes when p 阅读全文
posted @ 2016-04-16 22:20 huey2672 阅读(357) 评论(0) 推荐(0) 编辑
摘要: A very important aspects of REST is hyperlinks, URIs, in representations that clients can use to transition the Web service to new application states 阅读全文
posted @ 2016-04-16 21:03 huey2672 阅读(205) 评论(0) 推荐(0) 编辑
摘要: @Path may be used on classes and such classes are referred to as root resource classes. @Path may also be used on methods of root resource classes. Th 阅读全文
posted @ 2016-04-16 16:29 huey2672 阅读(380) 评论(0) 推荐(0) 编辑
摘要: Sometimes it is necessary to return additional information in response to a HTTP request. Such information may be built and returned using Response an 阅读全文
posted @ 2016-04-16 15:40 huey2672 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Previous sections on @Produces and @Consumes referred to MIME media types of representations and showed resource methods that consume and produce the 阅读全文
posted @ 2016-04-16 15:35 huey2672 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Parameters of a resource method may be annotated with parameter-based annotations to extract information from a request. A previous example presented 阅读全文
posted @ 2016-04-16 11:47 huey2672 阅读(273) 评论(0) 推荐(0) 编辑
摘要: JAX-RS provides a deployment agnostic abstract class Application for declaring root resource and provider classes, and root resource and provider sing 阅读全文
posted @ 2016-04-16 01:11 huey2672 阅读(318) 评论(0) 推荐(0) 编辑
  2016年4月15日
摘要: Root resource classes are POJOs (Plain Old Java Objects) that are annotated with @Path have at least one method annotated with @Path or a resource met 阅读全文
posted @ 2016-04-15 14:01 huey2672 阅读(398) 评论(0) 推荐(0) 编辑
  2016年4月13日
摘要: Maven Dependencies The following Maven dependencies need to be added to the pom: Creating a root resource Create the following Java class in your proj 阅读全文
posted @ 2016-04-13 22:50 huey2672 阅读(338) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 46 下一页