Class ComponentRest


  • @Path("/rest/lutecetools/")
    public class ComponentRest
    extends Object
    Page resource
    • Constructor Detail

      • ComponentRest

        public ComponentRest()
    • Method Detail

      • getComponents

        @GET
        @Path("components")
        public javax.ws.rs.core.Response getComponents​(@HeaderParam("Accept")
                                                       String accept,
                                                       @QueryParam("format")
                                                       String format)
      • getComponentsXml

        public String getComponentsXml()
        Gets all components list in XML format
        Returns:
        The list
      • getComponentsJson

        public String getComponentsJson()
        Gets all components list in JSON format
        Returns:
        The list
      • getComponent

        @GET
        @Path("component/{id}")
        public javax.ws.rs.core.Response getComponent​(@PathParam("id")
                                                      String strArtifactId,
                                                      @HeaderParam("Accept")
                                                      String accept,
                                                      @QueryParam("format")
                                                      String format,
                                                      @QueryParam("cache")
                                                      Boolean bCache,
                                                      @QueryParam("type")
                                                      String strType)
                                               throws IOException
        Gets a component by its artifact ID
        Parameters:
        strArtifactId -
        accept - The Accept header parameter
        format - The format
        bCache - false if the component informations must be recalculated
        strType - the compoent type(lutece-plugin,lutece-site,...)
        Returns:
        The response
        Throws:
        IOException - if an error occurs
      • getComponentXml

        public String getComponentXml​(String strArtifactId,
                                      boolean bCache,
                                      String strType)
        Gets a component in XML format
        Parameters:
        strArtifactId - The artifact ID
        bCache - false if the component informations must be recalculated
        strType - the compoent type(lutece-plugin,lutece-site,...)
        Returns:
        The XML output
      • getComponentJson

        public String getComponentJson​(String strArtifactId,
                                       boolean bCache,
                                       String strType)
        Gets a component in JSON format
        Parameters:
        strArtifactId - The artifact ID
        bCache - false if the component informations must be recalculated
        strType - the compoent type(lutece-plugin,lutece-site,...)
        Returns:
        The JSON output