Interface OpenUrlService
-
- All Known Implementing Classes:
OpenUrlServiceImpl
public interface OpenUrlServiceThe Service responsible for processing urls
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidlogfailed(Context context, String url)Will log the failed url in the databasevoidprocessUrl(Context c, String urlStr)Process the urlvoidreprocessFailedQueue(Context context)Will process all urls stored in the database and try contacting them again
-
-
-
Method Detail
-
processUrl
void processUrl(Context c, String urlStr) throws SQLException
Process the url- Parameters:
c- - the contexturlStr- - the url to be processed- Throws:
IOExceptionSQLException
-
reprocessFailedQueue
void reprocessFailedQueue(Context context) throws SQLException
Will process all urls stored in the database and try contacting them again- Parameters:
context-- Throws:
SQLException
-
logfailed
void logfailed(Context context, String url) throws SQLException
Will log the failed url in the database- Parameters:
context-url-- Throws:
SQLException
-
-