~ubuntu-branches/ubuntu/trusty/tomcat7/trusty-security

« back to all changes in this revision

Viewing changes to java/org/apache/catalina/connector/RequestFacade.java

  • Committer: Package Import Robot
  • Author(s): tony mancill
  • Date: 2012-06-07 22:43:21 UTC
  • mfrom: (11.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20120607224321-cfev8j681yueyov3
Tags: 7.0.27-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 
42
42
import org.apache.catalina.Globals;
43
43
import org.apache.catalina.security.SecurityUtil;
 
44
import org.apache.coyote.http11.upgrade.UpgradeInbound;
44
45
import org.apache.tomcat.util.res.StringManager;
45
46
 
46
47
/**
50
51
 * @author Craig R. McClanahan
51
52
 * @author Remy Maucherat
52
53
 * @author Jean-Francois Arcand
53
 
 * @version $Id: RequestFacade.java 1200178 2011-11-10 06:14:46Z kkolinko $
 
54
 * @version $Id: RequestFacade.java 1302358 2012-03-19 10:09:12Z markt $
54
55
 */
55
56
 
56
57
@SuppressWarnings("deprecation")
1085
1086
        return request.getConnector().getAllowTrace();
1086
1087
    }
1087
1088
 
 
1089
    /**
 
1090
     * Sets the response status to {@link
 
1091
     * HttpServletResponse#SC_SWITCHING_PROTOCOLS} and flushes the response.
 
1092
     * Protocol specific headers must have already been set before this method
 
1093
     * is called.
 
1094
     *
 
1095
     * @param inbound   The handler for all further incoming data on the current
 
1096
     *                  connection.
 
1097
     *
 
1098
     * @throws IOException  If the upgrade fails (e.g. if the response has
 
1099
     *                      already been committed.
 
1100
     */
 
1101
    public void doUpgrade(UpgradeInbound inbound)
 
1102
            throws IOException {
 
1103
        request.doUpgrade(inbound);
 
1104
    }
1088
1105
}