Class ConnectLib

java.lang.Object
fr.sandro642.github.ConnectLib

public class ConnectLib extends Object
ConnectLib is the main class of the ConnectorAPI library for Standard API. It provides methods to initialize the library with resource types, routes, and schemas,
See Also:
  • Constructor Details

    • ConnectLib

      public ConnectLib()
  • Method Details

    • init

      public ConnectLib init(ResourceType resourceType, LangType langType, Class<? extends Enum<?>>... routes)
      Init the ConnectLib with the specified resource type and routes.
      Parameters:
      resourceType - the type of resource to initialize
      routes - the routes to be used in the ConnectLib
    • getRoutesMap

      public Map<String,String> getRoutesMap()
      Get the routes map.
      Returns:
      a map of route names to their corresponding paths
    • wanImplement

      public void wanImplement(String urlServ, String nameComponent)
      Implement WAN connectivity using the provided server URL and component name. This method performs HTTP requests to establish a connection and retrieve necessary information.
      Parameters:
      urlServ - the URL of the server to connect to
      nameComponent - the name of the component to be used in the connection
    • isInitialized

      public boolean isInitialized()
      Check if the ConnectLib is initialized.
      Returns:
      true if initialized, false otherwise
    • getRoute

      public String getRoute(String routeName)
      Return the route associated with the given route name.
      Parameters:
      routeName - the name of the route to retrieve
      Returns:
      the route as a String
    • JobGetInfos

      public JobGetInfos JobGetInfos()
      Return an instance of JobGetInfos.
      Returns:
      JobGetInfos instance
    • Logger

      public Logger Logger()
      Return the instance of Logger.
      Returns:
      Logger instance
    • StoreAndRetrieve

      public StoreAndRetrieve StoreAndRetrieve()
      Return the instance of StoreAndRetrieve.
      Returns:
      StoreAndRetrieve instance
    • YamlUtils

      public YamlUtils YamlUtils()
      Return the instance of YamlUtils.
      Returns:
      YamlUtils instance
    • MCSupport

      public MCSupport MCSupport()
      Return the instance of Logs.
      Returns:
      Logs instance
    • HookManager

      public HookManager HookManager()
      Return the instance of HookManager.
      Returns:
      HookManager instance
    • LangSupport

      public LangSupport LangSupport()
      Return the instance of LangSupport.
      Returns:
      LangSupport instance²
    • LangManager

      public LangManager LangManager()
      Return the instance of LangManager.
      Returns:
      LangManager instance
    • SpringApp

      public Application SpringApp()
      Return the instance of Application.
      Returns:
      Application instance