Interface InternalAPI
-
public interface InternalAPIInternalAPIis the interface that need to be implemented in order to register an internal API into EI.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetContext()Gets the API context.List<InternalAPIHandler>getHandlers()Gets the handlers associated with the APIStringgetName()Gets the API name.APIResource[]getResources()Gets the API Resources.voidsetHandlers(List<InternalAPIHandler> handlerList)Sets the handlers associated with the APIvoidsetName(String name)Sets the name of the API
-
-
-
Method Detail
-
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
void setName(String name)
Sets the name of the API- Parameters:
name- name of the API
-
setHandlers
void setHandlers(List<InternalAPIHandler> handlerList)
Sets the handlers associated with the API- Parameters:
handlerList- list of handlers
-
getHandlers
List<InternalAPIHandler> getHandlers()
Gets the handlers associated with the API
-
-