001package votorola.a.web.wic.authen; // Copyright 2008, 2012, Michael Allan. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Votorola Software"), to deal in the Votorola Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicence, and/or sell copies of the Votorola Software, and to permit persons to whom the Votorola Software is furnished to do so, subject to the following conditions: The preceding copyright notice and this permission notice shall be included in all copies or substantial portions of the Votorola Software. THE VOTOROLA SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE VOTOROLA SOFTWARE OR THE USE OR OTHER DEALINGS IN THE VOTOROLA SOFTWARE. 002 003import org.apache.wicket.markup.MarkupType; 004import org.apache.wicket.markup.html.WebPage; 005import org.apache.wicket.markup.html.basic.Label; 006import votorola.a.web.wic.*; 007import votorola.g.lang.*; 008 009 010/** The Yadis document, describing the identification services of this web interface. The 011 * Yadis document is served to the OpenID provider during relying party discovery. 012 * 013 * @see WP_OpenIDReturn 014 * @see <a href='../../../../../../../a/web/wic/authen/WP_Yadis.xrds'>WP_Yadis.xrds</a> 015 */ 016public @ThreadRestricted("wicket") final class WP_Yadis extends WebPage 017{ 018 019 020 /** Constructs a WP_Yadis. 021 */ 022 public WP_Yadis() // bookmarkable page iff constructor public & (default|PageParameter) 023 { 024 add( new Label( "return_to.WP_OpenIDReturn", 025 VRequestCycle.get().uriFor(WP_OpenIDReturn.class).toString() )); 026 } 027 028 029 030 // - M a r k u p - C o n t a i n e r -------------------------------------------------- 031 032 033 public @Override MarkupType getMarkupType() { return XRDS; } 034 035 036 037 // - P a g e -------------------------------------------------------------------------- 038 039 040 // protected @Override void configureResponse( final WebResponse response ) 041 // { 042 // super.configureResponse( response ); 043 // response.setContentType( XRDS.getMimeType() ); 044 // } 045 /// probably happens automatically in 1.5, given markup type 046 047 048 049//// P r i v a t e /////////////////////////////////////////////////////////////////////// 050 051 052 private static final MarkupType XRDS = new MarkupType( /*extension*/"xrds", 053 /*MIME*/"application/xrds+xml" ); 054 055 056 057}