@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface WebApi
ReportProtocol
) when the FWD analytics web server first is loaded;
duplicate API type values will cause an exception to be thrown. When an API request comes in
from the client over a web socket, it is dispatched to the API handler method which matches
the message type specified in the client request message. A response message of the same type
is sent back to the client over the web socket, upon completion of the API call.Modifier and Type | Required Element and Description |
---|---|
int |
type
Message type; must be unique across all API handler methods in the server
|