/** * Creates a new response. * This is the constructor to which all others map. * * @param statusline the status line * @param catalog the reason phrase catalog, or * <code>null</code> to disable automatic * reason phrase lookup * @param locale the locale for looking up reason phrases, or * <code>null</code> for the system locale */ public BasicHttpResponse(final StatusLine statusline, final ReasonPhraseCatalog catalog, final Locale locale) { super(); if (statusline == null) { throw new IllegalArgumentException("Status line may not be null."); } this.statusline = statusline; this.reasonCatalog = catalog; this.locale = (locale != null) ? locale : Locale.getDefault(); }
/** * Creates a new response factory with the given catalog. * * @param catalog the catalog of reason phrases */ public DefaultHttpResponseFactory(ReasonPhraseCatalog catalog) { if (catalog == null) { throw new IllegalArgumentException ("Reason phrase catalog must not be null."); } this.reasonCatalog = catalog; }
public CustomResponse(StatusLine statusline, ReasonPhraseCatalog catalog, Locale locale) { super(statusline, catalog, locale); }
public RecordedHttpResponse(StatusLine statusline, ReasonPhraseCatalog catalog, Locale locale, MessageMetadata messdata) { super(statusline, catalog, locale); this.messdata = messdata; }
public RecordedHttpResponseFactory(ReasonPhraseCatalog catalog, MessageMetadata messdata) { super(catalog); this.messdata = messdata; }
/** * Creates a new response factory with the given catalog. * * @param catalog the catalog of reason phrases */ public DefaultHttpResponseFactoryHC4(final ReasonPhraseCatalog catalog) { this.reasonCatalog = Args.notNull(catalog, "Reason phrase catalog"); }