package 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. import org.apache.wicket.markup.MarkupType; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; import votorola.a.web.wic.*; import votorola.g.lang.*; /** The Yadis document, describing the identification services of this web interface. The * Yadis document is served to the OpenID provider during relying party discovery. * * @see WP_OpenIDReturn * @see WP_Yadis.xrds */ public @ThreadRestricted("wicket") final class WP_Yadis extends WebPage { /** Constructs a WP_Yadis. */ public WP_Yadis() // bookmarkable page iff constructor public & (default|PageParameter) { add( new Label( "return_to.WP_OpenIDReturn", VRequestCycle.get().uriFor(WP_OpenIDReturn.class).toString() )); } // - M a r k u p - C o n t a i n e r -------------------------------------------------- public @Override MarkupType getMarkupType() { return XRDS; } // - P a g e -------------------------------------------------------------------------- // protected @Override void configureResponse( final WebResponse response ) // { // super.configureResponse( response ); // response.setContentType( XRDS.getMimeType() ); // } /// probably happens automatically in 1.5, given markup type //// P r i v a t e /////////////////////////////////////////////////////////////////////// private static final MarkupType XRDS = new MarkupType( /*extension*/"xrds", /*MIME*/"application/xrds+xml" ); }