Return-Path: Delivered-To: apmail-jakarta-httpclient-commits-archive@www.apache.org Received: (qmail 17516 invoked from network); 3 Apr 2005 10:16:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Apr 2005 10:16:01 -0000 Received: (qmail 29661 invoked by uid 500); 3 Apr 2005 10:16:00 -0000 Mailing-List: contact httpclient-commits-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: httpclient-dev@jakarta.apache.org Delivered-To: mailing list httpclient-commits@jakarta.apache.org Received: (qmail 29644 invoked by uid 500); 3 Apr 2005 10:16:00 -0000 Delivered-To: apmail-jakarta-httpclient-cvs@jakarta.apache.org Received: (qmail 29639 invoked by uid 99); 3 Apr 2005 10:16:00 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Sun, 03 Apr 2005 03:16:00 -0700 Received: (qmail 17506 invoked by uid 65534); 3 Apr 2005 10:15:58 -0000 Message-ID: <20050403101558.17505.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: svnmailer-1.0.0-dev Date: Sun, 03 Apr 2005 10:15:58 -0000 Subject: svn commit: r159908 - jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/BasicHttpEntity.java To: httpclient-cvs@jakarta.apache.org From: olegk@apache.org X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: olegk Date: Sun Apr 3 03:15:57 2005 New Revision: 159908 URL: http://svn.apache.org/viewcvs?view=3Drev&rev=3D159908 Log: Added default impl of the HttpMutableEntity interface Added: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/Basi= cHttpEntity.java (with props) Added: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/B= asicHttpEntity.java URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src= /java/org/apache/http/impl/BasicHttpEntity.java?view=3Dauto&rev=3D159908 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/Basi= cHttpEntity.java (added) +++ jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/Basi= cHttpEntity.java Sun Apr 3 03:15:57 2005 @@ -0,0 +1,92 @@ +/* + * $HeadURL$ + * $Revision$ + * $Date$ + * + * =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + * + * Copyright 1999-2004 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implie= d=2E + * See the License for the specific language governing permissions and + * limitations under the License. + * =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + * + */ + +package org.apache.http.impl; + +import java.io.InputStream; + +import org.apache.http.HttpMutableEntity; + +/** + *

+ *

+ * @author Oleg Kalnichevski + * + * @version $Revision$ + *=20 + * @since 4.0 + */ +public class BasicHttpEntity implements HttpMutableEntity { + =20 + private String contenttype =3D null; + private InputStream instream =3D null; + private long contentlen =3D -1; + private boolean chunked =3D false; + =20 + protected BasicHttpEntity() { + super(); + } + + public long getContentLength() { + return this.contentlen; + } + + public String getContentType() { + return this.contenttype; + } + =20 + public InputStream getInputStream() { + return this.instream; + } + =20 + public boolean isChunked() { + return this.chunked; + } + =20 + public boolean isRepeatable() { + return false; + } + =20 + public void setChunked(boolean b) { + this.chunked =3D b; + } + =20 + public void setContentLength(long len) { + this.contentlen =3D len; + } + =20 + public void setContentType(final String contentType) { + this.contenttype =3D contentType; + } + =20 + public void setInputStream(final InputStream instream) { + this.instream =3D instream;=20 + } + =20 +} Propchange: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/i= mpl/BasicHttpEntity.java ---------------------------------------------------------------------------= --- svn:eol-style =3D native Propchange: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/i= mpl/BasicHttpEntity.java ---------------------------------------------------------------------------= --- svn:keywords =3D Date Author Id Revision HeadURL Propchange: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/i= mpl/BasicHttpEntity.java ---------------------------------------------------------------------------= --- svn:mime-type =3D text/plain