abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r663820 - /incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractEntityCollectionAdapter.java
Date Fri, 06 Jun 2008 04:29:52 GMT
Author: jmsnell
Date: Thu Jun  5 21:29:52 2008
New Revision: 663820

URL: http://svn.apache.org/viewvc?rev=663820&view=rev
Log:
https://issues.apache.org/jira/browse/ABDERA-173 - 
AbstractEntityCollectionAdapter.postMedia() returns wrong URI in Location header

Modified:
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractEntityCollectionAdapter.java

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractEntityCollectionAdapter.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractEntityCollectionAdapter.java?rev=663820&r1=663819&r2=663820&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractEntityCollectionAdapter.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractEntityCollectionAdapter.java
Thu Jun  5 21:29:52 2008
@@ -79,26 +79,7 @@
   
   @Override
   public ResponseContext postMedia(RequestContext request) {
-    try {
-      T entryObj = postMedia(request.getContentType(), 
-                             request.getSlug(), 
-                             request.getInputStream(), 
-                             request);
-
-      IRI feedIri = getFeedIRI(entryObj, request);
-
-      Entry entry = request.getAbdera().getFactory().newEntry();
-
-      addEntryDetails(request, entry, feedIri, entryObj);
-
-      String mediaLink = addMediaContent(feedIri, entry, entryObj, request);
-
-      return buildPostMediaEntryResponse(mediaLink, entry);
-    } catch (IOException e) {
-      return new EmptyResponseContext(500);
-    } catch (ResponseContextException e) {
-      return createErrorResponse(e);
-    }
+      return createMediaEntry(request);
   }
   
   @Override



Mime
View raw message