Author: jliu
Date: Wed Sep 19 19:55:53 2007
New Revision: 577517
URL: http://svn.apache.org/viewvc?rev=577517&view=rev
Log:
Fixed a few typos. Thanks Glen!
Modified:
incubator/cxf/branches/jliu/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSOutInterceptor.java
incubator/cxf/branches/jliu/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/OperationResourceInfo.java
Modified:
incubator/cxf/branches/jliu/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSOutInterceptor.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/branches/jliu/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSOutInterceptor.java?rev=577517&r1=577516&r2=577517&view=diff
==============================================================================
---
incubator/cxf/branches/jliu/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSOutInterceptor.java
(original)
+++
incubator/cxf/branches/jliu/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSOutInterceptor.java
Wed Sep 19 19:55:53 2007
@@ -80,14 +80,14 @@
}*/
//TODO: decide the output media type based on resource
method/resource class/provider
- String[] methodMineTypes =
exchange.get(OperationResourceInfo.class).getProduceMimeTypes();
+ String[] methodMimeTypes =
exchange.get(OperationResourceInfo.class).getProduceMimeTypes();
EntityProvider provider =
((ProviderFactoryImpl)ProviderFactory.getInstance())
- .createEntityProvider(targetType, methodMineTypes, false);
+ .createEntityProvider(targetType, methodMimeTypes, false);
try {
- if (!"*/*".equals(methodMineTypes[0])) {
- message.put(Message.CONTENT_TYPE, methodMineTypes[0]);
+ if (!"*/*".equals(methodMimeTypes[0])) {
+ message.put(Message.CONTENT_TYPE, methodMimeTypes[0]);
}
provider.writeTo(responseObj, null, out);
Modified:
incubator/cxf/branches/jliu/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/OperationResourceInfo.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/branches/jliu/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/OperationResourceInfo.java?rev=577517&r1=577516&r2=577517&view=diff
==============================================================================
---
incubator/cxf/branches/jliu/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/OperationResourceInfo.java
(original)
+++
incubator/cxf/branches/jliu/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/OperationResourceInfo.java
Wed Sep 19 19:55:53 2007
@@ -94,12 +94,12 @@
* these annotations, support for any media type (¡°*¡±) is assumed.
*/
- String[] mineTypes = {"*/*"};
+ String[] mimeTypes = {"*/*"};
ProduceMime c = method.getAnnotation(ProduceMime.class);
if (c != null) {
- mineTypes = c.value();
+ mimeTypes = c.value();
}
- return mineTypes;
+ return mimeTypes;
}
}