Java 类org.apache.http.ReasonPhraseCatalog 实例源码

项目:lams    文件:BasicHttpResponse.java   
/**
 * 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();
}
项目:lams    文件:DefaultHttpResponseFactory.java   
/**
 * 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;
}
项目:MAKEYOURFACE    文件:BasicHttpResponse.java   
/**
 * 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();
}
项目:Android-Application-ZJB    文件:CustomResponse.java   
public CustomResponse(StatusLine statusline, ReasonPhraseCatalog catalog, Locale locale) {
    super(statusline, catalog, locale);
}
项目:pcap-reconst    文件:RecordedHttpResponse.java   
public RecordedHttpResponse(StatusLine statusline,
        ReasonPhraseCatalog catalog, Locale locale, 
        MessageMetadata messdata) {
    super(statusline, catalog, locale);
    this.messdata = messdata;
}
项目:pcap-reconst    文件:RecordedHttpResponseFactory.java   
public RecordedHttpResponseFactory(ReasonPhraseCatalog catalog, 
        MessageMetadata messdata) {
    super(catalog);
    this.messdata = messdata;
}
项目:remote-files-sync    文件:DefaultHttpResponseFactoryHC4.java   
/**
 * 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");
}
项目:Visit    文件:DefaultHttpResponseFactoryHC4.java   
/**
 * 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");
}
项目:ZTLib    文件:DefaultHttpResponseFactoryHC4.java   
/**
 * 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");
}