public class Utils extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.gcube.common.core.utils.logging.GCUBELog |
logger |
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
consumeStream(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> stream) |
static String |
getParameterFromWSResource(org.gcube.common.core.informationsystem.client.RPDocument resource,
String field) |
static org.gcube.data.trees.patterns.Pattern |
getPattern(org.gcube.datatransfer.agent.stubs.datatransferagent.AnyHolder h)
Converts a
AnyHolder returned by the service into a Pattern. |
static <E extends org.gcube.common.core.faults.GCUBEFault> |
newFault(E fault,
Throwable cause)
Moved here from data-transfer-common to remove the depdendency on gcf in that
component
Returns a given fault after serialising into it an original cause.
|
static String |
replaceUnderscore(String input) |
static org.gcube.datatransfer.agent.stubs.datatransferagent.AnyHolder |
toHolder(Element e) |
static org.gcube.datatransfer.agent.stubs.datatransferagent.AnyHolder |
toHolder(org.gcube.data.trees.data.Node n)
Transforms a
Node into a AnyHolder accepted by the service. |
static org.gcube.datatransfer.agent.stubs.datatransferagent.AnyHolder |
toHolder(org.gcube.data.trees.patterns.Pattern p) |
public static org.gcube.data.trees.patterns.Pattern getPattern(org.gcube.datatransfer.agent.stubs.datatransferagent.AnyHolder h)
throws Exception
AnyHolder returned by the service into a Pattern.h - the holderException - if the conversion failspublic static <E extends org.gcube.common.core.faults.GCUBEFault> E newFault(E fault,
Throwable cause)
E - the type of the faultfault - the faultcause - the causepublic static org.gcube.datatransfer.agent.stubs.datatransferagent.AnyHolder toHolder(org.gcube.data.trees.patterns.Pattern p)
throws Exception
Exceptionpublic static org.gcube.datatransfer.agent.stubs.datatransferagent.AnyHolder toHolder(Element e)
public static org.gcube.datatransfer.agent.stubs.datatransferagent.AnyHolder toHolder(org.gcube.data.trees.data.Node n)
throws Exception
Node into a AnyHolder accepted by the service.n - the nodeException - if the conversion failspublic static boolean consumeStream(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> stream)
Copyright © 2017. All Rights Reserved.