/** * Indicates if the status is an information status. * * @param code * The code of the status. * @return True if the status is an information status. * @deprecated Use {@link #isInformational(int)} instead. */ @Deprecated public static boolean isInfo(int code) { return isInformational(code); }
/** * Indicates if the status is an information status, meaning "request * received, continuing process". * * @return True if the status is an information status. */ public boolean isInformational() { return isInformational(getCode()); }
/** * Indicates if the response is provisional or final. It relies on the {@link Status#isInformational()} method. * * @return True if the response is provisional. */ public boolean isProvisional() { return getStatus().isInformational(); }
/** * Indicates if the status is an information status, meaning "request * received, continuing process". * * @return True if the status is an information status. */ public boolean isInformational() { return isInformational(getCode()); }
/** * Indicates if the response is final or provisional. It relies on the {@link Status#isInformational()} method. * * @return True if the response is final. */ public boolean isFinal() { return !getStatus().isInformational(); }
/** * Indicates if the status is an information status, meaning "request * received, continuing process". * * @return True if the status is an information status. */ public boolean isInformational() { return isInformational(getCode()); }
public void handle(Request req, Response resp) { SipResponse r = (SipResponse) resp; if (!resp.getStatus().isInformational()) {
&& !response.getStatus().isInformational() && !response.getStatus().equals(REDIRECTION_NOT_MODIFIED) && !response.getStatus().equals(SUCCESS_NO_CONTENT)
response.setEntity(null); } else if (response.getStatus().isInformational()) { if (response.isEntityAvailable()) { getLogger()
Status.REDIRECTION_NOT_MODIFIED)) { response.getEntity().release(); } else if (response.getStatus().isInformational()) { response.getEntity().release(); response.setEntity(null);