public class HandleWorkspacesFoRequestGenerator extends ServiceableGenerator
DispatchGenerator
Modifier and Type | Field and Description |
---|---|
private DispatchProcessExtensionPoint |
_dispatchProcessExtensionPoint
Dispatch process EP
|
private JSONUtils |
_jsonUtils
JSON Utils
|
private SAXParser |
_saxParser
SAX Parser
|
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
HandleWorkspacesFoRequestGenerator() |
Modifier and Type | Method and Description |
---|---|
private StringBuilder |
_buildQueryParameter(String key,
Object value) |
protected String |
_createUrl(String pluginOrWorkspace,
String relativeUrl,
Map<String,Object> requestParameters)
Create url to call
|
private String |
_escape(String value) |
private Map<String,Object> |
_extractFiles(Request request) |
private String |
_getRelativePath(String url) |
protected String |
_getUrlPrefix(String pluginOrWorkspace)
Get the url prefix
|
private void |
_removeRequestAttributes() |
private void |
_restoreRequestAttributes(Request request,
Map<String,Object> attributes)
Clean the requests attributes and add those in the map
|
private Map<String,Object> |
_saveRequestAttributes(Request request)
Transforms the request attributes into a map and clean the attributes
|
private void |
_setContextInRequestAttributes(Request request,
Map<String,Object> reqContext) |
private Map<String,Object> |
_transmitAttributes(Map<String,Object> attributes) |
private Throwable |
_unroll(Throwable initial) |
void |
generate() |
void |
service(ServiceManager smanager) |
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
private SAXParser _saxParser
private DispatchProcessExtensionPoint _dispatchProcessExtensionPoint
private JSONUtils _jsonUtils
public HandleWorkspacesFoRequestGenerator()
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableGenerator
ServiceException
public void generate() throws IOException, SAXException, ProcessingException
private Map<String,Object> _extractFiles(Request request)
private void _setContextInRequestAttributes(Request request, Map<String,Object> reqContext)
private Map<String,Object> _saveRequestAttributes(Request request)
request
- The requestprivate void _restoreRequestAttributes(Request request, Map<String,Object> attributes)
request
- The requestattributes
- The attributes to restoreprivate void _removeRequestAttributes()
protected String _createUrl(String pluginOrWorkspace, String relativeUrl, Map<String,Object> requestParameters)
pluginOrWorkspace
- the plugin or workspace namerelativeUrl
- the relative urlrequestParameters
- the request parameters. Can not be null.private StringBuilder _buildQueryParameter(String key, Object value)
protected String _getUrlPrefix(String pluginOrWorkspace)
pluginOrWorkspace
- the plugin or workspace nameprivate String _getRelativePath(String url)