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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getContext()
Gets the API context.List<InternalAPIHandler>
getHandlers()
Gets the handlers associated with the APIString
getName()
Gets the API name.APIResource[]
getResources()
Gets the API Resources.void
setHandlers(List<InternalAPIHandler> handlerList)
Sets the handlers associated with the APIvoid
setName(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
-
-