Package com.group21.jobTracker.Api
Class ApiCalls
- java.lang.Object
-
- com.group21.jobTracker.Api.ApiCalls
-
public class ApiCalls extends Object
Class that represents the Api calls to LinkedIn and OneCareerStop for the "Application Search" feature of JobTracker.
-
-
Constructor Summary
Constructors Constructor Description ApiCalls()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ArrayList<Jobs>careerOneStopJobSearch(String keywords)Searches for a list of jobs in CareerOneStopstatic JobscareerOneStopSelectJob(String url)Gets a job object from a link to CareerOneStopstatic ArrayList<Jobs>linkedInJobSearch(String keywords)Searches for a list of jobs in linkedinstatic JobslinkedInSelectJob(String url)Gets a job object from a link to linkedin
-
-
-
Method Detail
-
linkedInSelectJob
public static Jobs linkedInSelectJob(String url) throws IOException
Gets a job object from a link to linkedin- Parameters:
url- the link to the linkedin job posting- Returns:
- a job object of the job posting
- Throws:
IOException- if the linkedin url cannot be reached
-
linkedInJobSearch
public static ArrayList<Jobs> linkedInJobSearch(String keywords) throws IOException
Searches for a list of jobs in linkedin- Parameters:
keywords- keywords used for the search- Returns:
- a list of available jobs
- Throws:
IOException- if the linked in website cannot be reached
-
careerOneStopSelectJob
public static Jobs careerOneStopSelectJob(String url) throws IOException
Gets a job object from a link to CareerOneStop- Parameters:
url- the link to the CareerOneStop job posting- Returns:
- a job object of the job posting
- Throws:
IOException- if the CareerOneStop url cannot be reached
-
careerOneStopJobSearch
public static ArrayList<Jobs> careerOneStopJobSearch(String keywords) throws IOException
Searches for a list of jobs in CareerOneStop- Parameters:
keywords- keywords used for the search- Returns:
- a list of available jobs
- Throws:
IOException- if the CareerOneStop website cannot be reached
-
-