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)
Gets a component by its artifact ID
|
String |
getComponentJson(String strArtifactId)
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)
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) throws IOException
strArtifactId - accept - The Accept header parameterformat - The formatIOException - if an error occurspublic String getComponentXml(String strArtifactId)
strArtifactId - The artifact IDCopyright © 2015 City of Paris. All rights reserved.