@Path(value="/rest/lutecetools/") public class ComponentRest extends Object
| Constructor and Description |
|---|
ComponentRest() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getComponent(String strArtifactId,
String accept,
String format,
Boolean bCache,
String strType)
Gets a component by its artifact ID
|
String |
getComponentJson(String strArtifactId,
boolean bCache,
String strType)
Gets a component in JSON format
|
javax.ws.rs.core.Response |
getComponents(String accept,
String format) |
String |
getComponentsJson()
Gets all components list in JSON format
|
String |
getComponentsXml()
Gets all components list in XML format
|
String |
getComponentXml(String strArtifactId,
boolean bCache,
String strType)
Gets a component in XML format
|
@GET
@Path(value="components")
public javax.ws.rs.core.Response getComponents(@HeaderParam(value="Accept")
String accept,
@QueryParam(value="format")
String format)
public String getComponentsXml()
public String getComponentsJson()
@GET
@Path(value="component/{id}")
public javax.ws.rs.core.Response getComponent(@PathParam(value="id")
String strArtifactId,
@HeaderParam(value="Accept")
String accept,
@QueryParam(value="format")
String format,
@QueryParam(value="cache")
Boolean bCache,
@QueryParam(value="type")
String strType)
throws IOException
strArtifactId - accept - The Accept header parameterformat - The formatbCache - false if the component informations must be recalculatedstrType - the compoent type(lutece-plugin,lutece-site,...)IOException - if an error occurspublic String getComponentXml(String strArtifactId, boolean bCache, String strType)
strArtifactId - The artifact IDbCache - false if the component informations must be recalculatedstrType - the compoent type(lutece-plugin,lutece-site,...)public String getComponentJson(String strArtifactId, boolean bCache, String strType)
strArtifactId - The artifact IDbCache - false if the component informations must be recalculatedstrType - the compoent type(lutece-plugin,lutece-site,...)Copyright © 2024 City of Paris. All rights reserved.