001/**
002 * Copyright 2014 Tampere University of Technology, Pori Department
003 * 
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 * 
008 *   http://www.apache.org/licenses/LICENSE-2.0
009 * 
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package service.tut.pori.contentanalysistest;
017
018import java.util.List;
019
020import javax.xml.bind.annotation.XmlAccessType;
021import javax.xml.bind.annotation.XmlAccessorType;
022import javax.xml.bind.annotation.XmlElement;
023import javax.xml.bind.annotation.XmlRootElement;
024
025import core.tut.pori.http.ResponseData;
026import service.tut.pori.contentanalysis.AnalysisBackend;
027
028/**
029 * A list of back-end details, which can be directly used as a payload for Response.
030 *
031 */
032@XmlRootElement(name="backends")
033@XmlAccessorType(XmlAccessType.NONE)
034public class BackendDetails extends ResponseData{
035  @XmlElement(name = "backend")
036  private List<AnalysisBackend> _ends = null;
037
038  /**
039   * 
040   * @return the list of back-ends
041   */
042  public List<AnalysisBackend> getBackends(){
043    return _ends;
044  }
045  
046  /**
047   * 
048   * @param ends
049   */
050  public void setBackends(List<AnalysisBackend> ends){
051    _ends = ends;
052  }
053}