deletetoken.jsp revision e8721886dbfd32e88cc7077cbee4b6bb1b44b443
747612c740f3dae2c06b9402fa4679344d115a5ahajma DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
747612c740f3dae2c06b9402fa4679344d115a5ahajma Copyright (c) 2009 Sun Microsystems Inc. All Rights Reserved
747612c740f3dae2c06b9402fa4679344d115a5ahajma The contents of this file are subject to the terms
747612c740f3dae2c06b9402fa4679344d115a5ahajma of the Common Development and Distribution License
747612c740f3dae2c06b9402fa4679344d115a5ahajma (the License). You may not use this file except in
747612c740f3dae2c06b9402fa4679344d115a5ahajma compliance with the License.
747612c740f3dae2c06b9402fa4679344d115a5ahajma You can obtain a copy of the License at
747612c740f3dae2c06b9402fa4679344d115a5ahajma See the License for the specific language governing
747612c740f3dae2c06b9402fa4679344d115a5ahajma permission and limitations under the License.
747612c740f3dae2c06b9402fa4679344d115a5ahajma When distributing Covered Code, include this CDDL
747612c740f3dae2c06b9402fa4679344d115a5ahajma Header Notice in each file and include the License file
$Id: deletetoken.jsp,v 1.1 2009/11/20 19:25:15 huacui Exp $
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
String oauth_token = request.getParameter("oauth_token");
conn.setRequestMethod("DELETE");
conn.connect();
int resp = conn.getResponseCode();
out.println("OAuth Request Token deleted.");
out.println("OAuth Request Token could not be deleted - Unauthorized.");