@Override
	public boolean isServerExpandable(HttpServletRequest request, String mid) {
		int idx = mid.indexOf("!"); //$NON-NLS-1$
		String plugin = idx != -1 ? mid.substring(0, idx) : null;
		String name = idx != -1 ? mid.substring(idx+1) : mid;
		if (name.startsWith("/") || urlId.matcher(name).find() || name.contains("?")) { //$NON-NLS-1$ //$NON-NLS-2$
			return false;
		}
		if (plugin != null) {
			IAggregator aggr = (IAggregator)request.getAttribute(IAggregator.AGGREGATOR_REQATTRNAME);
			if (!aggr.getConfig().getTextPluginDelegators().contains(plugin) &&
					!aggr.getConfig().getJsPluginDelegators().contains(plugin)) {
				return false;
			}
		}
		return true;
	}
@ Override public boolean isServerExpandable ( HttpServletRequest request , String mid ) { int idx = mid . indexOf ( "!" ) ; String plugin = idx != - 1 ? mid . substring ( 0 , idx ) : null ; String name = idx != - 1 ? mid . substring ( idx + 1 ) : mid ; if ( name . startsWith ( "/" ) || urlId . matcher ( name ) . find ( ) || name . contains ( "?" ) ) { return false ; } if ( plugin != null ) { IAggregator aggr = ( IAggregator ) request . getAttribute ( IAggregator . AGGREGATOR_REQATTRNAME ) ; if ( ! aggr . getConfig ( ) . getTextPluginDelegators ( ) . contains ( plugin ) && ! aggr . getConfig ( ) . getJsPluginDelegators ( ) . contains ( plugin ) ) { return false ; } } return true ; }
/* (non-Javadoc)
@see com.ibm.jaggr.service.impl.transport.AbstractHttpTransport#isServerExpandable(javax.servlet.http.HttpServletRequest, java.lang.String)