| java.lang.Object org.ofbiz.service.DispatchContext
DispatchContext | public DispatchContext(String name, Collection readers, ClassLoader loader, LocalDispatcher dispatcher)(Code) | | Creates new DispatchContext
Parameters: readers - a collection of reader URLs Parameters: loader - the classloader to use for dispatched services |
getAttribute | public Object getAttribute(String name)(Code) | | Returns the service attribute for the given name, or null if there is no attribute by that name.
Parameters: name - a String specifying the name of the attribute an Object conatining the value of the attribute, or null if there is no attribute by that name. |
getClassLoader | public ClassLoader getClassLoader()(Code) | | Gets the classloader of this context
ClassLoader of the context |
getDelegator | public GenericDelegator getDelegator()(Code) | | Gets the GenericDelegator associated with this context/dispatcher
GenericDelegator associated with this context |
getDispatcher | public LocalDispatcher getDispatcher()(Code) | | Gets the LocalDispatcher used with this context
LocalDispatcher that was used to create this context |
getModelService | public ModelService getModelService(String serviceName) throws GenericServiceException(Code) | | Gets the ModelService instance that corresponds to given the name
Parameters: serviceName - Name of the service GenericServiceModel that corresponds to the serviceName |
getName | public String getName()(Code) | | Gets the name of the local dispatcher
String name of the LocalDispatcher object |
getReaders | public Collection getReaders()(Code) | | Gets the collection of readers associated with this context
Collection of reader URLs |
getSecurity | public Security getSecurity()(Code) | | Gets the Security object associated with this dispatcher
Security object associated with this dispatcher |
loadReaders | public void loadReaders()(Code) | | |
makeValidContext | public Map makeValidContext(String serviceName, String mode, Map context) throws GenericServiceException(Code) | | Uses an existing map of name value pairs and extracts the keys which are used in serviceName
Note: This goes not guarantee the context will be 100% valid, there may be missing fields
Parameters: serviceName - The name of the service to obtain parameters for Parameters: mode - The mode to use for building the new map (i.e. can be IN or OUT) Parameters: context - The initial set of values to pull from Map contains any valid values throws: GenericServiceException - |
makeValidContext | public Map makeValidContext(ModelService model, String mode, Map context) throws GenericServiceException(Code) | | Uses an existing map of name value pairs and extracts the keys which are used in serviceName
Note: This goes not guarantee the context will be 100% valid, there may be missing fields
Parameters: model - The ModelService object of the service to obtain parameters for Parameters: mode - The mode to use for building the new map (i.e. can be IN or OUT) Parameters: context - The initial set of values to pull from Map contains any valid values throws: GenericServiceException - |
setAttribute | public void setAttribute(String name, Object object)(Code) | | Binds an object to a given attribute name in this context.
Parameters: name - a String specifying the name of the attribute Parameters: object - an Object representing the attribute to be bound. |
setDispatcher | public void setDispatcher(LocalDispatcher dispatcher)(Code) | | Sets the LocalDispatcher used with this context
Parameters: dispatcher - The LocalDispatcher to re-assign to this context |
|
|