From dfd8e9c7c7af49cfa800de0d96cfd05fb8c8c3c0 Mon Sep 17 00:00:00 2001 From: Justin Richer Date: Tue, 11 Dec 2012 15:15:52 -0500 Subject: [PATCH] removed unused view --- .../openid/connect/view/ClientUpdateView.java | 59 ------------------- 1 file changed, 59 deletions(-) delete mode 100644 openid-connect-server/src/main/java/org/mitre/openid/connect/view/ClientUpdateView.java diff --git a/openid-connect-server/src/main/java/org/mitre/openid/connect/view/ClientUpdateView.java b/openid-connect-server/src/main/java/org/mitre/openid/connect/view/ClientUpdateView.java deleted file mode 100644 index 51b808376..000000000 --- a/openid-connect-server/src/main/java/org/mitre/openid/connect/view/ClientUpdateView.java +++ /dev/null @@ -1,59 +0,0 @@ -/** - * - */ -package org.mitre.openid.connect.view; - -import java.io.IOException; -import java.io.Writer; -import java.util.Map; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import org.mitre.oauth2.model.ClientDetailsEntity; -import org.springframework.stereotype.Component; -import org.springframework.web.servlet.view.AbstractView; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonObject; - -/** - * - * Provides a minimal display response for a dynamic client registration's client_update operation. - * - * @author jricher - * - */ -@Component("clientUpdate") -public class ClientUpdateView extends AbstractView { - - /* (non-Javadoc) - * @see org.springframework.web.servlet.view.AbstractView#renderMergedOutputModel(java.util.Map, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) - */ - @Override - protected void renderMergedOutputModel(Map model, HttpServletRequest request, HttpServletResponse response) throws Exception { - - response.setContentType("application/json"); - - try { - - Gson gson = new GsonBuilder().create(); - - ClientDetailsEntity client = (ClientDetailsEntity) model.get("client"); - - JsonObject obj = new JsonObject(); - obj.addProperty("client_id", client.getClientId()); - - Writer out = response.getWriter(); - gson.toJson(obj, out); - - } catch (IOException e) { - - logger.error("IOException ", e); - - } - - } - -}