juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ks...@apache.org
Subject svn commit: r1166998 - in /juddi/trunk/juddi-console/uddi-portlets/war: index.html logout.jsp
Date Fri, 09 Sep 2011 04:41:44 GMT
Author: kstam
Date: Fri Sep  9 04:41:44 2011
New Revision: 1166998

URL: http://svn.apache.org/viewvc?rev=1166998&view=rev
Log:
JUDDI-519, moving files to war directory, removing juddi-core dependency

Added:
    juddi/trunk/juddi-console/uddi-portlets/war/index.html
    juddi/trunk/juddi-console/uddi-portlets/war/logout.jsp

Added: juddi/trunk/juddi-console/uddi-portlets/war/index.html
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-console/uddi-portlets/war/index.html?rev=1166998&view=auto
==============================================================================
--- juddi/trunk/juddi-console/uddi-portlets/war/index.html (added)
+++ juddi/trunk/juddi-console/uddi-portlets/war/index.html Fri Sep  9 04:41:44 2011
@@ -0,0 +1,24 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<!--
+ * Copyright 2001-2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * -->
+<html>
+<head>
+<!-- forward to the GWT Example Application -->
+<meta http-equiv="REFRESH"
+	content="0;url=org.apache.juddi.portlets.JUDDIPublisher/JUDDIPublisher.html">
+</HEAD>
+</HTML>

Added: juddi/trunk/juddi-console/uddi-portlets/war/logout.jsp
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-console/uddi-portlets/war/logout.jsp?rev=1166998&view=auto
==============================================================================
--- juddi/trunk/juddi-console/uddi-portlets/war/logout.jsp (added)
+++ juddi/trunk/juddi-console/uddi-portlets/war/logout.jsp Fri Sep  9 04:41:44 2011
@@ -0,0 +1,53 @@
+<%--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<%@ page import="
+    org.apache.juddi.v3.client.config.*,
+    org.apache.juddi.v3.client.transport.*,
+    org.uddi.v3_service.UDDISecurityPortType,
+    org.uddi.api_v3.*" %>
+<% pageContext.setAttribute("now", new java.util.Date()); %>
+
+<html>
+  
+  <head>
+    <title>Pluto Portal</title>
+  </head>
+
+  <body>
+  
+    <% 
+    String token = (String) session.getAttribute("AuthToken");
+    if (token!=null) {
+       out.println("Token=" + token);
+       session.removeAttribute("AuthToken");
+       session.removeAttribute("UserName");
+       Transport transport = WebHelper.getTransport(session.getServletContext());
+       UDDISecurityPortType securityService = transport.getUDDISecurityService();
+       DiscardAuthToken discardAuthToken = new DiscardAuthToken();
+       discardAuthToken.setAuthInfo(token);
+       securityService.discardAuthToken(discardAuthToken);
+       session.invalidate();
+    }
+    String redirectURL = (String) request.getParameter("urlredirect");
+    if (redirectURL==null) redirectURL = "/pluto/Logout";
+    response.sendRedirect(redirectURL);
+    %>
+  </body>
+  
+</html>
+
+



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@juddi.apache.org
For additional commands, e-mail: commits-help@juddi.apache.org


Mime
View raw message