public String findToken(){
  Matcher m;
  Pattern p;
switch (super.getParamName()) {
case REQUEST:
    p=Pattern.compile("ID=\"(.*?)\"");
  break;
case RESPONSE:
p=Pattern.compile("InResponseTo=\"(.*?)\"");
break;
case ARTIFACT:
p=Pattern.compile("InResponseTo=\"(.*?)\"");
break;
default :
return "Not Found!";
}
if (super.getParsedContent() != null) {
m=p.matcher(super.getParsedContent());
if (m.find()) {
return m.group(1);
}
}
return "Not Found!";
}

public String findToken ( ) { Matcher m ; Pattern p ; switch ( super . getParamName ( ) ) { case REQUEST : p = Pattern . compile ( "ID=\"(.*?)\"" ) ; break ; case RESPONSE : p = Pattern . compile ( "InResponseTo=\"(.*?)\"" ) ; break ; case ARTIFACT : p = Pattern . compile ( "InResponseTo=\"(.*?)\"" ) ; break ; default : return "Not Found!" ; } if ( super . getParsedContent ( ) != null ) { m = p . matcher ( super . getParsedContent ( ) ) ; if ( m . find ( ) ) { return m . group ( 1 ) ; } } return "Not Found!" ; }
find the token associated to the request / response .
