28 lines
925 B
Java
28 lines
925 B
Java
package eu.dnetlib.openaire.usermanagement;
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.web.context.support.SpringBeanAutowiringSupport;
|
|
|
|
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 PersonalTokenServlet extends HttpServlet {
|
|
|
|
@Value("${developers.url}")
|
|
private String url;
|
|
|
|
public void init(ServletConfig config) throws ServletException {
|
|
super.init(config);
|
|
SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this,
|
|
config.getServletContext());
|
|
}
|
|
|
|
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
|
|
response.sendRedirect(url + "/personal-token");
|
|
}
|
|
}
|