import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public class SlCustomObject_AndroidCalls extends HttpServlet
{
public void init(ServletConfig config) throws ServletException
{
try
{
super.init(config);
}
catch(Exception e){Logger.toLog("Failed ","SlCustomObject_AndroidCalls","init: Exception " + e);}
}
public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException
{
try
{
doPost(req,res);
}
catch(Exception e){Logger.toLog("Failed ","SlCustomObject_AndroidCalls","doGet: Exception " + e);}
}
public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException
{
try
{
String stParam_one="";
String stParam_two="";
if(req.getParameter("Param_one")!=null)
{
stParam_one = req.getParameter("Param_one").toString().trim();
}
if(req.getParameter("Param_two")!=null)
{
stParam_two = req.getParameter("Param_two").toString().trim();
}
Logger.toLog("Param_1 ","SlCustomObject_AndroidCalls","**** Call In Servlet ******");
Logger.toLog("Param_2 ","SlCustomObject_AndroidCalls","stParam_one: "+stParam_one+" stParam_two: "+stParam_two);
}
catch(Exception e)
{
Logger.toLog("Android ","SlCustomObject_AndroidCalls","doPost: Exception " + e);
}
}//end of doPost() method
}//End of servlet
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public class SlCustomObject_AndroidCalls extends HttpServlet
{
public void init(ServletConfig config) throws ServletException
{
try
{
super.init(config);
}
catch(Exception e){Logger.toLog("Failed ","SlCustomObject_AndroidCalls","init: Exception " + e);}
}
public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException
{
try
{
doPost(req,res);
}
catch(Exception e){Logger.toLog("Failed ","SlCustomObject_AndroidCalls","doGet: Exception " + e);}
}
public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException
{
try
{
String stParam_one="";
String stParam_two="";
if(req.getParameter("Param_one")!=null)
{
stParam_one = req.getParameter("Param_one").toString().trim();
}
if(req.getParameter("Param_two")!=null)
{
stParam_two = req.getParameter("Param_two").toString().trim();
}
Logger.toLog("Param_1 ","SlCustomObject_AndroidCalls","**** Call In Servlet ******");
Logger.toLog("Param_2 ","SlCustomObject_AndroidCalls","stParam_one: "+stParam_one+" stParam_two: "+stParam_two);
}
catch(Exception e)
{
Logger.toLog("Android ","SlCustomObject_AndroidCalls","doPost: Exception " + e);
}
}//end of doPost() method
}//End of servlet
To copy to clipboard, switch view to plain text mode
Bookmarks