Subversion Repositories bacoAlunos

Rev

Rev 2028 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package pt.estgp.es.exemplos.hibernate.web.rest;

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 AbstractRestServlet extends HttpServlet
{
    @1.5.0/docs/api/java/lang/Override.html">Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, 1.5.0/docs/api/java/io/IOException.html">IOException {
        process(req,resp);
    }

    @1.5.0/docs/api/java/lang/Override.html">Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, 1.5.0/docs/api/java/io/IOException.html">IOException {
        process(req,resp);
    }

    protected void process(HttpServletRequest req, HttpServletResponse resp) throws ServletException, 1.5.0/docs/api/java/io/IOException.html">IOException
    {
        if(req.getContentType().equals("application/json"))
        {

        }
        else
        {

        }
    }
}