//# 0 errors, 98 messages
//#
/*
    //#sendtrackbackaction.java:1:1: class: net.sourceforge.pebble.web.action.SendTrackBackAction
 * 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.action;

import net.sourceforge.pebble.Constants;
import net.sourceforge.pebble.domain.BlogEntry;
import net.sourceforge.pebble.domain.Blog;
import net.sourceforge.pebble.domain.BlogService;
import net.sourceforge.pebble.domain.BlogServiceException;
import net.sourceforge.pebble.web.view.NotFoundView;
import net.sourceforge.pebble.web.view.View;
import net.sourceforge.pebble.web.view.impl.TrackBackFormView;
import net.sourceforge.pebble.web.view.impl.TrackBackSentView;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.NameValuePair;
import org.apache.commons.httpclient.methods.PostMethod;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Adds a comment to an existing blog entry.
 *
 * @author    Simon Brown
 */
public class SendTrackBackAction extends SecureAction {
    //#sendtrackbackaction.java:58: method: void net.sourceforge.pebble.web.action.SendTrackBackAction.net.sourceforge.pebble.web.action.SendTrackBackAction()
    //#input(void net.sourceforge.pebble.web.action.SendTrackBackAction()): this
    //#sendtrackbackaction.java:58: end of method: void net.sourceforge.pebble.web.action.SendTrackBackAction.net.sourceforge.pebble.web.action.SendTrackBackAction()

  /** the log used by this class */
  private static Log log = LogFactory.getLog(SendTrackBackAction.class);
    //#sendtrackbackaction.java:61: method: net.sourceforge.pebble.web.action.SendTrackBackAction.net.sourceforge.pebble.web.action.SendTrackBackAction__static_init
    //#sendtrackbackaction.java:61: Warning: method not available
    //#    -- call on Log org.apache.commons.logging.LogFactory:getLog(Class)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.SendTrackBackAction
    //#    method: net.sourceforge.pebble.web.action.SendTrackBackAction__static_init
    //#    unanalyzed callee: Log org.apache.commons.logging.LogFactory:getLog(Class)
    //#output(net.sourceforge.pebble.web.action.SendTrackBackAction__static_init): __Descendant_Table[net/sourceforge/pebble/web/action/SendTrackBackAction]
    //#output(net.sourceforge.pebble.web.action.SendTrackBackAction__static_init): __Dispatch_Table.getLocalizedString(Ljava/lang/String;)Ljava/lang/String;
    //#output(net.sourceforge.pebble.web.action.SendTrackBackAction__static_init): __Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#output(net.sourceforge.pebble.web.action.SendTrackBackAction__static_init): __Dispatch_Table.getRoles(Ljavax/servlet/http/HttpServletRequest;)[Ljava/lang/String;
    //#output(net.sourceforge.pebble.web.action.SendTrackBackAction__static_init): __Dispatch_Table.process(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Lnet/sourceforge/pebble/web/view/View;
    //#output(net.sourceforge.pebble.web.action.SendTrackBackAction__static_init): __Dispatch_Table.setModel(Lnet/sourceforge/pebble/web/model/Model;)V
    //#output(net.sourceforge.pebble.web.action.SendTrackBackAction__static_init): log
    //#output(net.sourceforge.pebble.web.action.SendTrackBackAction__static_init): net/sourceforge/pebble/web/action/Action.__Descendant_Table[net/sourceforge/pebble/web/action/SendTrackBackAction]
    //#output(net.sourceforge.pebble.web.action.SendTrackBackAction__static_init): net/sourceforge/pebble/web/action/SecureAction.__Descendant_Table[net/sourceforge/pebble/web/action/SendTrackBackAction]
    //#post(net.sourceforge.pebble.web.action.SendTrackBackAction__static_init): __Descendant_Table[net/sourceforge/pebble/web/action/SendTrackBackAction] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.action.SendTrackBackAction__static_init): net/sourceforge/pebble/web/action/Action.__Descendant_Table[net/sourceforge/pebble/web/action/SendTrackBackAction] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.action.SendTrackBackAction__static_init): net/sourceforge/pebble/web/action/SecureAction.__Descendant_Table[net/sourceforge/pebble/web/action/SendTrackBackAction] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.action.SendTrackBackAction__static_init): __Dispatch_Table.getLocalizedString(Ljava/lang/String;)Ljava/lang/String; == &net/sourceforge/pebble/web/action/Action.getLocalizedString
    //#post(net.sourceforge.pebble.web.action.SendTrackBackAction__static_init): __Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model; == &net/sourceforge/pebble/web/action/Action.getModel
    //#post(net.sourceforge.pebble.web.action.SendTrackBackAction__static_init): __Dispatch_Table.getRoles(Ljavax/servlet/http/HttpServletRequest;)[Ljava/lang/String; == &getRoles
    //#post(net.sourceforge.pebble.web.action.SendTrackBackAction__static_init): __Dispatch_Table.process(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Lnet/sourceforge/pebble/web/view/View; == &process
    //#post(net.sourceforge.pebble.web.action.SendTrackBackAction__static_init): __Dispatch_Table.setModel(Lnet/sourceforge/pebble/web/model/Model;)V == &net/sourceforge/pebble/web/action/Action.setModel
    //#post(net.sourceforge.pebble.web.action.SendTrackBackAction__static_init): init'ed(log)
    //#sendtrackbackaction.java:61: end of method: net.sourceforge.pebble.web.action.SendTrackBackAction.net.sourceforge.pebble.web.action.SendTrackBackAction__static_init

  /**
   * Peforms the processing associated with this action.
   *
   * @param request  the HttpServletRequest instance
   * @param response the HttpServletResponse instance
   * @return the name of the next view
   */
  public View process(HttpServletRequest request, HttpServletResponse response) throws ServletException {
    Blog blog = (Blog)getModel().get(Constants.BLOG_KEY);
    //#sendtrackbackaction.java:71: method: View net.sourceforge.pebble.web.action.SendTrackBackAction.process(HttpServletRequest, HttpServletResponse)
    //#input(View process(HttpServletRequest, HttpServletResponse)): __Descendant_Table[net/sourceforge/pebble/web/action/SendTrackBackAction]
    //#input(View process(HttpServletRequest, HttpServletResponse)): __Descendant_Table[others]
    //#input(View process(HttpServletRequest, HttpServletResponse)): __Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/model/Model.__Descendant_Table[net/sourceforge/pebble/web/model/Model]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/model/Model.__Descendant_Table[others]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/model/Model.__Dispatch_Table.get(Ljava/lang/String;)Ljava/lang/Object;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/model/Model.__Dispatch_Table.put(Ljava/lang/String;Ljava/lang/Object;)V
    //#input(View process(HttpServletRequest, HttpServletResponse)): request
    //#input(View process(HttpServletRequest, HttpServletResponse)): this
    //#input(View process(HttpServletRequest, HttpServletResponse)): this.__Tag
    //#input(View process(HttpServletRequest, HttpServletResponse)): this.model
    //#input(View process(HttpServletRequest, HttpServletResponse)): this.model.__Tag
    //#input(View process(HttpServletRequest, HttpServletResponse)): this.model.data
    //#output(View process(HttpServletRequest, HttpServletResponse)): new NotFoundView(process#3) num objects
    //#output(View process(HttpServletRequest, HttpServletResponse)): new TrackBackFormView(process#4) num objects
    //#output(View process(HttpServletRequest, HttpServletResponse)): new TrackBackSentView(process#15) num objects
    //#output(View process(HttpServletRequest, HttpServletResponse)): return_value
    //#new obj(View process(HttpServletRequest, HttpServletResponse)): new NotFoundView(process#3)
    //#new obj(View process(HttpServletRequest, HttpServletResponse)): new TrackBackFormView(process#4)
    //#new obj(View process(HttpServletRequest, HttpServletResponse)): new TrackBackSentView(process#15)
    //#pre[2] (View process(HttpServletRequest, HttpServletResponse)): request != null
    //#pre[4] (View process(HttpServletRequest, HttpServletResponse)): this.__Tag == net/sourceforge/pebble/web/action/SendTrackBackAction
    //#pre[5] (View process(HttpServletRequest, HttpServletResponse)): this.model != null
    //#pre[6] (View process(HttpServletRequest, HttpServletResponse)): this.model.__Tag == net/sourceforge/pebble/web/model/Model
    //#pre[7] (View process(HttpServletRequest, HttpServletResponse)): this.model.data != null
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): java.util.HashMap:get(...)@63 != null
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): net.sourceforge.pebble.domain.BlogEntry:getBlog(...)@100 != null
    //#post(View process(HttpServletRequest, HttpServletResponse)): return_value in Addr_Set{&new TrackBackSentView(process#15),&new TrackBackFormView(process#4),&new NotFoundView(process#3)}
    //#post(View process(HttpServletRequest, HttpServletResponse)): new NotFoundView(process#3) num objects <= 1
    //#post(View process(HttpServletRequest, HttpServletResponse)): new TrackBackFormView(process#4) num objects <= 1
    //#post(View process(HttpServletRequest, HttpServletResponse)): new TrackBackSentView(process#15) num objects <= 1
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.HashMap:get
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.HashMap:put
    //#test_vector(View process(HttpServletRequest, HttpServletResponse)): java.lang.String:length(...)@94: {1..4_294_967_295}, {0}
    //#test_vector(View process(HttpServletRequest, HttpServletResponse)): javax.servlet.http.HttpServletRequest:getParameter(...)@73: Addr_Set{null}, Inverse{null}
    //#test_vector(View process(HttpServletRequest, HttpServletResponse)): javax.servlet.http.HttpServletRequest:getParameter(...)@74: Addr_Set{null}, Inverse{null}

    String entryId = request.getParameter("entry");
    String trackBackUrl = request.getParameter("url");
    String excerpt = request.getParameter("excerpt");
    String trackBackResponseMessage;
    Integer trackBackResponseCode;

    BlogService service = new BlogService();
    //#sendtrackbackaction.java:79: Warning: method not available
    //#    -- call on void net.sourceforge.pebble.domain.BlogService()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.SendTrackBackAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: void net.sourceforge.pebble.domain.BlogService()
    BlogEntry blogEntry = null;
    if (entryId != null) {
      try {
        blogEntry = service.getBlogEntry(blog, entryId);
    //#sendtrackbackaction.java:83: Warning: method not available
    //#    -- call on BlogEntry net.sourceforge.pebble.domain.BlogService:getBlogEntry(Blog, String)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.SendTrackBackAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: BlogEntry net.sourceforge.pebble.domain.BlogService:getBlogEntry(Blog, String)
      } catch (BlogServiceException e) {
        throw new ServletException(e);
      }
    }

    if (blogEntry == null) {
      // the entry cannot be found - it may have been removed or the
      // requesting URL was wrong

      return new NotFoundView();
    //#sendtrackbackaction.java:93: Warning: method not available
    //#    -- call on void net.sourceforge.pebble.web.view.NotFoundView()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.SendTrackBackAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: void net.sourceforge.pebble.web.view.NotFoundView()
    } else if (trackBackUrl == null || trackBackUrl.trim().length() == 0) {
      getModel().put(Constants.BLOG_ENTRY_KEY, blogEntry);
      return new TrackBackFormView();
    //#sendtrackbackaction.java:96: Warning: method not available
    //#    -- call on void net.sourceforge.pebble.web.view.impl.TrackBackFormView()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.SendTrackBackAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: void net.sourceforge.pebble.web.view.impl.TrackBackFormView()
    } else {
      // extract the information to send in the trackback
      String title = blogEntry.getTitle();
    //#sendtrackbackaction.java:99: Warning: method not available
    //#    -- call on String net.sourceforge.pebble.domain.BlogEntry:getTitle()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.SendTrackBackAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: String net.sourceforge.pebble.domain.BlogEntry:getTitle()
      String blogName = blogEntry.getBlog().getName();
    //#sendtrackbackaction.java:100: Warning: method not available
    //#    -- call on Blog net.sourceforge.pebble.domain.BlogEntry:getBlog()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.SendTrackBackAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: Blog net.sourceforge.pebble.domain.BlogEntry:getBlog()
    //#sendtrackbackaction.java:100: Warning: method not available
    //#    -- call on String net.sourceforge.pebble.domain.Blog:getName()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.SendTrackBackAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: String net.sourceforge.pebble.domain.Blog:getName()
      String url = blogEntry.getPermalink();
    //#sendtrackbackaction.java:101: Warning: method not available
    //#    -- call on String net.sourceforge.pebble.domain.BlogEntry:getPermalink()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.SendTrackBackAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: String net.sourceforge.pebble.domain.BlogEntry:getPermalink()

      // now send the trackback
      try {
        HttpClient httpClient = new HttpClient();
    //#sendtrackbackaction.java:105: Warning: method not available
    //#    -- call on void org.apache.commons.httpclient.HttpClient()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.SendTrackBackAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: void org.apache.commons.httpclient.HttpClient()
        PostMethod postMethod = new PostMethod(trackBackUrl);
    //#sendtrackbackaction.java:106: Warning: method not available
    //#    -- call on void org.apache.commons.httpclient.methods.PostMethod(String)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.SendTrackBackAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: void org.apache.commons.httpclient.methods.PostMethod(String)
        postMethod.addRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=" + blog.getCharacterEncoding());
    //#sendtrackbackaction.java:107: Warning: method not available
    //#    -- call on String net.sourceforge.pebble.domain.Blog:getCharacterEncoding()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.SendTrackBackAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: String net.sourceforge.pebble.domain.Blog:getCharacterEncoding()
    //#sendtrackbackaction.java:107: Warning: method not available
    //#    -- call on void org.apache.commons.httpclient.methods.PostMethod:addRequestHeader(String, String)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.SendTrackBackAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: void org.apache.commons.httpclient.methods.PostMethod:addRequestHeader(String, String)
        NameValuePair[] data = {
          new NameValuePair("title", title),
    //#sendtrackbackaction.java:109: Warning: method not available
    //#    -- call on void org.apache.commons.httpclient.NameValuePair(String, String)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.SendTrackBackAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: void org.apache.commons.httpclient.NameValuePair(String, String)
          new NameValuePair("url", url),
    //#sendtrackbackaction.java:110: Warning: method not available
    //#    -- call on void org.apache.commons.httpclient.NameValuePair(String, String)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.SendTrackBackAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: void org.apache.commons.httpclient.NameValuePair(String, String)
          new NameValuePair("excerpt", excerpt),
    //#sendtrackbackaction.java:111: Warning: method not available
    //#    -- call on void org.apache.commons.httpclient.NameValuePair(String, String)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.SendTrackBackAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: void org.apache.commons.httpclient.NameValuePair(String, String)
          new NameValuePair("blog_name", blogName)
    //#sendtrackbackaction.java:112: Warning: method not available
    //#    -- call on void org.apache.commons.httpclient.NameValuePair(String, String)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.SendTrackBackAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: void org.apache.commons.httpclient.NameValuePair(String, String)
        };
        postMethod.addParameters(data);
    //#sendtrackbackaction.java:114: Warning: method not available
    //#    -- call on void org.apache.commons.httpclient.methods.PostMethod:addParameters(NameValuePair[])
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.SendTrackBackAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: void org.apache.commons.httpclient.methods.PostMethod:addParameters(NameValuePair[])

        trackBackResponseCode = new Integer(httpClient.executeMethod(postMethod));
    //#sendtrackbackaction.java:116: Warning: method not available
    //#    -- call on int org.apache.commons.httpclient.HttpClient:executeMethod(HttpMethod)
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.SendTrackBackAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: int org.apache.commons.httpclient.HttpClient:executeMethod(HttpMethod)
        trackBackResponseMessage = postMethod.getResponseBodyAsString();
    //#sendtrackbackaction.java:117: Warning: method not available
    //#    -- call on String org.apache.commons.httpclient.methods.PostMethod:getResponseBodyAsString()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.SendTrackBackAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: String org.apache.commons.httpclient.methods.PostMethod:getResponseBodyAsString()
      } catch (Exception e) {
        log.error(e.getMessage(), e);
        throw new ServletException(e);
      }

      getModel().put(Constants.BLOG_ENTRY_KEY, blogEntry);
      getModel().put("trackBackUrl", trackBackUrl);
      getModel().put("trackBackResponseCode", trackBackResponseCode);
      getModel().put("trackBackResponseMessage", trackBackResponseMessage);

      return new TrackBackSentView();
    //#sendtrackbackaction.java:128: Warning: method not available
    //#    -- call on void net.sourceforge.pebble.web.view.impl.TrackBackSentView()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.SendTrackBackAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: void net.sourceforge.pebble.web.view.impl.TrackBackSentView()
    //#sendtrackbackaction.java:128: end of method: View net.sourceforge.pebble.web.action.SendTrackBackAction.process(HttpServletRequest, HttpServletResponse)
    }

  }

  /**
   * Gets a list of all roles that are allowed to access this action.
   *
   * @return  an array of Strings representing role names
   * @param request
   */
  public String[] getRoles(HttpServletRequest request) {
    return new String[]{Constants.BLOG_CONTRIBUTOR_ROLE};
    //#sendtrackbackaction.java:140: method: String[] net.sourceforge.pebble.web.action.SendTrackBackAction.getRoles(HttpServletRequest)
    //#input(String[] getRoles(HttpServletRequest)): net.sourceforge.pebble.Constants.BLOG_CONTRIBUTOR_ROLE
    //#output(String[] getRoles(HttpServletRequest)): new String[](getRoles#1) num objects
    //#output(String[] getRoles(HttpServletRequest)): return_value.length
    //#output(String[] getRoles(HttpServletRequest)): return_value[0]
    //#output(String[] getRoles(HttpServletRequest)): return_value
    //#new obj(String[] getRoles(HttpServletRequest)): new String[](getRoles#1)
    //#presumption(String[] getRoles(HttpServletRequest)): init'ed(net.sourceforge.pebble.Constants.BLOG_CONTRIBUTOR_ROLE)
    //#post(String[] getRoles(HttpServletRequest)): return_value == &new String[](getRoles#1)
    //#post(String[] getRoles(HttpServletRequest)): new String[](getRoles#1) num objects == 1
    //#post(String[] getRoles(HttpServletRequest)): return_value.length == 1
    //#post(String[] getRoles(HttpServletRequest)): return_value[0] == net.sourceforge.pebble.Constants.BLOG_CONTRIBUTOR_ROLE
    //#post(String[] getRoles(HttpServletRequest)): (soft) init'ed(return_value[0])
    //#sendtrackbackaction.java:140: end of method: String[] net.sourceforge.pebble.web.action.SendTrackBackAction.getRoles(HttpServletRequest)
  }

}    //#sendtrackbackaction.java:: end of class: net.sourceforge.pebble.web.action.SendTrackBackAction
