Author: kishore
Date: Mon May 1 23:57:37 2017
New Revision: 1793423
URL: http://svn.apache.org/viewvc?rev=1793423&view=rev
Log:
Updated View Specification
Added:
manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/webcrawler/viewSpecification.html.vm
(with props)
Modified:
manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/WebcrawlerConnector.java
Modified:
manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/WebcrawlerConnector.java
URL:
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/WebcrawlerConnector.java?rev=1793423&r1=1793422&r2=1793423&view=diff
==============================================================================
---
manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/WebcrawlerConnector.java
(original)
+++
manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/webcrawler/WebcrawlerConnector.java
Mon May 1 23:57:37 2017
@@ -3045,536 +3045,20 @@ public class WebcrawlerConnector extends
int connectionSequenceNumber)
throws ManifoldCFException, IOException
{
- int j;
- boolean seenAny;
- String seeds = "";
- String inclusions = ".*\n";
- String exclusions = "";
- String inclusionsIndex = ".*\n";
- String exclusionsIndex = "";
- String exclusionsContentIndex = "";
+ final Map<String,Object> velocityContext = new HashMap<>();
+ velocityContext.put("SEQNUM", Integer.toString(connectionSequenceNumber));
- boolean includeMatching = false;
- Set<String> excludedHeaders = new HashSet<String>();
-
- int i = 0;
- while (i < ds.getChildCount())
- {
- SpecificationNode sn = ds.getChild(i++);
- if (sn.getType().equals(WebcrawlerConfig.NODE_SEEDS))
- {
- seeds = sn.getValue();
- if (seeds == null)
- seeds = "";
- }
- else if (sn.getType().equals(WebcrawlerConfig.NODE_INCLUDES))
- {
- inclusions = sn.getValue();
- if (inclusions == null)
- inclusions = "";
- }
- else if (sn.getType().equals(WebcrawlerConfig.NODE_EXCLUDES))
- {
- exclusions = sn.getValue();
- if (exclusions == null)
- exclusions = "";
- }
- else if (sn.getType().equals(WebcrawlerConfig.NODE_INCLUDESINDEX))
- {
- inclusionsIndex = sn.getValue();
- if (inclusionsIndex == null)
- inclusionsIndex = "";
- }
- else if (sn.getType().equals(WebcrawlerConfig.NODE_EXCLUDESINDEX))
- {
- exclusionsIndex = sn.getValue();
- if (exclusionsIndex == null)
- exclusionsIndex = "";
- }
- else if (sn.getType().equals(WebcrawlerConfig.NODE_EXCLUDESCONTENTINDEX))
- {
- exclusionsContentIndex = sn.getValue();
- if (exclusionsContentIndex == null)
- exclusionsContentIndex = "";
- }
- else if (sn.getType().equals(WebcrawlerConfig.NODE_LIMITTOSEEDS))
- {
- String value = sn.getAttributeValue(WebcrawlerConfig.ATTR_VALUE);
- if (value == null || value.equals("false"))
- includeMatching = false;
- else
- includeMatching = true;
- }
- else if (sn.getType().equals(WebcrawlerConfig.NODE_EXCLUDEHEADER))
- {
- String value = sn.getAttributeValue(WebcrawlerConfig.ATTR_VALUE);
- excludedHeaders.add(value);
- }
- }
- out.print(
-"<table class=\"displaytable\">\n"+
-" <tr>\n"+
-" <td class=\"description\"><nobr>" +
Messages.getBodyString(locale,"WebcrawlerConnector.SeedsColon") +
"</nobr></td>\n"+
-" <td class=\"value\">\n"
- );
- try
- {
- java.io.Reader str = new java.io.StringReader(seeds);
- try
- {
- java.io.BufferedReader is = new java.io.BufferedReader(str);
- try
- {
- while (true)
- {
- String nextString = is.readLine();
- if (nextString == null)
- break;
- if (nextString.length() == 0)
- continue;
- out.print(
-" <nobr>"+Encoder.bodyEscape(nextString)+"</nobr><br/>\n"
- );
- }
- }
- finally
- {
- is.close();
- }
- }
- finally
- {
- str.close();
- }
- }
- catch (java.io.IOException e)
- {
- throw new ManifoldCFException("IO error: "+e.getMessage(),e);
- }
- out.print(
-" </td>\n"+
-" </tr>\n"+
-" <tr><td class=\"separator\" colspan=\"2\"><hr/></td></tr>\n"
- );
- i = 0;
- int l = 0;
- seenAny = false;
- while (i < ds.getChildCount())
- {
- SpecificationNode sn = ds.getChild(i++);
- if (sn.getType().equals(WebcrawlerConfig.NODE_URLSPEC))
- {
- if (l == 0)
- {
- out.print(
-" <tr>\n"+
-" <td class=\"description\"><nobr>" +
Messages.getBodyString(locale,"WebcrawlerConnector.URLCanonicalization") +
"</nobr></td>\n"+
-" <td class=\"value\">\n"+
-" <table class=\"formtable\">\n"+
-" <tr class=\"formheaderrow\">\n"+
-" <td class=\"formcolumnheader\"><nobr>" +
Messages.getBodyString(locale,"WebcrawlerConnector.URLRegexp") +
"</nobr></td>\n"+
-" <td class=\"formcolumnheader\"><nobr>" +
Messages.getBodyString(locale,"WebcrawlerConnector.Description") +
"</nobr></td>\n"+
-" <td class=\"formcolumnheader\"><nobr>" +
Messages.getBodyString(locale,"WebcrawlerConnector.Reorder") + "</nobr></td>\n"+
-" <td class=\"formcolumnheader\"><nobr>" +
Messages.getBodyString(locale,"WebcrawlerConnector.RemoveJSPSessions") +
"</nobr></td>\n"+
-" <td class=\"formcolumnheader\"><nobr>" +
Messages.getBodyString(locale,"WebcrawlerConnector.RemoveASPSessions") +
"</nobr></td>\n"+
-" <td class=\"formcolumnheader\"><nobr>" +
Messages.getBodyString(locale,"WebcrawlerConnector.RemovePHPSessions") +
"</nobr></td>\n"+
-" <td class=\"formcolumnheader\"><nobr>" +
Messages.getBodyString(locale,"WebcrawlerConnector.RemoveBVSessions") +
"</nobr></td>\n"+
-" </tr>\n"
- );
- }
- String regexpString =
sn.getAttributeValue(WebcrawlerConfig.ATTR_REGEXP);
- String description =
sn.getAttributeValue(WebcrawlerConfig.ATTR_DESCRIPTION);
- if (description == null)
- description = "";
- String allowReorder =
sn.getAttributeValue(WebcrawlerConfig.ATTR_REORDER);
- String allowReorderOutput;
- if (allowReorder == null || allowReorder.length() == 0)
- allowReorderOutput = Messages.getBodyString(locale,
"WebcrawlerConnector.no");
- else
- allowReorderOutput = Messages.getBodyString(locale,
"WebcrawlerConnector.yes");
- String allowJavaSessionRemoval =
sn.getAttributeValue(WebcrawlerConfig.ATTR_JAVASESSIONREMOVAL);
- String allowJavaSessionRemovalOutput;
- if (allowJavaSessionRemoval == null ||
allowJavaSessionRemoval.length() == 0)
- allowJavaSessionRemovalOutput = Messages.getBodyString(locale,
"WebcrawlerConnector.no");
- else
- allowJavaSessionRemovalOutput = Messages.getBodyString(locale,
"WebcrawlerConnector.yes");
- String allowASPSessionRemoval =
sn.getAttributeValue(WebcrawlerConfig.ATTR_ASPSESSIONREMOVAL);
- String allowASPSessionRemovalOutput;
- if (allowASPSessionRemoval == null || allowASPSessionRemoval.length()
== 0)
- allowASPSessionRemovalOutput = Messages.getBodyString(locale,
"WebcrawlerConnector.no");
- else
- allowASPSessionRemovalOutput = Messages.getBodyString(locale,
"WebcrawlerConnector.yes");
- String allowPHPSessionRemoval =
sn.getAttributeValue(WebcrawlerConfig.ATTR_PHPSESSIONREMOVAL);
- String allowPHPSessionRemovalOutput;
- if (allowPHPSessionRemoval == null || allowPHPSessionRemoval.length()
== 0)
- allowPHPSessionRemovalOutput = Messages.getBodyString(locale,
"WebcrawlerConnector.no");
- else
- allowPHPSessionRemovalOutput = Messages.getBodyString(locale,
"WebcrawlerConnector.yes");
- String allowBVSessionRemoval =
sn.getAttributeValue(WebcrawlerConfig.ATTR_BVSESSIONREMOVAL);
- String allowBVSessionRemovalOutput;
- if (allowBVSessionRemoval == null || allowBVSessionRemoval.length() ==
0)
- allowBVSessionRemovalOutput = Messages.getBodyString(locale,
"WebcrawlerConnector.no");
- else
- allowBVSessionRemovalOutput = Messages.getBodyString(locale,
"WebcrawlerConnector.yes");
-
- out.print(
-" <tr class=\""+(((l % 2)==0)?"evenformrow":"oddformrow")+"\">\n"+
-" <td
class=\"formcolumncell\"><nobr>"+Encoder.bodyEscape(regexpString)+"</nobr></td>\n"+
-" <td
class=\"formcolumncell\">"+Encoder.bodyEscape(description)+"</td>\n"+
-" <td
class=\"formcolumncell\"><nobr>"+allowReorderOutput+"</nobr></td>\n"+
-" <td
class=\"formcolumncell\"><nobr>"+allowJavaSessionRemovalOutput+"</nobr></td>\n"+
-" <td
class=\"formcolumncell\"><nobr>"+allowASPSessionRemovalOutput+"</nobr></td>\n"+
-" <td
class=\"formcolumncell\"><nobr>"+allowPHPSessionRemovalOutput+"</nobr></td>\n"+
-" <td
class=\"formcolumncell\"><nobr>"+allowBVSessionRemovalOutput+"</nobr></td>\n"+
-" </tr>\n"
- );
- l++;
- }
- }
- if (l > 0)
- {
- out.print(
-" </table>\n"+
-" </td>\n"+
-" </tr>\n"
- );
- }
- else
- {
- out.print(
-" <tr><td class=\"message\" colspan=\"2\"><nobr>" +
Messages.getBodyString(locale,"WebcrawlerConnector.NoCanonicalizationSpecified")
+ "</nobr></td></tr>\n"
- );
- }
+ fillInSeedsTab(velocityContext,out,ds);
+ fillInCanonicalizationTab(velocityContext,out,locale,ds);
+ fillInMappingsTab(velocityContext,out,ds);
+ fillInInclusionsTab(velocityContext,out,ds);
+ fillInExclusionsTab(velocityContext,out,ds);
+ fillInSecurityTab(velocityContext,out,ds);
+ fillInMetadataTab(velocityContext,out,ds);
- out.print(
-" <tr><td class=\"separator\" colspan=\"2\"><hr/></td></tr>\n"
- );
- i = 0;
- seenAny = false;
- while (i < ds.getChildCount())
- {
- SpecificationNode sn = ds.getChild(i++);
- if (sn.getType().equals(WebcrawlerConfig.NODE_MAP))
- {
- if (seenAny == false)
- {
- out.print(
-" <tr>\n"+
-" <td
class=\"description\"><nobr>"+Messages.getBodyString(locale,"WebcrawlerConnector.URLMappingsColon")+"</nobr></td>\n"+
-" <td class=\"value\">\n"
- );
- seenAny = true;
- }
- String match = sn.getAttributeValue(WebcrawlerConfig.ATTR_MATCH);
- String map = sn.getAttributeValue(WebcrawlerConfig.ATTR_MAP);
- out.print(
-"
<nobr>"+org.apache.manifoldcf.ui.util.Encoder.bodyEscape(match)+"</nobr>\n"
- );
- if (map != null && map.length() > 0)
- {
- out.print(
-"
--> <nobr>"+org.apache.manifoldcf.ui.util.Encoder.bodyEscape(map)+"</nobr>\n"
- );
- }
- out.print(
-" <br/>\n"
- );
- }
- }
+
Messages.outputResourceWithVelocity(out,locale,"viewSpecification.html.vm",velocityContext);
- if (seenAny)
- {
- out.print(
-" </td>\n"+
-" </tr>\n"
- );
- }
- else
- {
- out.print(
-" <tr><td class=\"message\"
colspan=\"2\"><nobr>"+Messages.getBodyString(locale,"WebcrawlerConnector.NoMappingsSpecifiedWillAcceptAllUrls")+"</nobr></td></tr>\n"
- );
- }
-
- out.print(
-" <tr><td class=\"separator\" colspan=\"2\"><hr/></td></tr>\n"+
-" <tr>\n"+
-" <td class=\"description\"><nobr>" +
Messages.getBodyString(locale,"WebcrawlerConnector.IncludeOnlyHostsMatchingSeeds")
+ "</nobr></td>\n"+
-" <td class=\"value\">\n"+
-"
"+(includeMatching?Messages.getBodyString(locale,"WebcrawlerConnector.yes"):Messages.getBodyString(locale,"WebcrawlerConnector.no"))+"\n"+
-" </td>\n"+
-" </tr>\n"
- );
-
- out.print(
-" <tr><td class=\"separator\" colspan=\"2\"><hr/></td></tr>\n"+
-" <tr>\n"+
-" <td class=\"description\"><nobr>" +
Messages.getBodyString(locale,"WebcrawlerConnector.IncludeInCrawl") +
"</nobr></td>\n"+
-" <td class=\"value\">\n"
- );
- try
- {
- java.io.Reader str = new java.io.StringReader(inclusions);
- try
- {
- java.io.BufferedReader is = new java.io.BufferedReader(str);
- try
- {
- while (true)
- {
- String nextString = is.readLine();
- if (nextString == null)
- break;
- if (nextString.length() == 0)
- continue;
- out.print(
-" <nobr>"+Encoder.bodyEscape(nextString)+"</nobr><br/>\n"
- );
- }
- }
- finally
- {
- is.close();
- }
- }
- finally
- {
- str.close();
- }
- }
- catch (java.io.IOException e)
- {
- throw new ManifoldCFException("IO error: "+e.getMessage(),e);
- }
- out.print(
-" </td>\n"+
-" </tr>\n"+
-" <tr><td class=\"separator\" colspan=\"2\"><hr/></td></tr>\n"+
-" <tr>\n"+
-" <td class=\"description\"><nobr>" +
Messages.getBodyString(locale,"WebcrawlerConnector.IncludeInIndex") +
"</nobr></td>\n"+
-" <td class=\"value\">\n"
- );
- try
- {
- java.io.Reader str = new java.io.StringReader(inclusionsIndex);
- try
- {
- java.io.BufferedReader is = new java.io.BufferedReader(str);
- try
- {
- while (true)
- {
- String nextString = is.readLine();
- if (nextString == null)
- break;
- if (nextString.length() == 0)
- continue;
- out.print(
-" <nobr>"+Encoder.bodyEscape(nextString)+"</nobr><br/>\n"
- );
- }
- }
- finally
- {
- is.close();
- }
- }
- finally
- {
- str.close();
- }
- }
- catch (java.io.IOException e)
- {
- throw new ManifoldCFException("IO error: "+e.getMessage(),e);
- }
- out.print(
-" </td>\n"+
-" </tr>\n"+
-" <tr><td class=\"separator\" colspan=\"2\"><hr/></td></tr>\n"+
-" <tr>\n"+
-" <td class=\"description\"><nobr>" +
Messages.getBodyString(locale,"WebcrawlerConnector.ExcludeFromCrawl") +
"</nobr></td>\n"+
-" <td class=\"value\">\n"
- );
- try
- {
- java.io.Reader str = new java.io.StringReader(exclusions);
- try
- {
- java.io.BufferedReader is = new java.io.BufferedReader(str);
- try
- {
- while (true)
- {
- String nextString = is.readLine();
- if (nextString == null)
- break;
- if (nextString.length() == 0)
- continue;
- out.print(
-" <nobr>"+Encoder.bodyEscape(nextString)+"</nobr><br/>\n"
- );
- }
- }
- finally
- {
- is.close();
- }
- }
- finally
- {
- str.close();
- }
- }
- catch (java.io.IOException e)
- {
- throw new ManifoldCFException("IO error: "+e.getMessage(),e);
- }
- out.print(
-" </td>\n"+
-" </tr>\n"+
-" <tr><td class=\"separator\" colspan=\"2\"><hr/></td></tr>\n"+
-" <tr>\n"+
-" <td class=\"description\"><nobr>" +
Messages.getBodyString(locale,"WebcrawlerConnector.ExcludeFromIndex") +
"</nobr></td>\n"+
-" <td class=\"value\">\n"
- );
- try
- {
- java.io.Reader str = new java.io.StringReader(exclusionsIndex);
- try
- {
- java.io.BufferedReader is = new java.io.BufferedReader(str);
- try
- {
- while (true)
- {
- String nextString = is.readLine();
- if (nextString == null)
- break;
- if (nextString.length() == 0)
- continue;
- out.print(
-" <nobr>"+Encoder.bodyEscape(nextString)+"</nobr><br/>\n"
- );
- }
- }
- finally
- {
- is.close();
- }
- }
- finally
- {
- str.close();
- }
- }
- catch (java.io.IOException e)
- {
- throw new ManifoldCFException("IO error: "+e.getMessage(),e);
- }
- out.print(
-" </td>\n"+
-" </tr>\n"+
-" <tr><td class=\"separator\" colspan=\"2\"><hr/></td></tr>\n"+
-" <tr>\n"+
-" <td class=\"description\"><nobr>" +
Messages.getBodyString(locale,"WebcrawlerConnector.ExcludeContentFromIndex") +
"</nobr></td>\n"+
-" <td class=\"value\">\n"
- );
- try
- {
- java.io.Reader str = new java.io.StringReader(exclusionsContentIndex);
- try
- {
- java.io.BufferedReader is = new java.io.BufferedReader(str);
- try
- {
- while (true)
- {
- String nextString = is.readLine();
- if (nextString == null)
- break;
- if (nextString.length() == 0)
- continue;
- out.print(
-" <nobr>"+Encoder.bodyEscape(nextString)+"</nobr><br/>\n"
- );
- }
- }
- finally
- {
- is.close();
- }
- }
- finally
- {
- str.close();
- }
- }
- catch (java.io.IOException e)
- {
- throw new ManifoldCFException("IO error: "+e.getMessage(),e);
- }
- out.print(
-" </td>\n"+
-" </tr>\n"+
-" \n"+
-" <tr><td class=\"separator\" colspan=\"2\"><hr/></td></tr>\n"
- );
- // Go through looking for access tokens
- seenAny = false;
- i = 0;
- while (i < ds.getChildCount())
- {
- SpecificationNode sn = ds.getChild(i++);
- if (sn.getType().equals(WebcrawlerConfig.NODE_ACCESS))
- {
- if (seenAny == false)
- {
- out.print(
-" <tr>\n"+
-" <td class=\"description\"><nobr>" +
Messages.getBodyString(locale,"WebcrawlerConnector.AccessTokens") +
"</nobr></td>\n"+
-" <td class=\"value\">\n"
- );
- seenAny = true;
- }
- String token = sn.getAttributeValue(WebcrawlerConfig.ATTR_TOKEN);
- out.print(
-" "+Encoder.bodyEscape(token)+"<br/>\n"
- );
- }
- }
-
- if (seenAny)
- {
- out.print(
-" </td>\n"+
-" </tr>\n"
- );
- }
- else
- {
- out.print(
-" <tr><td class=\"message\" colspan=\"2\"><nobr>" +
Messages.getBodyString(locale,"WebcrawlerConnector.NoAccessTokensSpecified") +
"</nobr></td></tr>\n"
- );
- }
- out.print(
-" <tr><td class=\"separator\" colspan=\"2\"><hr/></td></tr>\n"+
-" <tr>\n"+
-" <td
class=\"description\"><nobr>"+Messages.getBodyString(locale,"WebcrawlerConnector.ExcludedHeadersColon")+"</nobr></td>\n"+
-" <td class=\"value\">\n"
- );
- for (String excludedHeader : excludedHeaders)
- {
- out.print(
-" "+Encoder.bodyEscape(excludedHeader)+"<br/>\n"
- );
- }
- out.print(
-" </td>\n"+
-" </tr>\n"+
-"</table>\n"
- );
}
// Protected methods and classes
Added:
manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/webcrawler/viewSpecification.html.vm
URL:
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/webcrawler/viewSpecification.html.vm?rev=1793423&view=auto
==============================================================================
---
manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/webcrawler/viewSpecification.html.vm
(added)
+++
manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/webcrawler/viewSpecification.html.vm
Mon May 1 23:57:37 2017
@@ -0,0 +1,140 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<table class="displaytable">
+ <tr>
+ <td
class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.SeedsColon"))</nobr></td>
+ <td class="value">
+ $Encoder.attributeEscape($SEEDS)
+ </td>
+ </tr>
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+ <tr>
+ <td
class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.URLCanonicalization"))</nobr></td>
+ <td class="value">
+ <table class="formtable">
+ <tr class="formheaderrow">
+ <td
class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.URLRegexp"))</nobr></td>
+ <td
class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.Description"))</nobr></td>
+ <td
class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.Reorder"))</nobr></td>
+ <td
class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.RemoveJSPSessions"))</nobr></td>
+ <td
class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.RemoveASPSessions"))</nobr></td>
+ <td
class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.RemovePHPSessions"))</nobr></td>
+ <td
class="formcolumnheader"><nobr>$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.RemoveBVSessions"))</nobr></td>
+ </tr>
+ #foreach($canonicalizationMap in $CANONICALIZATIONMAPLIST)
+ <tr>
+ <td>$Encoder.bodyEscape($canonicalizationMap["regexpString"])</td>
+ <td>$Encoder.bodyEscape($canonicalizationMap["description"])</td>
+ <td>$canonicalizationMap["allowReorderOutput"]</td>
+ <td>$canonicalizationMap["allowJavaSessionRemovalOutput"]</td>
+ <td>$canonicalizationMap["allowASPSessionRemovalOutput"]</td>
+ <td>$canonicalizationMap["allowPHPSessionRemovalOutput"]</td>
+ <td>$canonicalizationMap["allowBVSessionRemovalOutput"]</td>
+ </tr>
+ #end
+ #if($CANONICALIZATIONMAPLIST.size() == 0)
+ <tr><td class="message"
colspan="2"><nobr>$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.NoCanonicalizationSpecified"))</nobr></td></tr>
+ #end
+ </table>
+ </td>
+ </tr>
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+ #if($REGEXPLIST.size() == 0)
+ <tr><td class="message"
colspan="2"><nobr>$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.NoMappingsSpecifiedWillAcceptAllUrls"))</nobr></td></tr>
+ #else
+ <tr>
+ <td
class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.URLMappingsColon"))</nobr></td>
+ <td class="value">
+ #foreach($REGEXP in $REGEXPLIST)
+ <p><span>$Encoder.bodyEscape($REGEXP)</span> <i class="fa
fa-long-arrow-right" aria-hidden="true"></i>
+ <span>
+ #set( $MATCH = $MATCHSTRINGS.get($foreach.index))
+ #if($MATCH.length() == 0)
+ <as is>
+ #else
+ $Encoder.bodyEscape($MATCH)
+ #end
+ </span></p>
+ #end
+ </td>
+ </tr>
+ #end
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+ <tr>
+ <td
class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.IncludeOnlyHostsMatchingSeeds"))</nobr></td>
+ <td
class="value">#if($INCLUDEMATCHING)$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.yes"))#{else}$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.no"))#{end}</td>
+ </tr>
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+ <tr>
+ <td
class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.IncludeInCrawl"))</nobr></td>
+ <td class="value">$Encoder.bodyEscape($INCLUSIONS)</td>
+ </tr>
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+ <tr>
+ <td
class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.IncludeInIndex"))</nobr></td>
+ <td class="value">$Encoder.bodyEscape($INCLUSIONSINDEX)</td>
+ </tr>
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+ <tr>
+ <td
class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.ExcludeFromCrawl"))</nobr></td>
+ <td class="value">$Encoder.bodyEscape($EXCLUSIONS)</td>
+ </tr>
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+ <tr>
+ <td
class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.ExcludeFromIndex"))</nobr></td>
+ <td class="value">$Encoder.bodyEscape($EXCLUSIONSINDEX)</td>
+ </tr>
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+ <tr>
+ <td
class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.ExcludeContentFromIndex"))</nobr></td>
+ <td class="value">$Encoder.bodyEscape($EXCLUSIONSCONTENTINDEX)</td>
+ </tr>
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+ #if($TOKENS.size() == 0)
+ <tr><td class="message"
colspan="2"><nobr>$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.NoAccessTokensSpecified"))</nobr></td></tr>
+ #else
+ <tr>
+ <td
class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.AccessTokens"))</nobr></td>
+ <td class="value">
+ #foreach($TOKEN in $TOKENS)
+ <p>$Encoder.bodyEscape($TOKEN)</p>
+ #end
+ </td>
+ </tr>
+ #end
+ <tr><td class="separator" colspan="2"><hr/></td></tr>
+ <tr>
+ <td
class="description"><nobr>$Encoder.bodyEscape($ResourceBundle.getString("WebcrawlerConnector.ExcludedHeadersColon"))</nobr></td>
+ <td class="value">
+ #foreach($excludedHeader in $EXCLUDEDHEADERS)
+ <p>$Encoder.bodyEscape($excludedHeader)</p>
+ #end
+ </td>
+ </tr>
+</table>
+
+
+
+
+
+
+
+
+
+
+
Propchange:
manifoldcf/branches/CONNECTORS-1403/connectors/webcrawler/connector/src/main/resources/org/apache/manifoldcf/crawler/connectors/webcrawler/viewSpecification.html.vm
------------------------------------------------------------------------------
svn:eol-style = native