Package fitnesse.responders.files
Class FileResponder
- java.lang.Object
-
- fitnesse.responders.files.FileResponder
-
- All Implemented Interfaces:
SecureResponder
,Responder
public class FileResponder extends java.lang.Object implements SecureResponder
-
-
Constructor Summary
Constructors Constructor Description FileResponder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getContentType(java.lang.String filename)
SecureOperation
getSecureOperation()
static boolean
isInFilesDirectory(java.io.File rootPath, java.io.File file)
static boolean
isInFilesFitNesseDirectory(java.io.File rootPath, java.io.File file)
Response
makeResponse(FitNesseContext context, Request request)
-
-
-
Method Detail
-
makeResponse
public Response makeResponse(FitNesseContext context, Request request) throws java.lang.Exception
- Specified by:
makeResponse
in interfaceResponder
- Throws:
java.lang.Exception
-
getContentType
public static java.lang.String getContentType(java.lang.String filename)
-
isInFilesDirectory
public static boolean isInFilesDirectory(java.io.File rootPath, java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
isInFilesFitNesseDirectory
public static boolean isInFilesFitNesseDirectory(java.io.File rootPath, java.io.File file) throws java.io.IOException
- Throws:
java.io.IOException
-
getSecureOperation
public SecureOperation getSecureOperation()
- Specified by:
getSecureOperation
in interfaceSecureResponder
-
-