/** * Implements the 'system' service operations for JSON/XML RPC */ @Service(name = "system") public class SystemHandler { HandlerRegistry registry; public SystemHandler(HandlerRegistry registry) { this.registry = registry; } @Operation(httpMethods = "GET") public Set<String> listMethods(RequestItem request) { if ("protocol".equalsIgnoreCase(request.getFilterBy()) && FilterOperation.equals == request.getFilterOperation() && "REST".equalsIgnoreCase(request.getFilterValue())) { return registry.getSupportedRestServices(); } return registry.getSupportedRpcServices(); } }
/** * Implements the 'system' service operations for JSON/XML RPC */ @Service(name = "system") public class SystemHandler { HandlerRegistry registry; public SystemHandler(HandlerRegistry registry) { this.registry = registry; } @Operation(httpMethods = "GET") public Set<String> listMethods(RequestItem request) { if ("protocol".equalsIgnoreCase(request.getFilterBy()) && FilterOperation.equals == request.getFilterOperation() && "REST".equalsIgnoreCase(request.getFilterValue())) { return registry.getSupportedRestServices(); } return registry.getSupportedRpcServices(); } }
/** * Implements the 'system' service operations for JSON/XML RPC */ @Service(name = "system") public class SystemHandler { HandlerRegistry registry; public SystemHandler(HandlerRegistry registry) { this.registry = registry; } @Operation(httpMethods = "GET") public Set<String> listMethods(RequestItem request) { if ("protocol".equalsIgnoreCase(request.getFilterBy()) && FilterOperation.equals == request.getFilterOperation() && "REST".equalsIgnoreCase(request.getFilterValue())) { return registry.getSupportedRestServices(); } return registry.getSupportedRpcServices(); } }
/** * Implements the 'system' service operations for JSON/XML RPC */ @Service(name = "system") public class SystemHandler { HandlerRegistry registry; public SystemHandler(HandlerRegistry registry) { this.registry = registry; } @Operation(httpMethods = "GET") public Set<String> listMethods(RequestItem request) { if ("protocol".equalsIgnoreCase(request.getFilterBy()) && FilterOperation.equals == request.getFilterOperation() && "REST".equalsIgnoreCase(request.getFilterValue())) { return registry.getSupportedRestServices(); } return registry.getSupportedRpcServices(); } }
/** * Implements the 'system' service operations for JSON/XML RPC */ @Service(name = "system") public class SystemHandler { HandlerRegistry registry; public SystemHandler(HandlerRegistry registry) { this.registry = registry; } @Operation(httpMethods = "GET") public Set<String> listMethods(RequestItem request) { if ("protocol".equalsIgnoreCase(request.getFilterBy()) && FilterOperation.equals == request.getFilterOperation() && "REST".equalsIgnoreCase(request.getFilterValue())) { return registry.getSupportedRestServices(); } return registry.getSupportedRpcServices(); } }
/** * RPC/REST handler for groups requests * @since 2.0.0 */ @Service(name = "groups", path = "/{userId}") public class GroupHandler { private final GroupService service; private final CollectionOptionsFactory collectionOptionsFactory; @Inject public GroupHandler(GroupService service, CollectionOptionsFactory collectionOptionsFactory) { this.service = service; this.collectionOptionsFactory = collectionOptionsFactory; } @Operation(httpMethods = "GET") public Future<?> get(SocialRequestItem request) throws ProtocolException { Set<UserId> userIds = request.getUsers(); CollectionOptions options = collectionOptionsFactory.create(request); // Preconditions HandlerPreconditions.requireNotEmpty(userIds, "No userId specified"); HandlerPreconditions.requireSingular(userIds, "Only one userId must be specified"); return service.getGroups(userIds.iterator().next(), options, request.getFields(), request.getToken()); } }
/** * RPC/REST handler for groups requests * @since 2.0.0 */ @Service(name = "groups", path = "/{userId}") public class GroupHandler { private final GroupService service; @Inject public GroupHandler(GroupService service) { this.service = service; } @Operation(httpMethods = "GET") public Future<?> get(SocialRequestItem request) throws ProtocolException { Set<UserId> userIds = request.getUsers(); CollectionOptions options = new CollectionOptions(request); // Preconditions HandlerPreconditions.requireNotEmpty(userIds, "No userId specified"); HandlerPreconditions.requireSingular(userIds, "Only one userId must be specified"); return service.getGroups(userIds.iterator().next(), options, request.getFields(), request.getToken()); } }
/** * RPC/REST handler for groups requests * @since 2.0.0 */ @Service(name = "groups", path = "/{userId}") public class GroupHandler { private final GroupService service; private final CollectionOptionsFactory collectionOptionsFactory; @Inject public GroupHandler(GroupService service, CollectionOptionsFactory collectionOptionsFactory) { this.service = service; this.collectionOptionsFactory = collectionOptionsFactory; } @Operation(httpMethods = "GET") public Future<?> get(SocialRequestItem request) throws ProtocolException { Set<UserId> userIds = request.getUsers(); CollectionOptions options = collectionOptionsFactory.create(request); // Preconditions HandlerPreconditions.requireNotEmpty(userIds, "No userId specified"); HandlerPreconditions.requireSingular(userIds, "Only one userId must be specified"); return service.getGroups(userIds.iterator().next(), options, request.getFields(), request.getToken()); } }
@Service(name = "cache") public class InvalidationHandler {
@Service(name = "samplecontainer", path = "/{type}/{doevil}") public class SampleContainerHandler {
@Service(name = "cache") public class InvalidationHandler {
@Service(name = "cache") public class InvalidationHandler {
@Service(name = "people", path = "/{userId}+/{groupId}/{personId}+") public class PersonHandler { private final PersonService personService;
@Service(name = "people", path = "/{userId}+/{groupId}/{personId}+") public class PersonHandler { private final PersonService personService;
@Service(name = "activities", path="/{userId}+/{groupId}/{appId}/{activityId}+") public class ActivityHandler {
@Service(name = "test", path = "/{someParam}/{someOtherParam}" ) public class TestHandler {
@Service(name = "test", path = "/{someParam}/{someOtherParam}" ) public class TestHandler {
@Service(name = "test", path = "/{someParam}/{someOtherParam}" ) public class TestHandler {
@Service(name = "test", path = "/{someParam}/{someOtherParam}" ) public class TestHandler {
@Service(name = "test", path = "/{someParam}/{someOtherParam}" ) public class TestHandler {