cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1461774 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
Date Wed, 27 Mar 2013 18:38:45 GMT
Author: sergeyb
Date: Wed Mar 27 18:38:45 2013
New Revision: 1461774

URL: http://svn.apache.org/r1461774
Log:
Making few of WADLGenerator methods protected

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java?rev=1461774&r1=1461773&r2=1461774&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/model/wadl/WadlGenerator.java
Wed Mar 27 18:38:45 2013
@@ -290,7 +290,7 @@ public class WadlGenerator implements Co
         }
     }
     
-    private void handleGrammars(StringBuilder sbApp, StringBuilder sbGrammars,
+    protected void handleGrammars(StringBuilder sbApp, StringBuilder sbGrammars,
                                 SchemaWriter writer, Map<Class<?>, QName> clsMap)
{
         if (writer == null) {
             return;
@@ -309,7 +309,7 @@ public class WadlGenerator implements Co
     }
 
 
-    private void handleResource(StringBuilder sb, Set<Class<?>> jaxbTypes,
+    protected void handleResource(StringBuilder sb, Set<Class<?>> jaxbTypes,
                                 ElementQNameResolver qnameResolver,
                                 Map<Class<?>, QName> clsMap, ClassResourceInfo
cri,
                                 Set<ClassResourceInfo> visitedResources,
@@ -378,7 +378,7 @@ public class WadlGenerator implements Co
         sb.append(">");
     }
 
-    private String getPath(String path) {
+    protected String getPath(String path) {
         String thePath = null;
         if (ignoreForwardSlash && path.startsWith("/") && path.length() >
0) {
             thePath = path.substring(1);
@@ -400,7 +400,7 @@ public class WadlGenerator implements Co
     }
 
     //CHECKSTYLE:OFF
-    private boolean handleOperation(StringBuilder sb, Set<Class<?>> jaxbTypes,
+    protected boolean handleOperation(StringBuilder sb, Set<Class<?>> jaxbTypes,
                                  ElementQNameResolver qnameResolver,
                                  Map<Class<?>, QName> clsMap,
                                  OperationResourceInfo ori,
@@ -530,13 +530,13 @@ public class WadlGenerator implements Co
         sb.append("</resource>");
     }
 
-    private void handlePathAndMatrixClassParams(StringBuilder sb, Map<Parameter, Object>
params,
+    protected void handlePathAndMatrixClassParams(StringBuilder sb, Map<Parameter, Object>
params,
             boolean isJson) {
         doHandleClassParams(sb, params, isJson, ParameterType.PATH);
         doHandleClassParams(sb, params, isJson, ParameterType.MATRIX);
     }
     
-    private void doHandleClassParams(StringBuilder sb, Map<Parameter, Object> params,
+    protected void doHandleClassParams(StringBuilder sb, Map<Parameter, Object> params,
                                      boolean isJson, ParameterType... pType) {
         Set<ParameterType> pTypes = new LinkedHashSet<ParameterType>(Arrays.asList(pType));
         for (Map.Entry<Parameter, Object> entry : params.entrySet()) {
@@ -554,13 +554,13 @@ public class WadlGenerator implements Co
         }
     }
     
-    private void handlePathAndMatrixParams(StringBuilder sb, OperationResourceInfo ori, boolean
isJson) {
+    protected void handlePathAndMatrixParams(StringBuilder sb, OperationResourceInfo ori,
boolean isJson) {
         handleParams(sb, ori, ParameterType.PATH, isJson);
         handleParams(sb, ori, ParameterType.MATRIX, isJson);
     }
 
 
-    private void handleParameter(StringBuilder sb, Set<Class<?>> jaxbTypes,
+    protected void handleParameter(StringBuilder sb, Set<Class<?>> jaxbTypes,
                                  ElementQNameResolver qnameResolver,
                                  Map<Class<?>, QName> clsMap, OperationResourceInfo
ori, Parameter pm,
                                  boolean isJson) {
@@ -578,7 +578,7 @@ public class WadlGenerator implements Co
 
     }
 
-    private void handleParams(StringBuilder sb, OperationResourceInfo ori, ParameterType
type, 
+    protected void handleParams(StringBuilder sb, OperationResourceInfo ori, ParameterType
type, 
             boolean isJson) {
         for (Parameter pm : ori.getParameters()) {
             if (pm.getType() == type) {



Mime
View raw message