String function ( String arg0 ) { arg0 = conditionallyPrependHttp ( arg0 ) ; URL loc0 = new URL ( arg0 ) ; String loc1 = loc0 . getHost ( ) ; String loc2 = loc0 . getPath ( ) ; String loc3 = loc0 . getQuery ( ) ; return OMA_REDIRECT_LINK + SITE_PARAM + "srini_string" + loc1 + loc2 + "srini_string" + loc3 ; }
creates a redirect link from portal to oma . incoming links look like this : http://mutationassessor.org/?cm=var&var=17,7517830,g,c&fts=all outgoing links look like this : omaredirect.do?path = / & cm = var & var = 17,7517830 , g , c & fts = all concode_field_sep String OMA_REDIRECT_LINK concode_elem_sep String SITE_PARAM concode_field_sep String removePath concode_elem_sep String conditionallyPrependHttp concode_elem_sep String createOmaLink concode_elem_sep String createQueryString concode_elem_sep HashMap<String,String> getParameterMap concode_elem_sep ArrayList<String> getKeyList concode_elem_sep String getDelimiter