public String getContentType() {
return request.getContentType();
}
public Cookie[] getCookies() {
Cookies cookies=request.getCookies();
int count=cookies.getCookieCount();
Cookie[] cookieArray = new Cookie[ count ];
// Convert from ServerCookie to Cookie.
// The price is payed _only_ by servlets that call getCookie().
// ( if you don't call it no allocation happens for cookies )
// ( well, it happens, the code to reuse have to be written )
for (int i = 0; i < count; i ++) {
ServerCookie sC=cookies.getCookie(i);
cookieArray[i] = new CookieFacade(sC);
}
return cookieArray;
}