Context getContext ( final String path , List < String > aliases ) { VHostMapping host = null ; for ( final VHostMapping vhost : vHosts ) { if ( aliases . equals ( vhost . getAliases ( ) ) ) { host = vhost ; break ; } } if ( host == null ) { return null ; } for ( final Context context : contexts ) { if ( context . getPath ( ) . equals ( path ) && context . getVhost ( ) == host ) { return context ; } } return null ; }
Get a context .