/**
* @see nextapp.echo2.webrender.Service#service(nextapp.echo2.webrender.Connection)
*/
public void service(Connection conn)
throws IOException {
ContainerInstance containerInstance = (ContainerInstance) conn.getUserInstance();
if (containerInstance == null) {
serviceBadRequest(conn, "No container available.");
return;
}
String imageId = conn.getRequest().getParameter(PARAMETER_IMAGE_UID);
if (imageId == null) {
serviceBadRequest(conn, "Image UID not specified.");
return;
}
ImageReference imageReference = (ImageReference) containerInstance.getIdTable().getObject(imageId);
if (imageReference == null) {
serviceBadRequest(conn, "Image UID is not valid.");
return;
}