// Path: src/main/java/com/senacor/wicket/async/christmas/widgets/train/message/IStringSource.java
// public interface IStringSource {
//   String getCitiesAndStations();
// 
//   String getTrains(DateTime date);
// }


import java.io.StringWriter;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import org.joda.time.DateTime;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;
import com.senacor.wicket.async.christmas.core.runtime.profile.Prod;
import com.senacor.wicket.async.christmas.widgets.train.message.IStringSource;
package com.senacor.wicket.async.christmas.widgets.train.message.source;




/**
 * @author Jochen Mader
 */
@Repository
@Scope("prototype")
@Prod
public class NetworkStringSource implements IStringSource {

  @Override
  public String getCitiesAndStations() {
    DefaultHttpClient httpclient = new DefaultHttpClient();
// Path: src/main/java/com/senacor/wicket/async/christmas/widgets/train/message/IStringSource.java
// public interface IStringSource {
//   String getCitiesAndStations();
// 
//   String getTrains(DateTime date);
// }


// Path: src/main/java/com/senacor/wicket/async/christmas/widgets/train/message/source/NetworkStringSource.java
import java.io.StringWriter;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import org.joda.time.DateTime;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;
import com.senacor.wicket.async.christmas.core.runtime.profile.Prod;
import com.senacor.wicket.async.christmas.widgets.train.message.IStringSource;

package com.senacor.wicket.async.christmas.widgets.train.message.source;




/**
 * @author Jochen Mader
 */
@Repository
@Scope("prototype")
@Prod
public class NetworkStringSource implements IStringSource {

  @Override
  public String getCitiesAndStations() {
    DefaultHttpClient httpclient = new DefaultHttpClient();
    HttpGet httpGet = new HttpGet("http://zugmonitor.sueddeutsche.de/api/stations");