Class ComponentRest
- java.lang.Object
-
- fr.paris.lutece.plugins.lutecetools.web.rs.ComponentRest
-
@Path("/rest/lutecetools/") public class ComponentRest extends ObjectPage resource
-
-
Constructor Summary
Constructors Constructor Description ComponentRest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetComponent(String strArtifactId, String accept, String format, Boolean bCache, String strType)Gets a component by its artifact IDStringgetComponentJson(String strArtifactId, boolean bCache, String strType)Gets a component in JSON formatjavax.ws.rs.core.ResponsegetComponents(String accept, String format)StringgetComponentsJson()Gets all components list in JSON formatStringgetComponentsXml()Gets all components list in XML formatStringgetComponentXml(String strArtifactId, boolean bCache, String strType)Gets a component in XML format
-
-
-
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 IOExceptionGets a component by its artifact ID- Parameters:
strArtifactId-accept- The Accept header parameterformat- The formatbCache- false if the component informations must be recalculatedstrType- 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 IDbCache- false if the component informations must be recalculatedstrType- 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 IDbCache- false if the component informations must be recalculatedstrType- the compoent type(lutece-plugin,lutece-site,...)- Returns:
- The JSON output
-
-