cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1104230 - in /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs: interceptor/JAXRSInInterceptor.java interceptor/Messages.properties utils/JAXRSUtils.java utils/Messages.properties
Date Tue, 17 May 2011 13:21:08 GMT
Author: sergeyb
Date: Tue May 17 13:21:07 2011
New Revision: 1104230

URL: http://svn.apache.org/viewvc?rev=1104230&view=rev
Log:
[CXF-3509] Making NOT-FOUND messages a bit more informative

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/Messages.properties
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/Messages.properties

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java?rev=1104230&r1=1104229&r2=1104230&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/JAXRSInInterceptor.java
Tue May 17 13:21:07 2011
@@ -142,7 +142,8 @@ public class JAXRSInInterceptor extends 
         if (resource == null) {
             org.apache.cxf.common.i18n.Message errorMsg = 
                 new org.apache.cxf.common.i18n.Message("NO_ROOT_EXC", 
-                                                   BUNDLE, 
+                                                   BUNDLE,
+                                                   message.get(Message.REQUEST_URI),
                                                    rawPath);
             LOG.warning(errorMsg.toString());
 

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/Messages.properties
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/Messages.properties?rev=1104230&r1=1104229&r2=1104230&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/Messages.properties
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/interceptor/Messages.properties
Tue May 17 13:21:07 2011
@@ -20,5 +20,5 @@
 #
 SERIALIZE_ERROR = Error serializing the response, please check the server logs, response
class : {0}.
 NO_MSG_WRITER = No message body writer has been found for response class {0}.
-NO_ROOT_EXC = No root resource matching request path {0} has been found.
+NO_ROOT_EXC = No root resource matching request path {0} has been found, Relative Path: {1}.
Please enable FINE/TRACE log level for more details.
 HEAD_WITHOUT_ENTITY = Entity body returned by GET-supporting resource method will be dropped
as HEAD was the actual http request method 
\ No newline at end of file

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java?rev=1104230&r1=1104229&r2=1104230&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java (original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/JAXRSUtils.java Tue
May 17 13:21:07 2011
@@ -393,6 +393,7 @@ public final class JAXRSUtils {
         org.apache.cxf.common.i18n.Message errorMsg = 
             new org.apache.cxf.common.i18n.Message(name, 
                                                    BUNDLE,
+                                                   message.get(Message.REQUEST_URI),
                                                    path,
                                                    httpMethod,
                                                    requestType.toString(),

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/Messages.properties
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/Messages.properties?rev=1104230&r1=1104229&r2=1104230&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/Messages.properties
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/Messages.properties
Tue May 17 13:21:07 2011
@@ -31,8 +31,8 @@ CLASS_CONSTRUCTOR_FAILURE=Class {0} can 
 CLASS_VALUE_OF_FAILURE=Instance of class {0} can not be created using static valueOf(String)
or fromString(String) methods
 WRONG_PARAMETER_TYPE=Parameter Class {0} has no constructor with single String parameter,
static valueOf(String) or fromString(String) methods
 NO_MSG_READER=No message body reader has been found for request class {0}, ContentType :
{1}.
-NO_SUBRESOURCE_METHOD_FOUND=No operation matching request path {0} is found on subresource,
HTTP Method : {1}, ContentType : {2}, Accept : {3}.
-NO_OP_EXC=No operation matching request path {0} is found, HTTP Method : {1}, ContentType
: {2}, Accept : {3}.
+NO_SUBRESOURCE_METHOD_FOUND=No operation matching request path "{0}" is found on subresource,
Relative Path: {1}, HTTP Method: {2}, ContentType: {3}, Accept: {4}. Please enable FINE/TRACE
log level for more details.
+NO_OP_EXC=No operation matching request path "{0}" is found, Relative Path: {1}, HTTP Method:
{2}, ContentType: {3}, Accept: {4}. Please enable FINE/TRACE log level for more details.
 START_OPER_MATCH=Trying to select a resource operation on the resource class {0}
 START_CRI_MATCH=Trying to select a resource class, request path : {0}
 OPER_SELECTED_POSSIBLY=Resource operation {0} may get selected



Mime
View raw message