Slicer
4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Libs/RemoteIO/vtkHTTPHandler.h>
Public Types | |
typedef vtkURIHandler | Superclass |
Public Types inherited from vtkURIHandler | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual int | CanHandleURI (const char *uri) VTK_OVERRIDE |
virtual int | CloseTransfer () VTK_OVERRIDE |
virtual const char * | GetClassName () |
int | GetForbidReuse () |
virtual void | InitTransfer () VTK_OVERRIDE |
NOTE: Subclasses should implement these method. More... | |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE |
void | SetForbidReuse (int value) |
virtual void | StageFileRead (const char *source, const char *destination) VTK_OVERRIDE |
This function wraps curl functionality to download a specified URL to a specified dir. More... | |
virtual void | StageFileWrite (const char *source, const char *destination) VTK_OVERRIDE |
Public Member Functions inherited from vtkURIHandler | |
size_t | BufferedWrite (char *buffer, size_t size, size_t nitems) |
This function writes the downloaded data in a buffered manner. More... | |
virtual int | CanHandleURI (const char *vtkNotUsed(uri)) |
need something that goes the other way too... More... | |
virtual char * | GetHostName () |
virtual char * | GetName () |
virtual vtkPermissionPrompter * | GetPermissionPrompter () |
virtual char * | GetPrefix () |
virtual int | GetRequiresPermission () |
void | PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE |
int | ProgressCallback (FILE *outputFile, double dltotal, double dlnow, double ultotal, double ulnow) |
This function gives us some feedback on how our download is going. More... | |
virtual void | SetHostName (const char *) |
virtual void | SetLocalFile (FILE *localFile) |
Use this function to set LocalFile. More... | |
virtual void | SetName (const char *) |
virtual void | SetPermissionPrompter (vtkPermissionPrompter *prompter) |
virtual void | SetPrefix (const char *) |
virtual void | SetRequiresPermission (int) |
virtual void | StageFileRead (const char *source, const char *destination, const char *username, const char *password, const char *hostname) |
various Read/Write method footprints useful to redefine in specific handlers. More... | |
virtual void | StageFileWrite (const char *source, const char *username, const char *password, const char *hostname, const char *sessionID) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkHTTPHandler * | New () |
The Usual vtk class functions. More... | |
static vtkHTTPHandler * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkURIHandler | |
static int | IsTypeOf (const char *type) |
static vtkURIHandler * | New () |
The Usual vtk class functions. More... | |
static vtkURIHandler * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
void | operator= (const vtkHTTPHandler &) |
vtkHTTPHandler () | |
vtkHTTPHandler (const vtkHTTPHandler &) | |
virtual | ~vtkHTTPHandler () |
Protected Member Functions inherited from vtkURIHandler | |
void | operator= (const vtkURIHandler &) |
vtkURIHandler () | |
vtkURIHandler (const vtkURIHandler &) | |
virtual | ~vtkURIHandler () |
Additional Inherited Members | |
Protected Attributes inherited from vtkURIHandler | |
char * | HostName |
FILE * | LocalFile |
local file, it gets passed to C functions in libcurl More... | |
char * | Name |
char * | Prefix |
Definition at line 15 of file vtkHTTPHandler.h.
Definition at line 21 of file vtkHTTPHandler.h.
|
protected |
|
protectedvirtual |
|
protected |
|
virtual |
This methods returns 1 if the handler matches the uri's required protocol and returns 0 if it's not appropriate for the uri.
|
virtual |
Reimplemented from vtkURIHandler.
|
virtual |
Reimplemented from vtkURIHandler.
int vtkHTTPHandler::GetForbidReuse | ( | ) |
|
virtual |
NOTE: Subclasses should implement these method.
Reimplemented from vtkURIHandler.
|
virtual |
Reimplemented from vtkURIHandler.
|
static |
|
static |
The Usual vtk class functions.
|
protected |
void vtkHTTPHandler::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
static |
void vtkHTTPHandler::SetForbidReuse | ( | int | value | ) |
Some web servers don't handle 'keep alive' socket transactions in a way that's compatible with curl on windows. When this flag is set curl will do one transaction per connection with the side-effect that more network resources are used (so avoid this if you can).
|
virtual |
This function wraps curl functionality to download a specified URL to a specified dir.
Reimplemented from vtkURIHandler.
|
virtual |
Reimplemented from vtkURIHandler.