mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-17 13:59:50 +00:00
name of session cookie is set by providers
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@669 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
179675506d
commit
cd138e00f4
4 changed files with 23 additions and 24 deletions
|
@ -204,7 +204,7 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
InputStream is = null;
|
||||
try
|
||||
{
|
||||
is = ParserUtils.scrapeInputStream(apiUri, wrap(request), false, 3);
|
||||
is = ParserUtils.scrapeInputStream(apiUri, wrap(request), null, 3);
|
||||
|
||||
final List<Location> results = new ArrayList<Location>();
|
||||
|
||||
|
@ -256,7 +256,7 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
|
||||
protected final List<Location> jsonGetStops(final String uri) throws IOException
|
||||
{
|
||||
final CharSequence page = ParserUtils.scrape(uri, false, null, jsonEncoding, false);
|
||||
final CharSequence page = ParserUtils.scrape(uri, false, null, jsonEncoding, null);
|
||||
|
||||
final Matcher mJson = P_AJAX_GET_STOPS_JSON.matcher(page);
|
||||
if (mJson.matches())
|
||||
|
@ -342,7 +342,7 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
|
||||
try
|
||||
{
|
||||
is = ParserUtils.scrapeInputStream(apiUri, wrap(request), false, 3);
|
||||
is = ParserUtils.scrapeInputStream(apiUri, wrap(request), null, 3);
|
||||
|
||||
final XmlPullParserFactory factory = XmlPullParserFactory.newInstance(System.getProperty(XmlPullParserFactory.PROPERTY_NAME), null);
|
||||
final XmlPullParser pp = factory.newPullParser();
|
||||
|
@ -614,7 +614,7 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
|
||||
try
|
||||
{
|
||||
is = ParserUtils.scrapeInputStream(apiUri, wrap(request), false, 3);
|
||||
is = ParserUtils.scrapeInputStream(apiUri, wrap(request), null, 3);
|
||||
|
||||
final XmlPullParserFactory factory = XmlPullParserFactory.newInstance(System.getProperty(XmlPullParserFactory.PROPERTY_NAME), null);
|
||||
final XmlPullParser pp = factory.newPullParser();
|
||||
|
@ -1080,7 +1080,7 @@ public abstract class AbstractHafasProvider implements NetworkProvider
|
|||
|
||||
protected final NearbyStationsResult jsonNearbyStations(final String uri) throws IOException
|
||||
{
|
||||
final CharSequence page = ParserUtils.scrape(uri, false, null, jsonEncoding, false);
|
||||
final CharSequence page = ParserUtils.scrape(uri, false, null, jsonEncoding, null);
|
||||
|
||||
final List<Location> stations = new ArrayList<Location>();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue