当前位置: 首页>>代码示例>>Java>>正文


Java HTTPConstants.HEADER_GET属性代码示例

本文整理汇总了Java中org.apache.axis2.transport.http.HTTPConstants.HEADER_GET属性的典型用法代码示例。如果您正苦于以下问题:Java HTTPConstants.HEADER_GET属性的具体用法?Java HTTPConstants.HEADER_GET怎么用?Java HTTPConstants.HEADER_GET使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.apache.axis2.transport.http.HTTPConstants的用法示例。


在下文中一共展示了HTTPConstants.HEADER_GET属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getGroupCount

@Path("/count")
@GET
@ApiOperation(
        produces = MediaType.APPLICATION_JSON,
        httpMethod = HTTPConstants.HEADER_GET,
        value = "Get the count of groups belongs to current user.",
        notes = "Returns count of all permitted groups enrolled with the system.",
        tags = "Device Group Management",
        extensions = {
                @Extension(properties = {
                        @ExtensionProperty(name = Constants.SCOPE, value = "perm:admin-groups:count")
                })
        }
)
@ApiResponses(value = {
        @ApiResponse(code = 200, message = "OK. \n Successfully fetched the device group count.",
                response = DeviceGroupList.class,
                responseHeaders = {
                        @ResponseHeader(
                                name = "Content-Type",
                                description = "The content type of the body"),
                        @ResponseHeader(
                                name = "ETag",
                                description = "Entity Tag of the response resource.\n" +
                                              "Used by caches, or in conditional requests."),
                        @ResponseHeader(
                                name = "Last-Modified",
                                description = "Date and time the resource has been modified the last time.\n" +
                                              "Used by caches, or in conditional requests."),
                }),
        @ApiResponse(
                code = 304,
                message = "Not Modified. \n Empty body because the client has already the latest version of " +
                          "the requested resource."),
        @ApiResponse(
                code = 404,
                message = "No groups found.",
                response = ErrorResponse.class),
        @ApiResponse(
                code = 406,
                message = "Not Acceptable.\n The requested media type is not supported."),
        @ApiResponse(
                code = 500,
                message = "Internal Server Error. \n Server error occurred while fetching the group count.",
                response = ErrorResponse.class)
})
Response getGroupCount();
 
开发者ID:wso2,项目名称:carbon-device-mgt,代码行数:47,代码来源:GroupManagementAdminService.java

示例2: getGroupCount

@Path("/count")
@GET
@ApiOperation(
        produces = MediaType.APPLICATION_JSON,
        httpMethod = HTTPConstants.HEADER_GET,
        value = "Get the count of groups belongs to current user.",
        notes = "Returns count of all permitted groups enrolled with the system.",
        tags = "Device Group Management",
        extensions = {
            @Extension(properties = {
                    @ExtensionProperty(name = Constants.SCOPE, value = "perm:groups:count")
            })
        }

)
@ApiResponses(value = {
        @ApiResponse(code = 200, message = "OK. \n Successfully fetched the device group count.",
                response = DeviceGroupList.class,
                responseHeaders = {
                        @ResponseHeader(
                                name = "Content-Type",
                                description = "The content type of the body"),
                        @ResponseHeader(
                                name = "ETag",
                                description = "Entity Tag of the response resource.\n" +
                                              "Used by caches, or in conditional requests."),
                        @ResponseHeader(
                                name = "Last-Modified",
                                description = "Date and time the resource has been modified the last time.\n" +
                                              "Used by caches, or in conditional requests."),
                }),
        @ApiResponse(
                code = 304,
                message = "Not Modified. \n Empty body because the client has already the latest version of " +
                          "the requested resource."),
        @ApiResponse(
                code = 406,
                message = "Not Acceptable.\n The requested media type is not supported."),
        @ApiResponse(
                code = 500,
                message = "Internal Server Error. \n Server error occurred while fetching the group count.",
                response = ErrorResponse.class)
})
Response getGroupCount();
 
开发者ID:wso2,项目名称:carbon-device-mgt,代码行数:44,代码来源:GroupManagementService.java

示例3: getGroup

@Path("/id/{groupId}")
@GET
@ApiOperation(
        produces = MediaType.APPLICATION_JSON,
        httpMethod = HTTPConstants.HEADER_GET,
        value = "View group specified.",
        notes = "Returns details of group enrolled with the system.",
        tags = "Device Group Management",
        extensions = {
            @Extension(properties = {
                    @ExtensionProperty(name = Constants.SCOPE, value = "perm:groups:groups-view")
            })
        }
)
@ApiResponses(value = {
        @ApiResponse(code = 200, message = "OK. \n Successfully fetched the device group.",
                response = DeviceGroup.class,
                responseHeaders = {
                        @ResponseHeader(
                                name = "Content-Type",
                                description = "The content type of the body"),
                        @ResponseHeader(
                                name = "ETag",
                                description = "Entity Tag of the response resource.\n" +
                                              "Used by caches, or in conditional requests."),
                        @ResponseHeader(
                                name = "Last-Modified",
                                description = "Date and time the resource has been modified the last time.\n" +
                                              "Used by caches, or in conditional requests."),
                }),
        @ApiResponse(
                code = 304,
                message = "Not Modified. \n Empty body because the client has already the latest version of " +
                          "the requested resource."),
        @ApiResponse(
                code = 404,
                message = "Group found.",
                response = ErrorResponse.class),
        @ApiResponse(
                code = 406,
                message = "Not Acceptable.\n The requested media type is not supported."),
        @ApiResponse(
                code = 500,
                message = "Internal Server Error. \n Server error occurred while fetching the group details.",
                response = ErrorResponse.class)
})
Response getGroup(@ApiParam(
                          name = "groupId",
                          value = "ID of the group to view.",
                          required = true)
                  @PathParam("groupId") int groupId);
 
开发者ID:wso2,项目名称:carbon-device-mgt,代码行数:51,代码来源:GroupManagementService.java

示例4: getRolesOfGroup

@Path("/id/{groupId}/roles")
@GET
@ApiOperation(
        produces = MediaType.APPLICATION_JSON,
        httpMethod = HTTPConstants.HEADER_GET,
        value = "View list of roles of a device group.",
        notes = "Returns details of roles which particular group has been shared with.",
        tags = "Device Group Management",
        extensions = {
            @Extension(properties = {
                    @ExtensionProperty(name = Constants.SCOPE, value = "perm:groups:roles")
            })
        }
)
@ApiResponses(value = {
        @ApiResponse(code = 200, message = "OK. \n Successfully fetched the users.",
                response = RoleList.class,
                responseHeaders = {
                        @ResponseHeader(
                                name = "Content-Type",
                                description = "The content type of the body"),
                        @ResponseHeader(
                                name = "ETag",
                                description = "Entity Tag of the response resource.\n" +
                                        "Used by caches, or in conditional requests."),
                        @ResponseHeader(
                                name = "Last-Modified",
                                description = "Date and time the resource has been modified the last time.\n" +
                                        "Used by caches, or in conditional requests."),
                }),
        @ApiResponse(
                code = 304,
                message = "Not Modified. \n Empty body because the client has already the latest version of " +
                        "the requested resource."),
        @ApiResponse(
                code = 404,
                message = "Group not found.",
                response = ErrorResponse.class),
        @ApiResponse(
                code = 406,
                message = "Not Acceptable.\n The requested media type is not supported."),
        @ApiResponse(
                code = 500,
                message = "Internal Server Error. \n Server error occurred while fetching the roles.",
                response = ErrorResponse.class)
})
Response getRolesOfGroup(@ApiParam(
                                 name = "groupId",
                                 value = "ID of the group.",
                                 required = true)
                         @PathParam("groupId") int groupId);
 
开发者ID:wso2,项目名称:carbon-device-mgt,代码行数:51,代码来源:GroupManagementService.java

示例5: getDevicesOfGroup

@Path("/id/{groupId}/devices")
@GET
@ApiOperation(
        produces = MediaType.APPLICATION_JSON,
        httpMethod = HTTPConstants.HEADER_GET,
        value = "View list of devices in the device group.",
        notes = "Returns list of devices in the device group.",
        tags = "Device Group Management",
        extensions = {
            @Extension(properties = {
                    @ExtensionProperty(name = Constants.SCOPE, value = "perm:groups:devices")
            })
        }
)
@ApiResponses(value = {
        @ApiResponse(code = 200, message = "OK. \n Successfully fetched the devices.",
                response = DeviceList.class,
                responseHeaders = {
                        @ResponseHeader(
                                name = "Content-Type",
                                description = "The content type of the body"),
                        @ResponseHeader(
                                name = "ETag",
                                description = "Entity Tag of the response resource.\n" +
                                              "Used by caches, or in conditional requests."),
                        @ResponseHeader(
                                name = "Last-Modified",
                                description = "Date and time the resource has been modified the last time.\n" +
                                              "Used by caches, or in conditional requests."),
                }),
        @ApiResponse(
                code = 304,
                message = "Not Modified. \n Empty body because the client has already the latest version of " +
                          "the requested resource."),
        @ApiResponse(
                code = 404,
                message = "Group not found.",
                response = ErrorResponse.class),
        @ApiResponse(
                code = 406,
                message = "Not Acceptable.\n The requested media type is not supported."),
        @ApiResponse(
                code = 500,
                message = "Internal Server Error. \n Server error occurred while fetching the devices.",
                response = ErrorResponse.class)
})
Response getDevicesOfGroup(@ApiParam(
                                   name = "groupId",
                                   value = "ID of the group.",
                                   required = true)
                           @PathParam("groupId")
                                   int groupId,
                           @ApiParam(
                                   name = "offset",
                                   value = "The starting pagination index for the complete list of qualified items.",
                                   defaultValue = "0")
                           @QueryParam("offset")
                                   int offset,
                           @ApiParam(
                                   name = "limit",
                                   value = "Provide how many device details you require from the starting pagination index/offset.",
                                   defaultValue = "5")
                           @QueryParam("limit")
                                   int limit);
 
开发者ID:wso2,项目名称:carbon-device-mgt,代码行数:64,代码来源:GroupManagementService.java

示例6: getDeviceCountOfGroup

@Path("/id/{groupId}/devices/count")
@GET
@ApiOperation(
        produces = MediaType.APPLICATION_JSON,
        httpMethod = HTTPConstants.HEADER_GET,
        value = "View list of device count in the device group.",
        notes = "Returns device count in the device group.",
        tags = "Device Group Management",
        extensions = {
            @Extension(properties = {
                    @ExtensionProperty(name = Constants.SCOPE, value = "perm:groups:devices-count")
            })
        }
)
@ApiResponses(value = {
        @ApiResponse(code = 200, message = "OK. \n Successfully fetched the device count.",
                response = DeviceList.class,
                responseHeaders = {
                        @ResponseHeader(
                                name = "Content-Type",
                                description = "The content type of the body"),
                        @ResponseHeader(
                                name = "ETag",
                                description = "Entity Tag of the response resource.\n" +
                                              "Used by caches, or in conditional requests."),
                        @ResponseHeader(
                                name = "Last-Modified",
                                description = "Date and time the resource has been modified the last time.\n" +
                                              "Used by caches, or in conditional requests."),
                }),
        @ApiResponse(
                code = 304,
                message = "Not Modified. \n Empty body because the client has already the latest version of " +
                          "the requested resource."),
        @ApiResponse(
                code = 404,
                message = "No groups found.",
                response = ErrorResponse.class),
        @ApiResponse(
                code = 406,
                message = "Not Acceptable.\n The requested media type is not supported."),
        @ApiResponse(
                code = 500,
                message = "Internal Server Error. \n Server error occurred while fetching device count.",
                response = ErrorResponse.class)
})
Response getDeviceCountOfGroup(@ApiParam(
                                       name = "groupId",
                                       value = "ID of the group.",
                                       required = true)
                           @PathParam("groupId") int groupId);
 
开发者ID:wso2,项目名称:carbon-device-mgt,代码行数:51,代码来源:GroupManagementService.java

示例7: getGroups

@Path("/device")
@GET
@ApiOperation(
        produces = MediaType.APPLICATION_JSON,
        httpMethod = HTTPConstants.HEADER_GET,
        value = "List of groups that have the device",
        notes = "List of groups that have the device.",
        tags = "Device Group Management",
        extensions = {
                @Extension(properties = {
                        @ExtensionProperty(name = Constants.SCOPE, value = "perm:groups:device")
                })
        }
)
@ApiResponses(value = {
        @ApiResponse(code = 200, message = "OK.",
                responseHeaders = {
                        @ResponseHeader(
                                name = "Content-Type",
                                description = "The content type of the body"),
                        @ResponseHeader(
                                name = "ETag",
                                description = "Entity Tag of the response resource.\n" +
                                              "Used by caches, or in conditional requests."),
                        @ResponseHeader(
                                name = "Last-Modified",
                                description = "Date and time the resource has been modified the last time.\n" +
                                              "Used by caches, or in conditional requests."),
                }),
        @ApiResponse(
                code = 304,
                message = "Not Modified. \n Empty body because the client has already the latest version of " +
                          "the requested resource."),
        @ApiResponse(
                code = 406,
                message = "Not Acceptable.\n The requested media type is not supported."),
        @ApiResponse(
                code = 500,
                message = "Internal Server Error. \n Server error occurred.",
                response = ErrorResponse.class)
})
Response getGroups(
        @ApiParam(
                name = "deviceId",
                value = "Id of the device.",
                required = true)
        @QueryParam("deviceId")
                String deviceId,
        @ApiParam(
                name = "deviceType",
                value = "Type of the device.",
                required = true)
        @QueryParam("deviceType")
                String deviceType);
 
开发者ID:wso2,项目名称:carbon-device-mgt,代码行数:54,代码来源:GroupManagementService.java


注:本文中的org.apache.axis2.transport.http.HTTPConstants.HEADER_GET属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。