I am working on integrating a HTTP API where usually you login to a site and can control locks, into a local java app that allows the "house" to preform the controls rather than the person specifically (so the whole house could be locked/unlocked without needing to click on each lock etc.)
I am in need of a quick couple of Java blocks of code to preform the following functions:
private static class login {
public static boolean status() {
/* We need to go to the login uri and check the redirect url
* if it is a specific url we are logged in and return true
* if it is another specific url we are not logged in and return false
*/
}
public static boolean process() {
/* We need to go to the signin uri,
* fill in the username and password,
* submit
* check whether the login worked correctly
* send success or error message to: [login to view URL](<message>);
* return true/false depending on success
* NOTE: I don't know what i'm talking about SO if we need to remember the session id or if it makes more sense to
* return the login status with something other than true/false feel free to change from boolean to string etc.
*/
}
}
currently available variables you will need:
public static final String BASE_URI = "<the site url>";
public static final String LOGIN_URI = BASE_URI + "/login";
public static final String SIGNIN_URI = BASE_URI + "/signin";
I had been leaning towards a HttpUrlConnection solution although am happy to hear of whatever you believe to be the simplest solution.
Want this done as quickly as possible so don't delay in putting forward your unique bid (copy/paste generic proposals will be ignored).
We are team of excellent developers. We have 2 year experience related to your project field. We can do your project and solve your all problems according to your requirements. We have read your description for projects and we understand what you want so we are confident that we can do it easily in mention time. We assure you that you will be completely satisfy with our work. And after delivering your project if you feel some issue in understanding the projects then we will teach you free until you understand. If you have any question then feel free to ask. We are here for you.
Thank you
I have more than 5 years of software development experience with Java. I have been working for different clients and deliver high quality code by considering different patterns and principles.
We have 9+ years of experience in JAVA, We have delivered multiple projects with great quality . Let us know when we can start the work. Please connect with us to discuss about your exact need.