public class HttpResourceLocator extends Object implements TransportResourceLocator
| Constructor and Description |
|---|
HttpResourceLocator(String configName,
org.mule.runtime.extension.api.client.ExtensionsClient client) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getResource(String url)
Retrieves the document's content over http.
|
boolean |
handles(String url)
Given the external document url this method checks if the document can be retrieved by this
TransportResourceLocator or not. |
public HttpResourceLocator(String configName, org.mule.runtime.extension.api.client.ExtensionsClient client)
public boolean handles(String url)
TransportResourceLocator or not.
handles `http` and `https` uris.
handles in interface TransportResourceLocatorurl - the document's urlpublic InputStream getResource(String url)
getResource in interface TransportResourceLocatorurl - the document's urlInputStream representing the document's content.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.