org.plovr
Class CompileRequestHandler
java.lang.Object
   org.plovr.CompileRequestHandler
org.plovr.CompileRequestHandler
- All Implemented Interfaces: 
- com.sun.net.httpserver.HttpHandler
- public class CompileRequestHandler 
- extends Object
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
server
protected final CompilationServer server
CompileRequestHandler
public CompileRequestHandler(CompilationServer server)
doGet
protected void doGet(com.sun.net.httpserver.HttpExchange exchange,
                     QueryData data,
                     Config config)
              throws IOException
- All parameters are guaranteed to be non-null.
 
- 
 
- 
- Throws:
- IOException
 
compile
public static Compilation compile(Config config)
                           throws CompilationException
- 
- Throws:
- CompilationException
 
handle
public final void handle(com.sun.net.httpserver.HttpExchange ex)
                  throws IOException
- 
- Specified by:
- handlein interface- com.sun.net.httpserver.HttpHandler
 
- 
- Throws:
- IOException
 
setCacheHeaders
protected void setCacheHeaders(com.sun.net.httpserver.Headers headers)
- Sets the cache headers to disable caching of resources.
 See http://code.google.com/p/doctype/wiki/ArticleHttpCaching
 
- 
 
- 
 
getCompilation
@Nullable
protected final Compilation getCompilation(com.sun.net.httpserver.HttpExchange exchange,
                                                    QueryData data,
                                                    Config config)
                                    throws IOException
- Successfully returns a Compilation(and records it as the latestCompilationfor the config), or returns null, indicating that noCompilationcould be found and that an error message was already
 written.
 
- 
 
- 
- Throws:
- IOException
 
getCompilation
@Nullable
protected final Compilation getCompilation(com.sun.net.httpserver.HttpExchange exchange,
                                                    QueryData data,
                                                    Config config,
                                                    boolean recordCompilation)
                                    throws IOException
- 
 
- 
- Throws:
- IOException