org.hudsonci.maven.plugin.builder.rest
Class BuilderConfigResource
java.lang.Object
org.hudsonci.maven.plugin.builder.rest.BuilderConfigResource
@Named
public class BuilderConfigResource
- extends Object
Provides access to MavenBuilder's BuildConfigurationDTO resources.
- Since:
- 2.1.0
- Author:
- Jason Dillon
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuilderConfigResource
@Inject
public BuilderConfigResource(MavenBuilderService mavenBuilderService,
ProjectNameCodec projectNameCodec)
getBuilderConfigurations
public List<BuildConfigurationDTO> getBuilderConfigurations(String projectName)
getBuilderConfiguration
public BuildConfigurationDTO getBuilderConfiguration(String projectName,
int index)
- Returns:
- builder configuration for the project at the specified index
- Throws:
javax.ws.rs.WebApplicationException - status 404 when the project does not exist, project exists but the index provided
does not represent a builder OR status 400 if the project exists and the builder index is negative
setBuilderConfiguration
public void setBuilderConfiguration(String projectName,
int index,
BuildConfigurationDTO config)
throws IOException
- Throws:
IOException
Copyright © 2004-2011 Hudson. All Rights Reserved.