Search in sources :

Example 1 with AssetPathProcessor

use of com.flowlogix.web.services.internal.AssetPathProcessor in project flowlogix by flowlogix.

the class TapestryRemoteServiceServlet method doGetSerializationPolicy.

@Override
protected SerializationPolicy doGetSerializationPolicy(HttpServletRequest request, String moduleBaseURL, String strongName) {
    final SymbolSource symbolSource = ExternalServiceUtil.getTapestryService(getServletContext(), SymbolSource.class);
    final String prefix = symbolSource.valueForSymbol(SymbolConstants.ASSET_PATH_PREFIX);
    final AssetPathProcessor pathProcessor = new AssetPathProcessor(prefix);
    return super.doGetSerializationPolicy(request, pathProcessor.removeAssetPathPart(moduleBaseURL), strongName);
}
Also used : SymbolSource(org.apache.tapestry5.ioc.services.SymbolSource) AssetPathProcessor(com.flowlogix.web.services.internal.AssetPathProcessor)

Aggregations

AssetPathProcessor (com.flowlogix.web.services.internal.AssetPathProcessor)1 SymbolSource (org.apache.tapestry5.ioc.services.SymbolSource)1