-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DDF-3660 Update CDM in place monitoring to CreateRequests (#3033)
* Update CDM in-place monitoring to send create requests instead of create storage requests * Update LocalResourceRetriever to account for derived content * Remove EventfulFileWrapper and change DurableFileEndpoint to File type
- Loading branch information
1 parent
3b104fd
commit 1aefecf
Showing
38 changed files
with
1,217 additions
and
486 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
import ddf.camel.component.catalog.queryresponsetransformer.QueryResponseTransformerConsumer; | ||
import ddf.camel.component.catalog.queryresponsetransformer.QueryResponseTransformerProducer; | ||
import ddf.catalog.CatalogFramework; | ||
import ddf.mime.MimeTypeMapper; | ||
import org.apache.camel.Consumer; | ||
import org.apache.camel.ExchangePattern; | ||
import org.apache.camel.MultipleConsumersSupport; | ||
|
@@ -38,7 +39,7 @@ | |
* @author [email protected] | ||
*/ | ||
public class CatalogEndpoint extends DefaultEndpoint implements MultipleConsumersSupport { | ||
private static final transient Logger LOGGER = LoggerFactory.getLogger(CatalogEndpoint.class); | ||
private static final Logger LOGGER = LoggerFactory.getLogger(CatalogEndpoint.class); | ||
|
||
private static final String INPUT_TRANSFORMER = "inputtransformer"; | ||
|
||
|
@@ -58,6 +59,8 @@ public class CatalogEndpoint extends DefaultEndpoint implements MultipleConsumer | |
|
||
private CatalogFramework catalogFramework; | ||
|
||
private MimeTypeMapper mimeTypeMapper; | ||
|
||
/** | ||
* Constructs a CatalogEndpoint for the specified custom <code>catalog</code> component. | ||
* | ||
|
@@ -76,14 +79,16 @@ public CatalogEndpoint( | |
String transformerId, | ||
String mimeType, | ||
String contextPath, | ||
CatalogFramework catalogFramework) { | ||
CatalogFramework catalogFramework, | ||
MimeTypeMapper mimeTypeMapper) { | ||
super(uri, component); | ||
LOGGER.debug( | ||
"INSIDE CamelCatalogEndpoint(uri, component, transformerId, contextPath, catalogFramework) constructor"); | ||
this.transformerId = transformerId; | ||
this.mimeType = mimeType; | ||
this.contextPath = contextPath; | ||
this.catalogFramework = catalogFramework; | ||
this.mimeTypeMapper = mimeTypeMapper; | ||
setSynchronous(true); | ||
} | ||
|
||
|
@@ -178,6 +183,10 @@ public String getMimeType() { | |
return mimeType; | ||
} | ||
|
||
public MimeTypeMapper getMimeTypeMapper() { | ||
return mimeTypeMapper; | ||
} | ||
|
||
/* | ||
* (non-Javadoc) | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.