Author: ssmiweve
Date: 2008-11-19 08:51:47 +0100 (Wed, 19 Nov 2008)
New Revision: 6949

Modified:
   
trunk/generic.sesam/search-command-control/default/src/main/java/no/sesat/search/mode/command/YoutubeSearchCommand.java
Log:
java.lang.IllegalAccessError: tried to access method 
no.sesat.search.mode.command.AbstractSearchCommand.getParameter(Ljava/lang/String;)Ljava/lang/String;
 from class no.sesat.search.mode.command.YoutubeSearchCommand$

Modified: 
trunk/generic.sesam/search-command-control/default/src/main/java/no/sesat/search/mode/command/YoutubeSearchCommand.java
===================================================================
--- 
trunk/generic.sesam/search-command-control/default/src/main/java/no/sesat/search/mode/command/YoutubeSearchCommand.java
     2008-11-18 20:48:48 UTC (rev 6948)
+++ 
trunk/generic.sesam/search-command-control/default/src/main/java/no/sesat/search/mode/command/YoutubeSearchCommand.java
     2008-11-19 07:51:47 UTC (rev 6949)
@@ -42,16 +42,22 @@
  */
 public class YoutubeSearchCommand extends AbstractXmlSearchCommand {
 
+    // Constants -----------------------------------------------------
+
     private static final Logger LOG = 
Logger.getLogger(YoutubeSearchCommand.class);
 
     private static final String COMMAND_URL_PATTERN =
              
"/feeds/api/videos?vq={0}&orderby={1}&start-index={2}&max-results={3}"
-            +"&format={4}&racy={5}";
+            + "&format={4}&racy={5}";
 
-    private Context cxt;
-    private YoutubeCommandConfig conf;
+    // Static --------------------------------------------------------
+    // Attributes ----------------------------------------------------
 
+    private final Context cxt;
+    private final YoutubeCommandConfig conf;
 
+    // Constructors -------------------------------------------------
+
     public YoutubeSearchCommand(final Context cxt) {
         super(cxt);
         this.cxt = cxt;
@@ -61,25 +67,28 @@
                     public String createRequestURL() {
 
                         return MessageFormat.format(COMMAND_URL_PATTERN,
-                                
YoutubeSearchCommand.this.cxt.getDataModel().getQuery().getUtf8UrlEncoded(),
+                                
cxt.getDataModel().getQuery().getUtf8UrlEncoded(),
                                 (null != getParameter("userSortBy")
                                     ? getParameter("userSortBy")
-                                    : 
YoutubeSearchCommand.this.conf.getSortBy()),
+                                    : conf.getSortBy()),
                                 // first result is 1, not 0
                                 (null != 
YoutubeSearchCommand.this.getParameter("offset")
-                                    ? 
Integer.parseInt(YoutubeSearchCommand.this.getParameter("offset"))+1 : "1"),
-                                
YoutubeSearchCommand.this.conf.getResultsToReturn(),
-                                YoutubeSearchCommand.this.conf.getFormat(),
-                                YoutubeSearchCommand.this.conf.getRacy());
+                                    ? 
Integer.parseInt(YoutubeSearchCommand.this.getParameter("offset"))+1
+                                    : "1"),
+                                conf.getResultsToReturn(),
+                                conf.getFormat(),
+                                conf.getRacy());
                     }
         });
     }
 
+    // Public --------------------------------------------------------
+
     @Override
     @SuppressWarnings("static-access")
     public ResultList<ResultItem> execute() {
 
-        ResultList<ResultItem> result = new BasicResultList<ResultItem>();
+        final ResultList<ResultItem> result = new 
BasicResultList<ResultItem>();
         Document doc;
         try {
             doc = getXmlRestful().getXmlResult();
@@ -110,6 +119,8 @@
         return result;
     }
 
+    // Protected --------------------------------------------------------
+
     @Override
     protected ResultItem createItem(final Element entryEl) {
 
@@ -209,4 +220,11 @@
 
     }
 
+    @Override
+    protected String getParameter(String paramName) {
+        return super.getParameter(paramName);
+    }
+
+    // Private --------------------------------------------------------
+
 }
\ No newline at end of file

_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits

Reply via email to