play.data.parsing
Class TempFilePlugin

java.lang.Object
  extended by play.PlayPlugin
      extended by play.data.parsing.TempFilePlugin
All Implemented Interfaces:
Comparable<PlayPlugin>

public class TempFilePlugin
extends PlayPlugin

Creates temporary folders for file parsing, and deletes it after request completion.


Field Summary
static ThreadLocal<File> tempFolder
           
 
Fields inherited from class play.PlayPlugin
index
 
Constructor Summary
TempFilePlugin()
           
 
Method Summary
 void afterInvocation()
          Called after an invocation.
static File createTempFolder()
           
 
Methods inherited from class play.PlayPlugin
afterActionInvocation, afterApplicationStart, beforeActionInvocation, beforeDetectingChanges, beforeInvocation, bind, compareTo, compileAll, detectChange, enhance, getJsonStatus, getStatus, invocationFinally, onActionInvocationResult, onApplicationStart, onApplicationStop, onConfigurationRead, onEvent, onInvocationException, onLoad, onRoutesLoaded, postEvent, rawInvocation, routeRequest, serveStatic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tempFolder

public static ThreadLocal<File> tempFolder
Constructor Detail

TempFilePlugin

public TempFilePlugin()
Method Detail

createTempFolder

public static File createTempFolder()

afterInvocation

public void afterInvocation()
Description copied from class: PlayPlugin
Called after an invocation. (unless an excetion has been thrown). Time to close request specific things.

Overrides:
afterInvocation in class PlayPlugin


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly