01: /*
02: * $Id: HTTPStatusCodeVerifier.java,v 1.9 2007/01/04 10:17:26 agoubard Exp $
03: *
04: * Copyright 2003-2007 Orange Nederland Breedband B.V.
05: * See the COPYRIGHT file for redistribution and use restrictions.
06: */
07: package org.xins.common.http;
08:
09: /**
10: * Abstraction of an HTTP status code verifier.
11: *
12: * @version $Revision: 1.9 $ $Date: 2007/01/04 10:17:26 $
13: * @author <a href="mailto:ernst@ernstdehaan.com">Ernst de Haan</a>
14: *
15: * @since XINS 1.0.0
16: */
17: public interface HTTPStatusCodeVerifier {
18:
19: /**
20: * Checks if the specified HTTP status code is considered acceptable or
21: * unacceptable.
22: *
23: * @param code
24: * the HTTP status code to check.
25: *
26: * @return
27: * <code>true</code> if the specified HTTP status code is considered
28: * acceptable, <code>false</code> otherwise.
29: */
30: boolean isAcceptable(int code);
31: }
|