BaltradDex
BALTRAD Data Exchange System
Loading...
Searching...
No Matches
eu.baltrad.dex.net.servlet.PostFileServlet Class Reference
Inheritance diagram for eu.baltrad.dex.net.servlet.PostFileServlet:

Public Member Functions

 PostFileServlet ()
 
ModelAndView handleRequest (HttpServletRequest request, HttpServletResponse response)
 
void doPost (HttpServletRequest request, HttpServletResponse response)
 
void filePublicationFailed (SendFileRequest request, ExchangeResponse response)
 
void filePublished (SendFileRequest request)
 
void filePublished (SendFileRequest request, String redirectAddress, int statusCode)
 
void setConfigurationManager (IConfigurationManager confManager)
 
void setNodeStatusManager (INodeStatusManager nodeStatusManager)
 
void setCatalog (FileCatalog catalog)
 
void setMessages (MessageResourceUtil messages)
 
void setSubscriptionManager (ISubscriptionManager subscriptionManager)
 
void setLog (Logger log)
 
void setNamer (FileEntryNamer namer)
 
void setMessageManager (IBltMessageManager messageManager)
 
void setMatcher (MetadataMatcher matcher)
 
void setFileManager (IBltFileManager fileManager)
 
void setRegistryManager (IRegistryManager registryManager)
 
void setUserManager (IUserManager userManager)
 
void setFramePublisherManager (FramePublisherManager framePublisherManager)
 
void setDataSourceManager (IDataSourceManager dataSourceManager)
 
ProtocolManager getProtocolManager ()
 
void setProtocolManager (ProtocolManager protocolManager)
 
void setSecurityManager (ISecurityManager securityManager)
 
void setExchangeManager (IExchangeManager exchangeManager)
 

Protected Member Functions

void initConfiguration ()
 
void sendMessage (FileEntry entry)
 
int validateSubscription (List< Subscription > downloads, FileEntry entry)
 
void sendToSubscribers (List< Subscription > uploads, FileEntry entry)
 
String extractBaseUrlFromRedirect (String baseURI, String originURI, String redirectURI)
 

Protected Attributes

User localNode
 

Detailed Description

Receives and handles post file requests.

Author
Maciej Szewczykowski | macie.nosp@m.j@ba.nosp@m.ltrad.nosp@m..eu
Version
1.1.0
Since
1.1.0

Constructor & Destructor Documentation

◆ PostFileServlet()

eu.baltrad.dex.net.servlet.PostFileServlet.PostFileServlet ( )
inline

Default constructor.

Member Function Documentation

◆ doPost()

void eu.baltrad.dex.net.servlet.PostFileServlet.doPost ( HttpServletRequest request,
HttpServletResponse response )
inline

Actual mathod processing requests.

Parameters
requestHttp servlet request
responseHttp servlet response

◆ getProtocolManager()

ProtocolManager eu.baltrad.dex.net.servlet.PostFileServlet.getProtocolManager ( )
inline
Returns
the protocol managear

◆ handleRequest()

ModelAndView eu.baltrad.dex.net.servlet.PostFileServlet.handleRequest ( HttpServletRequest request,
HttpServletResponse response )
inline

Implements Controller interface.

Parameters
requestHttp servlet request
responseHttp servlet response
Returns
Model and view

◆ initConfiguration()

void eu.baltrad.dex.net.servlet.PostFileServlet.initConfiguration ( )
inlineprotected

Initializes servlet with current configuration.

◆ sendMessage()

void eu.baltrad.dex.net.servlet.PostFileServlet.sendMessage ( FileEntry entry)
inlineprotected

Send message to the beast framework.

Parameters
entryFile entry

◆ sendToSubscribers()

void eu.baltrad.dex.net.servlet.PostFileServlet.sendToSubscribers ( List< Subscription > uploads,
FileEntry entry )
inlineprotected

Send file entry to subscribers.

Parameters
uploadsList of subscriptions
entryFile entry

◆ setCatalog()

void eu.baltrad.dex.net.servlet.PostFileServlet.setCatalog ( FileCatalog catalog)
inline
Parameters
catalogthe catalog to set

◆ setConfigurationManager()

void eu.baltrad.dex.net.servlet.PostFileServlet.setConfigurationManager ( IConfigurationManager confManager)
inline
Parameters
configurationManager

◆ setDataSourceManager()

void eu.baltrad.dex.net.servlet.PostFileServlet.setDataSourceManager ( IDataSourceManager dataSourceManager)
inline
Parameters
dataSourceManagerthe dataSourceManager to set

◆ setExchangeManager()

void eu.baltrad.dex.net.servlet.PostFileServlet.setExchangeManager ( IExchangeManager exchangeManager)
inline
Parameters
exchangeManagerthe exchange manager

◆ setFileManager()

void eu.baltrad.dex.net.servlet.PostFileServlet.setFileManager ( IBltFileManager fileManager)
inline
Parameters
fileManagerthe fileManager to set

◆ setFramePublisherManager()

void eu.baltrad.dex.net.servlet.PostFileServlet.setFramePublisherManager ( FramePublisherManager framePublisherManager)
inline
Parameters
framePublisherManagerthe framePublisherManager to set

◆ setLog()

void eu.baltrad.dex.net.servlet.PostFileServlet.setLog ( Logger log)
inline
Parameters
logthe log to set

◆ setMatcher()

void eu.baltrad.dex.net.servlet.PostFileServlet.setMatcher ( MetadataMatcher matcher)
inline
Parameters
matcherthe matcher to set

◆ setMessageManager()

void eu.baltrad.dex.net.servlet.PostFileServlet.setMessageManager ( IBltMessageManager messageManager)
inline
Parameters
messageManagerthe messageManager to set

◆ setMessages()

void eu.baltrad.dex.net.servlet.PostFileServlet.setMessages ( MessageResourceUtil messages)
inline
Parameters
messagesthe messages to set

◆ setNamer()

void eu.baltrad.dex.net.servlet.PostFileServlet.setNamer ( FileEntryNamer namer)
inline
Parameters
namerthe namer to set

◆ setNodeStatusManager()

void eu.baltrad.dex.net.servlet.PostFileServlet.setNodeStatusManager ( INodeStatusManager nodeStatusManager)
inline
Parameters
nodeStatusManagerthe nodeStatusManager to set

◆ setProtocolManager()

void eu.baltrad.dex.net.servlet.PostFileServlet.setProtocolManager ( ProtocolManager protocolManager)
inline
Parameters
protocolManagerthe protocol manager

◆ setRegistryManager()

void eu.baltrad.dex.net.servlet.PostFileServlet.setRegistryManager ( IRegistryManager registryManager)
inline
Parameters
registryManagerthe registryManager to set

◆ setSecurityManager()

void eu.baltrad.dex.net.servlet.PostFileServlet.setSecurityManager ( ISecurityManager securityManager)
inline
Parameters
securityManagerthe security manager

◆ setSubscriptionManager()

void eu.baltrad.dex.net.servlet.PostFileServlet.setSubscriptionManager ( ISubscriptionManager subscriptionManager)
inline
Parameters
subscriptionManagerthe subscriptionManager to set

◆ setUserManager()

void eu.baltrad.dex.net.servlet.PostFileServlet.setUserManager ( IUserManager userManager)
inline
Parameters
userManagerthe userManager to set

◆ validateSubscription()

int eu.baltrad.dex.net.servlet.PostFileServlet.validateSubscription ( List< Subscription > downloads,
FileEntry entry )
inlineprotected

Check if file comes from a valid subscription.

Parameters
downloadsList of subscribed data sources
entryFile entry
Returns
Subscription id if valid, otherwise 0

The documentation for this class was generated from the following file: