1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
String rt[]=getOrgCnHeader(new String[]{"entete1","entete2"});
je recupere le contenu des deux entetes http
private String[]getOrgCnHeader(String param[])
{
String rt[]=new String[param.length];
rt[0]=new String("");
rt[1]=new String("");
try{
javax.servlet.http.HttpServletRequest req = (javax.servlet.http.HttpServletRequest) MessageContext.getCurrentContext().getProperty(org.apache.axis.transport.http.HTTPConstants.MC_HTTP_SERVLETREQUEST);
for(int i=0;i<param.length;i++)
rt[i]=req.getHeader(param[i]);
}catch(Exception e1){}
catch(Exception e1){}
return rt;
} |
Partager