[ 
https://issues.apache.org/jira/browse/CONNECTORS-710?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13681970#comment-13681970
 ] 

Minoru Osuka edited comment on CONNECTORS-710 at 6/13/13 7:27 AM:
------------------------------------------------------------------

I appended the checkbox value to the version string in the 
getDocumentVersions() method.

{code:title=Before}
sb.append(new Long(lastModified).toString()).append(":").append(new 
Long(fileLength).toString());
{code}

{code:title=After}
/*
 * get filepathtouri value
 */
boolean filePathToUri = false;
i = 0;
while (i < spec.getChildCount()) {
  SpecificationNode sn = spec.getChild(i++);
  if (sn.getType().equals("filepathtouri")) {
    filePathToUri = Boolean.valueOf(sn.getValue());
  }
}
:
sb.append(new Long(lastModified).toString()).append(":").append(new 
Long(fileLength).toString()).append(":").append(filePathToUri);
{code}
                
      was (Author: minoru):
    I appended the checkbox value to the version string in the 
getDocumentVersions() method.
                  
> FileConnector should have option of outputting a full http url, not just a 
> file:/ url
> -------------------------------------------------------------------------------------
>
>                 Key: CONNECTORS-710
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-710
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: File system connector
>    Affects Versions: ManifoldCF 1.3
>            Reporter: Minoru Osuka
>            Assignee: Minoru Osuka
>             Fix For: ManifoldCF 1.3
>
>         Attachments: Screen Shot 2013-06-11 at 5.46.55 PM.png
>
>
> I would like to enhance that FileConnector be able to convert from file path 
> to URI.
> FileOutputConnector will output the file path like Wget.
> $OUTPUT_PATH/http/localhost:8345/mcf-crawler-ui/showjobstatus.jsp
> I would like to enhance that FileConector be able to put documentIdentifere 
> like WebConnector.
> Current FileConnector can output id following,
> {code:xml}
> <str 
> name="id">file:/Users/minoru/tmp/out/http/localhost:8345/mcf-crawler-ui/showjobstatus.jsp</str>
> {code}
> Enhanced FileConnector can output id following,
> {code:xml}
> <str 
> name="id">file:/Users/minoru/tmp/out/http/localhost:8345/mcf-crawler-ui/showjobstatus.jsp</str>
> {code}
> or
> {code:xml}<str 
> name="id">http://localhost:8345/mcf-crawler-ui/showjobstatus.jsp</str></str>
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to