com.google.caja.ancillary.servlet
Class UploadPage

java.lang.Object
  extended by com.google.caja.ancillary.servlet.UploadPage

final class UploadPage
extends java.lang.Object

Invoked from a file upload form in files/upload.html to upload a source code file. This calls back into uploaded defined in files/index.js with a JSON object containing the uploaded files so that they can be folded into the parent frame's form.

Author:
mikesamuel@gmail.com

Constructor Summary
UploadPage()
           
 
Method Summary
(package private) static void doUpload(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
private static void writeHeader(javax.servlet.http.HttpServletResponse resp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UploadPage

UploadPage()
Method Detail

doUpload

static void doUpload(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse resp)
              throws java.io.IOException
Throws:
java.io.IOException

writeHeader

private static void writeHeader(javax.servlet.http.HttpServletResponse resp)
                         throws java.io.IOException
Throws:
java.io.IOException


Copyright (C) 2008 Google Inc.
Licensed under the Apache License, Version 2.0