com.healthy.common.security.social.view.HealthyConnectView Maven / Gradle / Ivy
package com.healthy.common.security.social.view;
import org.springframework.web.servlet.view.AbstractView;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;
public class HealthyConnectView extends AbstractView {
@Override
protected void renderMergedOutputModel(Map model, HttpServletRequest request, HttpServletResponse response) throws Exception {
response.setContentType("text/html;charset=UTF-8");
if (model.get("connection") == null) {
response.getWriter().write("绑定成功!
");
} else {
response.getWriter().write("解绑成功!
");
}
}
}