//# 0 errors, 28 messages
//#
/*
    //#trackbackresponseview.java:1:1: class: net.sourceforge.pebble.web.view.impl.TrackBackResponseView
    //#trackbackresponseview.java:1:1: method: net.sourceforge.pebble.web.view.impl.TrackBackResponseView.net.sourceforge.pebble.web.view.impl.TrackBackResponseView__static_init
 * Copyright (c) 2003-2006, Simon Brown
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *   - Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *
 *   - Redistributions in binary form must reproduce the above copyright
 *     notice, this list of conditions and the following disclaimer in
 *     the documentation and/or other materials provided with the
 *     distribution.
 *
 *   - Neither the name of Pebble nor the names of its contributors may
 *     be used to endorse or promote products derived from this software
 *     without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
package net.sourceforge.pebble.web.view.impl;

import net.sourceforge.pebble.Constants;
import net.sourceforge.pebble.domain.Blog;
import net.sourceforge.pebble.web.view.XmlView;

/**
 * Represents the response sent when a TrackBack is received.
 *
 * @author    Simon Brown
 */
public class TrackBackResponseView extends XmlView {
    //#trackbackresponseview.java:43: method: void net.sourceforge.pebble.web.view.impl.TrackBackResponseView.net.sourceforge.pebble.web.view.impl.TrackBackResponseView()
    //#trackbackresponseview.java:43: Warning: method not available
    //#    -- call on void net.sourceforge.pebble.web.view.XmlView()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.impl.TrackBackResponseView
    //#    method: void net.sourceforge.pebble.web.view.impl.TrackBackResponseView()
    //#    unanalyzed callee: void net.sourceforge.pebble.web.view.XmlView()
    //#input(void net.sourceforge.pebble.web.view.impl.TrackBackResponseView()): this
    //#trackbackresponseview.java:43: end of method: void net.sourceforge.pebble.web.view.impl.TrackBackResponseView.net.sourceforge.pebble.web.view.impl.TrackBackResponseView()

  /**
   * Gets the content type of this view.
   *
   * @return the content type as a String
   */
  public String getContentType() {
    Blog blog = (Blog)getModel().get(Constants.BLOG_KEY);
    //#trackbackresponseview.java:51: method: String net.sourceforge.pebble.web.view.impl.TrackBackResponseView.getContentType()
    //#trackbackresponseview.java:51: Warning: method not available
    //#    -- call on Model net.sourceforge.pebble.web.view.impl.TrackBackResponseView:getModel()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.impl.TrackBackResponseView
    //#    method: String getContentType()
    //#    unanalyzed callee: Model net.sourceforge.pebble.web.view.impl.TrackBackResponseView:getModel()
    //#trackbackresponseview.java:51: Warning: method not available
    //#    -- call on Object net.sourceforge.pebble.web.model.Model:get(String)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.impl.TrackBackResponseView
    //#    method: String getContentType()
    //#    unanalyzed callee: Object net.sourceforge.pebble.web.model.Model:get(String)
    //#input(String getContentType()): this
    //#output(String getContentType()): return_value
    //#presumption(String getContentType()): net.sourceforge.pebble.web.model.Model:get(...)@51 != null
    //#presumption(String getContentType()): net.sourceforge.pebble.web.view.impl.TrackBackResponseView:getModel(...)@51 != null
    //#post(String getContentType()): return_value != null
    return "application/xml; charset=" + blog.getCharacterEncoding();
    //#trackbackresponseview.java:52: Warning: method not available
    //#    -- call on String net.sourceforge.pebble.domain.Blog:getCharacterEncoding()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.view.impl.TrackBackResponseView
    //#    method: String getContentType()
    //#    unanalyzed callee: String net.sourceforge.pebble.domain.Blog:getCharacterEncoding()
    //#trackbackresponseview.java:52: end of method: String net.sourceforge.pebble.web.view.impl.TrackBackResponseView.getContentType()
  }

  /**
   * Gets the URI that implements this view.
   *
   * @return the URI as a String
   */
  public String getUri() {
    return "/WEB-INF/xml/trackbackResponse.xml";
    //#trackbackresponseview.java:61: method: String net.sourceforge.pebble.web.view.impl.TrackBackResponseView.getUri()
    //#output(String getUri()): return_value
    //#post(String getUri()): return_value == &".WEB-INF.xml.trackbackResponse.xml"
    //#trackbackresponseview.java:61: end of method: String net.sourceforge.pebble.web.view.impl.TrackBackResponseView.getUri()
  }

}    //#output(net.sourceforge.pebble.web.view.impl.TrackBackResponseView__static_init): __Descendant_Table[net/sourceforge/pebble/web/view/impl/TrackBackResponseView]
    //#output(net.sourceforge.pebble.web.view.impl.TrackBackResponseView__static_init): __Dispatch_Table.getContentType()Ljava/lang/String;
    //#output(net.sourceforge.pebble.web.view.impl.TrackBackResponseView__static_init): __Dispatch_Table.getUri()Ljava/lang/String;
    //#post(net.sourceforge.pebble.web.view.impl.TrackBackResponseView__static_init): __Descendant_Table[net/sourceforge/pebble/web/view/impl/TrackBackResponseView] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.view.impl.TrackBackResponseView__static_init): __Dispatch_Table.getContentType()Ljava/lang/String; == &getContentType
    //#post(net.sourceforge.pebble.web.view.impl.TrackBackResponseView__static_init): __Dispatch_Table.getUri()Ljava/lang/String; == &getUri
    //#trackbackresponseview.java:: end of method: net.sourceforge.pebble.web.view.impl.TrackBackResponseView.net.sourceforge.pebble.web.view.impl.TrackBackResponseView__static_init
    //#trackbackresponseview.java:: end of class: net.sourceforge.pebble.web.view.impl.TrackBackResponseView
