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
|
public javax.ws.rs.core.Response getComponents(@HeaderParam(value="Accept")
String accept,
String format)
throws IOException
IOExceptionpublic String getComponentsXml()
public String getComponentsJson()
public javax.ws.rs.core.Response getComponent(String strArtifactId, @HeaderParam(value="Accept") String accept, String format, Boolean bCache, 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 © 2019 City of Paris. All rights reserved.