@Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) @Documented public @interface JsonService
JSON service annotation.
Each class registered with JsonServiceRegistry should provide methods
to be available to call by a client. It is up to a developer to decide if a
public method needs to be exposed to a JSON-RPC client. Only annotated
methods with JsonService declared with the public modifier will be
reflected in Service
Mapping Description and made accessible to a client.
| Modifier and Type | Optional Element and Description |
|---|---|
JsonServiceInvoker.ContentType |
contentType
This is the expected content type of the content returned by a service.
|
String |
description
This is a description of the service.
|
JsonServiceInvoker.Envelope |
envelope
Envelope defines how a service message string is created from the
provided parameters.
|
String |
target
This should indicate what URL to use for the method call requests.
|
JsonServiceInvoker.Transport |
transport
The transport property defines the transport mechanism to be used to
deliver service calls to server.
|
public abstract JsonServiceInvoker.Transport transport
public abstract JsonServiceInvoker.ContentType contentType
public abstract JsonServiceInvoker.Envelope envelope
public abstract String target
public abstract String description
Copyright © 2016. All rights reserved.