Interface InternalAPI
public interface InternalAPI
InternalAPI is the interface that need to be implemented in order to register an internal API into EI.-
Method Summary
Modifier and TypeMethodDescriptionGets the API context.Gets the handlers associated with the APIgetName()Gets the API name.Gets the API Resources.voidsetHandlers(List<InternalAPIHandler> handlerList) Sets the handlers associated with the APIvoidSets the name of the API
-
Method Details
-
getResources
APIResource[] getResources()Gets the API Resources.- Returns:
- the array of API Resources
-
getContext
String getContext()Gets the API context.- Returns:
- the API context
-
getName
String getName()Gets the API name.- Returns:
- the name of the API
-
setName
Sets the name of the API- Parameters:
name- name of the API
-
setHandlers
Sets the handlers associated with the API- Parameters:
handlerList- list of handlers
-
getHandlers
List<InternalAPIHandler> getHandlers()Gets the handlers associated with the API
-