Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<!DOCTYPE html><HTML><HEAD><TITLE>Resource external</TITLE><LINK REL='stylesheet' TYPE='text/css' HREF='../../doclet.css' TITLE='Style'/><META http-equiv="Content-Type" content="text/html; charset=UTF-8">
</HEAD><BODY><!--###BEGIN_CONTENT###--><div class="javadoc"><table class='menu menu-top'><colgroup><col/><col/></colgroup><tbody><tr><td class='NavBarCell1' colspan='2'><table><tbody><tr><th><a href='../../overview-summary.html'>Overview</a></th><th><a href='../../overview-index.html'>Index</a></th><th><a href='../../index.html'>Root resource</a></th></tr></tbody></table></td></tr><tr><td class='NavBarCell3'>summary: resource | <a href='#methods-summary'>method</a></td><td class='NavBarCell3'>detail: <a href='#methods-details'>method</a></td></tr></table><dl><h2>Path: / <a href='../../index.html'>{BASE}</a> / <a href='../index.html'>import</a> / external</h2><div class='doc-comment'>Fetch content from an external resource and import it into the LMF system. The importer is selected based on
 the Content-Type header of the HTTP request. Calling the service spawns a separate asynchronous thread. Its
 status can be queried by calling the /status webservice.
<P>
</div><hr/><dt>Resource Methods</dt><dd><table class='info' id='methods-summary'><caption class='TableCaption'>Method Summary</caption><tbody><tr><th class='TableHeader'>Name</th><th class='TableHeader'>Description</th></tr><tr><td><tt><a href='#POST'>POST /{BASE}/import/external?url=…&amp;context=…</a></tt></td><td>Fetch content from an external resource and import it into the LMF system.</td></tr></tbody></table></dd></dl><hr/><table class='info' id='methods-details'><caption class='TableCaption'>Method Detail</caption><tbody><tr><td><a name='POST'></a><h3>POST /{BASE}/import/external</h3><p>Fetch content from an external resource and import it into the LMF system. The importer is selected based on
 the Content-Type header of the HTTP request. Calling the service spawns a separate asynchronous thread. Its
 status can be queried by calling the /status webservice.
<P>
</p><dl><table class='examples'><tr><td><dt>HTTP Example:</dt><dd><pre>POST /{BASE}/import/external?url=…&amp;context=…
Content-Type: …</pre></dd></td><td><dt>API Example:</dt><dd><p><tt>ImportWebService.externalData({'url': <span class='comment'>/* url an optional URL of a remote resource to import */</span>,<br/>&nbsp;&nbsp;'context': <span class='comment'>/* Fetch content from an external resource and import it into the LMF system. */</span>,<br/>&nbsp;&nbsp;'Content-Type': <span class='comment'>/* type the content type of the uploaded content */</span>});</tt></p></dd></td></tr></table><dt><b>Output:</b></dt><dd><tt><span title='javax.ws.rs.core.Response'>Response</span></tt> - OK if the import was successfully started</dd><dt><b>Query parameters:</b></dt><dd><b>url</b> - an optional URL of a remote resource to import</dd><dd><b>context</b></dd><dt><b>Header parameters:</b></dt><dd><b>Content-Type</b> - the content type of the uploaded content</dd>
<DT><B>HTTP return codes:</B></DT><DD><B>200</B> - if the import was successfully started</DD>
<DD><B>400</B> - if the URL argument is not valid</DD>
<DD><B>412</B> - if the content-type header is not present or contains unsupported mime types</DD>
<DD><B>502</B> - if a connection to the URL of the external source cannot be established</DD>

</dl></td></tr></tbody></table><hr/><table class='menu menu-bottom'><colgroup><col/><col/></colgroup><tbody><tr><td class='NavBarCell1' colspan='2'><table><tbody><tr><th><a href='../../overview-summary.html'>Overview</a></th><th><a href='../../overview-index.html'>Index</a></th><th><a href='../../index.html'>Root resource</a></th></tr></tbody></table></td></tr><tr><td class='NavBarCell3'>summary: resource | <a href='#methods-summary'>method</a></td><td class='NavBarCell3'>detail: <a href='#methods-details'>method</a></td></tr></table></div><!--###END_CONTENT###--><hr/><div class='footer'>Generated by <a href='http://www.lunatech-labs.com/open-source/jax-doclets'>Lunatech Labs jax-doclets</a> v0.10.0</div></BODY></HTML>
New to GrepCode? Check out our FAQ X