Hi Xu, I see two callback methods which could help: XWalkResourceClient#onReceivedLoadError
Doesn't get 404 or 400 response, it gets "socket connection errors" only. XWalkUIClient#onPageLoadStopped(LoadStatus.FAILED) The status for 404 or 400 response is LoadStatus.FINISHED. Also, it shouldn't really matter if there is a response entity for a 404 (most servers do that), it's still an HTTP error status. > On 27.04.2015, at 02:55, Xu, Xing <[email protected]> wrote: > > Hi, Christian, I didn't get your saying " I can get connection errors in > XWalkResourceClient but that's about it " > There are several callbacks to get load status in XWalkResourceClient: > onLoadFinished > onReceivedLoadError > onProgressChanged > onLoadStarted > > Documentation is here: > https://crosswalk-project.org/apis/embeddingapidocs_v3/index.html > > -----Original Message----- > From: Crosswalk-help > [mailto:[email protected]] On Behalf Of > Christian Bauer > Sent: Sunday, April 26, 2015 7:36 AM > To: [email protected] > Subject: [Crosswalk-help] Catching 400/404/etc response > > Hi, I'm trying to find out if my embeddedView.load(url, null) was successful > or not. With the XWalkResourceClient/XWalkUIClient callbacks there is no > indication of any 400 response code. I can get connection errors in > XWalkResourceClient but that's about it. Any idea? > > Thanks, > Christian > _______________________________________________ > Crosswalk-help mailing list > [email protected] > https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help _______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
