id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
51,200
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java
DomXmlMessageValidator.validateNamespaces
protected void validateNamespaces(Map<String, String> expectedNamespaces, Message receivedMessage) { if (CollectionUtils.isEmpty(expectedNamespaces)) { return; } if (receivedMessage.getPayload() == null || !StringUtils.hasText(receivedMessage.getPayload(String.class))) { throw new Validatio...
java
protected void validateNamespaces(Map<String, String> expectedNamespaces, Message receivedMessage) { if (CollectionUtils.isEmpty(expectedNamespaces)) { return; } if (receivedMessage.getPayload() == null || !StringUtils.hasText(receivedMessage.getPayload(String.class))) { throw new Validatio...
[ "protected", "void", "validateNamespaces", "(", "Map", "<", "String", ",", "String", ">", "expectedNamespaces", ",", "Message", "receivedMessage", ")", "{", "if", "(", "CollectionUtils", ".", "isEmpty", "(", "expectedNamespaces", ")", ")", "{", "return", ";", ...
Validate namespaces in message. The method compares namespace declarations in the root element of the received message to expected namespaces. Prefixes are important too, so differing namespace prefixes will fail the validation. @param expectedNamespaces @param receivedMessage
[ "Validate", "namespaces", "in", "message", ".", "The", "method", "compares", "namespace", "declarations", "in", "the", "root", "element", "of", "the", "received", "message", "to", "expected", "namespaces", ".", "Prefixes", "are", "important", "too", "so", "diffe...
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java#L241-L282
51,201
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java
DomXmlMessageValidator.validateMessageContent
protected void validateMessageContent(Message receivedMessage, Message controlMessage, XmlMessageValidationContext validationContext, TestContext context) { if (controlMessage == null || controlMessage.getPayload() == null) { log.debug("Skip message payload validation as no control messa...
java
protected void validateMessageContent(Message receivedMessage, Message controlMessage, XmlMessageValidationContext validationContext, TestContext context) { if (controlMessage == null || controlMessage.getPayload() == null) { log.debug("Skip message payload validation as no control messa...
[ "protected", "void", "validateMessageContent", "(", "Message", "receivedMessage", ",", "Message", "controlMessage", ",", "XmlMessageValidationContext", "validationContext", ",", "TestContext", "context", ")", "{", "if", "(", "controlMessage", "==", "null", "||", "contro...
Validate message payloads by comparing to a control message. @param receivedMessage @param validationContext @param context
[ "Validate", "message", "payloads", "by", "comparing", "to", "a", "control", "message", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java#L322-L360
51,202
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java
DomXmlMessageValidator.validateXmlHeaderFragment
private void validateXmlHeaderFragment(String receivedHeaderData, String controlHeaderData, XmlMessageValidationContext validationContext, TestContext context) { log.debug("Start XML header data validation ..."); Document received = XMLUtils.parseMessagePayload(receivedHeaderData); ...
java
private void validateXmlHeaderFragment(String receivedHeaderData, String controlHeaderData, XmlMessageValidationContext validationContext, TestContext context) { log.debug("Start XML header data validation ..."); Document received = XMLUtils.parseMessagePayload(receivedHeaderData); ...
[ "private", "void", "validateXmlHeaderFragment", "(", "String", "receivedHeaderData", ",", "String", "controlHeaderData", ",", "XmlMessageValidationContext", "validationContext", ",", "TestContext", "context", ")", "{", "log", ".", "debug", "(", "\"Start XML header data vali...
Validates XML header fragment data. @param receivedHeaderData @param controlHeaderData @param validationContext @param context
[ "Validates", "XML", "header", "fragment", "data", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java#L369-L387
51,203
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java
DomXmlMessageValidator.validateXmlTree
private void validateXmlTree(Node received, Node source, XmlMessageValidationContext validationContext, NamespaceContext namespaceContext, TestContext context) { switch(received.getNodeType()) { case Node.DOCUMENT_TYPE_NODE: doDocumentTypeDefinition(received, source, val...
java
private void validateXmlTree(Node received, Node source, XmlMessageValidationContext validationContext, NamespaceContext namespaceContext, TestContext context) { switch(received.getNodeType()) { case Node.DOCUMENT_TYPE_NODE: doDocumentTypeDefinition(received, source, val...
[ "private", "void", "validateXmlTree", "(", "Node", "received", ",", "Node", "source", ",", "XmlMessageValidationContext", "validationContext", ",", "NamespaceContext", "namespaceContext", ",", "TestContext", "context", ")", "{", "switch", "(", "received", ".", "getNod...
Walk the XML tree and validate all nodes. @param received @param source @param validationContext
[ "Walk", "the", "XML", "tree", "and", "validate", "all", "nodes", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java#L396-L419
51,204
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java
DomXmlMessageValidator.doDocumentTypeDefinition
private void doDocumentTypeDefinition(Node received, Node source, XmlMessageValidationContext validationContext, NamespaceContext namespaceContext, TestContext context) { Assert.isTrue(source instanceof DocumentType, "Missing document type definition in expected xml fragment"); ...
java
private void doDocumentTypeDefinition(Node received, Node source, XmlMessageValidationContext validationContext, NamespaceContext namespaceContext, TestContext context) { Assert.isTrue(source instanceof DocumentType, "Missing document type definition in expected xml fragment"); ...
[ "private", "void", "doDocumentTypeDefinition", "(", "Node", "received", ",", "Node", "source", ",", "XmlMessageValidationContext", "validationContext", ",", "NamespaceContext", "namespaceContext", ",", "TestContext", "context", ")", "{", "Assert", ".", "isTrue", "(", ...
Handle document type definition with validation of publicId and systemId. @param received @param source @param validationContext @param namespaceContext
[ "Handle", "document", "type", "definition", "with", "validation", "of", "publicId", "and", "systemId", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java#L428-L476
51,205
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java
DomXmlMessageValidator.doElement
private void doElement(Node received, Node source, XmlMessageValidationContext validationContext, NamespaceContext namespaceContext, TestContext context) { doElementNameValidation(received, source); doElementNamespaceValidation(received, source); //check if element is ignored eith...
java
private void doElement(Node received, Node source, XmlMessageValidationContext validationContext, NamespaceContext namespaceContext, TestContext context) { doElementNameValidation(received, source); doElementNamespaceValidation(received, source); //check if element is ignored eith...
[ "private", "void", "doElement", "(", "Node", "received", ",", "Node", "source", ",", "XmlMessageValidationContext", "validationContext", ",", "NamespaceContext", "namespaceContext", ",", "TestContext", "context", ")", "{", "doElementNameValidation", "(", "received", ","...
Handle element node. @param received @param source @param validationContext
[ "Handle", "element", "node", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java#L485-L540
51,206
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java
DomXmlMessageValidator.doText
private void doText(Element received, Element source) { if (log.isDebugEnabled()) { log.debug("Validating node value for element: " + received.getLocalName()); } String receivedText = DomUtils.getTextValue(received); String sourceText = DomUtils.getTextValue(source); ...
java
private void doText(Element received, Element source) { if (log.isDebugEnabled()) { log.debug("Validating node value for element: " + received.getLocalName()); } String receivedText = DomUtils.getTextValue(received); String sourceText = DomUtils.getTextValue(source); ...
[ "private", "void", "doText", "(", "Element", "received", ",", "Element", "source", ")", "{", "if", "(", "log", ".", "isDebugEnabled", "(", ")", ")", "{", "log", ".", "debug", "(", "\"Validating node value for element: \"", "+", "received", ".", "getLocalName",...
Handle text node during validation. @param received @param source
[ "Handle", "text", "node", "during", "validation", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java#L548-L574
51,207
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java
DomXmlMessageValidator.doAttribute
private void doAttribute(Node receivedElement, Node receivedAttribute, Node sourceElement, XmlMessageValidationContext validationContext, NamespaceContext namespaceContext, TestContext context) { if (receivedAttribute.getNodeName().startsWith(XMLConstants.XMLNS_ATTRIBUTE)) { return; } Strin...
java
private void doAttribute(Node receivedElement, Node receivedAttribute, Node sourceElement, XmlMessageValidationContext validationContext, NamespaceContext namespaceContext, TestContext context) { if (receivedAttribute.getNodeName().startsWith(XMLConstants.XMLNS_ATTRIBUTE)) { return; } Strin...
[ "private", "void", "doAttribute", "(", "Node", "receivedElement", ",", "Node", "receivedAttribute", ",", "Node", "sourceElement", ",", "XmlMessageValidationContext", "validationContext", ",", "NamespaceContext", "namespaceContext", ",", "TestContext", "context", ")", "{",...
Handle attribute node during validation. @param receivedElement @param receivedAttribute @param sourceElement @param validationContext
[ "Handle", "attribute", "node", "during", "validation", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java#L584-L624
51,208
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java
DomXmlMessageValidator.doNamespaceQualifiedAttributeValidation
private void doNamespaceQualifiedAttributeValidation(Node receivedElement, Node receivedAttribute, Node sourceElement, Node sourceAttribute) { String receivedValue = receivedAttribute.getNodeValue(); String sourceValue = sourceAttribute.getNodeValue(); if (receivedValue.contains(":") && sourceV...
java
private void doNamespaceQualifiedAttributeValidation(Node receivedElement, Node receivedAttribute, Node sourceElement, Node sourceAttribute) { String receivedValue = receivedAttribute.getNodeValue(); String sourceValue = sourceAttribute.getNodeValue(); if (receivedValue.contains(":") && sourceV...
[ "private", "void", "doNamespaceQualifiedAttributeValidation", "(", "Node", "receivedElement", ",", "Node", "receivedAttribute", ",", "Node", "sourceElement", ",", "Node", "sourceAttribute", ")", "{", "String", "receivedValue", "=", "receivedAttribute", ".", "getNodeValue"...
Perform validation on namespace qualified attribute values if present. This includes the validation of namespace presence and equality. @param receivedElement @param receivedAttribute @param sourceElement @param sourceAttribute
[ "Perform", "validation", "on", "namespace", "qualified", "attribute", "values", "if", "present", ".", "This", "includes", "the", "validation", "of", "namespace", "presence", "and", "equality", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java#L634-L668
51,209
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java
DomXmlMessageValidator.doPI
private void doPI(Node received) { if (log.isDebugEnabled()) { log.debug("Ignored processing instruction (" + received.getLocalName() + "=" + received.getNodeValue() + ")"); } }
java
private void doPI(Node received) { if (log.isDebugEnabled()) { log.debug("Ignored processing instruction (" + received.getLocalName() + "=" + received.getNodeValue() + ")"); } }
[ "private", "void", "doPI", "(", "Node", "received", ")", "{", "if", "(", "log", ".", "isDebugEnabled", "(", ")", ")", "{", "log", ".", "debug", "(", "\"Ignored processing instruction (\"", "+", "received", ".", "getLocalName", "(", ")", "+", "\"=\"", "+", ...
Handle processing instruction during validation. @param received
[ "Handle", "processing", "instruction", "during", "validation", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java#L675-L679
51,210
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java
DomXmlMessageValidator.isValidationMatcherExpression
private boolean isValidationMatcherExpression(Node node) { switch (node.getNodeType()) { case Node.ELEMENT_NODE: return node.getFirstChild() != null && StringUtils.hasText(node.getFirstChild().getNodeValue()) && ValidationMatcherUtils.isValidationMatch...
java
private boolean isValidationMatcherExpression(Node node) { switch (node.getNodeType()) { case Node.ELEMENT_NODE: return node.getFirstChild() != null && StringUtils.hasText(node.getFirstChild().getNodeValue()) && ValidationMatcherUtils.isValidationMatch...
[ "private", "boolean", "isValidationMatcherExpression", "(", "Node", "node", ")", "{", "switch", "(", "node", ".", "getNodeType", "(", ")", ")", "{", "case", "Node", ".", "ELEMENT_NODE", ":", "return", "node", ".", "getFirstChild", "(", ")", "!=", "null", "...
Checks whether the given node contains a validation matcher @param node @return true if node value contains validation matcher, false if not
[ "Checks", "whether", "the", "given", "node", "contains", "a", "validation", "matcher" ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java#L703-L716
51,211
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java
DomXmlMessageValidator.addSchemaRepository
public void addSchemaRepository(XsdSchemaRepository schemaRepository) { if (schemaRepositories == null) { schemaRepositories = new ArrayList<XsdSchemaRepository>(); } schemaRepositories.add(schemaRepository); }
java
public void addSchemaRepository(XsdSchemaRepository schemaRepository) { if (schemaRepositories == null) { schemaRepositories = new ArrayList<XsdSchemaRepository>(); } schemaRepositories.add(schemaRepository); }
[ "public", "void", "addSchemaRepository", "(", "XsdSchemaRepository", "schemaRepository", ")", "{", "if", "(", "schemaRepositories", "==", "null", ")", "{", "schemaRepositories", "=", "new", "ArrayList", "<", "XsdSchemaRepository", ">", "(", ")", ";", "}", "schemaR...
Set the schema repository holding all known schema definition files. @param schemaRepository the schemaRepository to set
[ "Set", "the", "schema", "repository", "holding", "all", "known", "schema", "definition", "files", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/DomXmlMessageValidator.java#L745-L751
51,212
citrusframework/citrus
modules/citrus-model/model-core/src/main/java/com/consol/citrus/model/config/core/SchemaRepositoryModelBuilder.java
SchemaRepositoryModelBuilder.addSchema
public SchemaRepositoryModelBuilder addSchema(String id, String location) { SchemaModel schema = new SchemaModel(); schema.setId(id); schema.setLocation(location); if (model.getSchemas() == null) { model.setSchemas(new SchemaRepositoryModel.Schemas()); } mod...
java
public SchemaRepositoryModelBuilder addSchema(String id, String location) { SchemaModel schema = new SchemaModel(); schema.setId(id); schema.setLocation(location); if (model.getSchemas() == null) { model.setSchemas(new SchemaRepositoryModel.Schemas()); } mod...
[ "public", "SchemaRepositoryModelBuilder", "addSchema", "(", "String", "id", ",", "String", "location", ")", "{", "SchemaModel", "schema", "=", "new", "SchemaModel", "(", ")", ";", "schema", ".", "setId", "(", "id", ")", ";", "schema", ".", "setLocation", "("...
Adds new schema by id and location. @param id @param location @return
[ "Adds", "new", "schema", "by", "id", "and", "location", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-model/model-core/src/main/java/com/consol/citrus/model/config/core/SchemaRepositoryModelBuilder.java#L52-L63
51,213
citrusframework/citrus
modules/citrus-model/model-core/src/main/java/com/consol/citrus/model/config/core/SchemaRepositoryModelBuilder.java
SchemaRepositoryModelBuilder.addSchema
public SchemaRepositoryModelBuilder addSchema(SchemaModel schema) { if (model.getSchemas() == null) { model.setSchemas(new SchemaRepositoryModel.Schemas()); } model.getSchemas().getSchemas().add(schema); return this; }
java
public SchemaRepositoryModelBuilder addSchema(SchemaModel schema) { if (model.getSchemas() == null) { model.setSchemas(new SchemaRepositoryModel.Schemas()); } model.getSchemas().getSchemas().add(schema); return this; }
[ "public", "SchemaRepositoryModelBuilder", "addSchema", "(", "SchemaModel", "schema", ")", "{", "if", "(", "model", ".", "getSchemas", "(", ")", "==", "null", ")", "{", "model", ".", "setSchemas", "(", "new", "SchemaRepositoryModel", ".", "Schemas", "(", ")", ...
Adds new schema by instance. @param schema @return
[ "Adds", "new", "schema", "by", "instance", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-model/model-core/src/main/java/com/consol/citrus/model/config/core/SchemaRepositoryModelBuilder.java#L70-L77
51,214
citrusframework/citrus
modules/citrus-model/model-core/src/main/java/com/consol/citrus/model/config/core/SchemaRepositoryModelBuilder.java
SchemaRepositoryModelBuilder.addSchemaReference
public SchemaRepositoryModelBuilder addSchemaReference(String schemaId) { SchemaRepositoryModel.Schemas.Reference schemaRef = new SchemaRepositoryModel.Schemas.Reference(); schemaRef.setSchema(schemaId); if (model.getSchemas() == null) { model.setSchemas(new SchemaRepositoryModel.Sc...
java
public SchemaRepositoryModelBuilder addSchemaReference(String schemaId) { SchemaRepositoryModel.Schemas.Reference schemaRef = new SchemaRepositoryModel.Schemas.Reference(); schemaRef.setSchema(schemaId); if (model.getSchemas() == null) { model.setSchemas(new SchemaRepositoryModel.Sc...
[ "public", "SchemaRepositoryModelBuilder", "addSchemaReference", "(", "String", "schemaId", ")", "{", "SchemaRepositoryModel", ".", "Schemas", ".", "Reference", "schemaRef", "=", "new", "SchemaRepositoryModel", ".", "Schemas", ".", "Reference", "(", ")", ";", "schemaRe...
Add new schema reference by id @param schemaId the schema to reference @return
[ "Add", "new", "schema", "reference", "by", "id" ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-model/model-core/src/main/java/com/consol/citrus/model/config/core/SchemaRepositoryModelBuilder.java#L84-L94
51,215
citrusframework/citrus
modules/citrus-cucumber/src/main/java/com/consol/citrus/cucumber/step/xml/XmlSteps.java
XmlSteps.execute
public void execute(StepTemplate stepTemplate, Object[] args) { Template steps = new Template(); steps.setActions(stepTemplate.getActions()); steps.setActor(stepTemplate.getActor()); TemplateBuilder templateBuilder = new TemplateBuilder(steps) .name(stepTemplate.getName()) ...
java
public void execute(StepTemplate stepTemplate, Object[] args) { Template steps = new Template(); steps.setActions(stepTemplate.getActions()); steps.setActor(stepTemplate.getActor()); TemplateBuilder templateBuilder = new TemplateBuilder(steps) .name(stepTemplate.getName()) ...
[ "public", "void", "execute", "(", "StepTemplate", "stepTemplate", ",", "Object", "[", "]", "args", ")", "{", "Template", "steps", "=", "new", "Template", "(", ")", ";", "steps", ".", "setActions", "(", "stepTemplate", ".", "getActions", "(", ")", ")", ";...
Run template within designer. @param stepTemplate @param args
[ "Run", "template", "within", "designer", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-cucumber/src/main/java/com/consol/citrus/cucumber/step/xml/XmlSteps.java#L45-L70
51,216
citrusframework/citrus
modules/citrus-mail/src/main/java/com/consol/citrus/mail/message/MailMessageConverter.java
MailMessageConverter.createMessageHeaders
protected Map<String,Object> createMessageHeaders(MimeMailMessage msg) throws MessagingException, IOException { Map<String, Object> headers = new HashMap<>(); headers.put(CitrusMailMessageHeaders.MAIL_MESSAGE_ID, msg.getMimeMessage().getMessageID()); headers.put(CitrusMailMessageHeaders.MAIL_FRO...
java
protected Map<String,Object> createMessageHeaders(MimeMailMessage msg) throws MessagingException, IOException { Map<String, Object> headers = new HashMap<>(); headers.put(CitrusMailMessageHeaders.MAIL_MESSAGE_ID, msg.getMimeMessage().getMessageID()); headers.put(CitrusMailMessageHeaders.MAIL_FRO...
[ "protected", "Map", "<", "String", ",", "Object", ">", "createMessageHeaders", "(", "MimeMailMessage", "msg", ")", "throws", "MessagingException", ",", "IOException", "{", "Map", "<", "String", ",", "Object", ">", "headers", "=", "new", "HashMap", "<>", "(", ...
Reads basic message information such as sender, recipients and mail subject to message headers. @param msg @return
[ "Reads", "basic", "message", "information", "such", "as", "sender", "recipients", "and", "mail", "subject", "to", "message", "headers", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-mail/src/main/java/com/consol/citrus/mail/message/MailMessageConverter.java#L142-L155
51,217
citrusframework/citrus
modules/citrus-mail/src/main/java/com/consol/citrus/mail/message/MailMessageConverter.java
MailMessageConverter.handlePart
protected BodyPart handlePart(MimePart part) throws IOException, MessagingException { String contentType = parseContentType(part.getContentType()); if (part.isMimeType("multipart/*")) { return handleMultiPart((Multipart) part.getContent()); } else if (part.isMimeType("text/*")) { ...
java
protected BodyPart handlePart(MimePart part) throws IOException, MessagingException { String contentType = parseContentType(part.getContentType()); if (part.isMimeType("multipart/*")) { return handleMultiPart((Multipart) part.getContent()); } else if (part.isMimeType("text/*")) { ...
[ "protected", "BodyPart", "handlePart", "(", "MimePart", "part", ")", "throws", "IOException", ",", "MessagingException", "{", "String", "contentType", "=", "parseContentType", "(", "part", ".", "getContentType", "(", ")", ")", ";", "if", "(", "part", ".", "isM...
Process message part. Can be a text, binary or multipart instance. @param part @return @throws java.io.IOException
[ "Process", "message", "part", ".", "Can", "be", "a", "text", "binary", "or", "multipart", "instance", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-mail/src/main/java/com/consol/citrus/mail/message/MailMessageConverter.java#L163-L177
51,218
citrusframework/citrus
modules/citrus-mail/src/main/java/com/consol/citrus/mail/message/MailMessageConverter.java
MailMessageConverter.handleMultiPart
private BodyPart handleMultiPart(Multipart body) throws IOException, MessagingException { BodyPart bodyPart = null; for (int i = 0; i < body.getCount(); i++) { MimePart entity = (MimePart) body.getBodyPart(i); if (bodyPart == null) { bodyPart = handlePart(entity)...
java
private BodyPart handleMultiPart(Multipart body) throws IOException, MessagingException { BodyPart bodyPart = null; for (int i = 0; i < body.getCount(); i++) { MimePart entity = (MimePart) body.getBodyPart(i); if (bodyPart == null) { bodyPart = handlePart(entity)...
[ "private", "BodyPart", "handleMultiPart", "(", "Multipart", "body", ")", "throws", "IOException", ",", "MessagingException", "{", "BodyPart", "bodyPart", "=", "null", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "body", ".", "getCount", "(", ")", ...
Construct multipart body with first part being the body content and further parts being the attachments. @param body @return @throws IOException
[ "Construct", "multipart", "body", "with", "first", "part", "being", "the", "body", "content", "and", "further", "parts", "being", "the", "attachments", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-mail/src/main/java/com/consol/citrus/mail/message/MailMessageConverter.java#L185-L199
51,219
citrusframework/citrus
modules/citrus-mail/src/main/java/com/consol/citrus/mail/message/MailMessageConverter.java
MailMessageConverter.handleApplicationContentPart
protected BodyPart handleApplicationContentPart(MimePart applicationData, String contentType) throws IOException, MessagingException { if (applicationData.isMimeType("application/pdf")) { return handleImageBinaryPart(applicationData, contentType); } else if (applicationData.isMimeType("appli...
java
protected BodyPart handleApplicationContentPart(MimePart applicationData, String contentType) throws IOException, MessagingException { if (applicationData.isMimeType("application/pdf")) { return handleImageBinaryPart(applicationData, contentType); } else if (applicationData.isMimeType("appli...
[ "protected", "BodyPart", "handleApplicationContentPart", "(", "MimePart", "applicationData", ",", "String", "contentType", ")", "throws", "IOException", ",", "MessagingException", "{", "if", "(", "applicationData", ".", "isMimeType", "(", "\"application/pdf\"", ")", ")"...
Construct body part form special application data. Based on known application content types delegate to text, image or binary body construction. @param applicationData @param contentType @return @throws IOException
[ "Construct", "body", "part", "form", "special", "application", "data", ".", "Based", "on", "known", "application", "content", "types", "delegate", "to", "text", "image", "or", "binary", "body", "construction", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-mail/src/main/java/com/consol/citrus/mail/message/MailMessageConverter.java#L209-L227
51,220
citrusframework/citrus
modules/citrus-mail/src/main/java/com/consol/citrus/mail/message/MailMessageConverter.java
MailMessageConverter.handleImageBinaryPart
protected BodyPart handleImageBinaryPart(MimePart image, String contentType) throws IOException, MessagingException { ByteArrayOutputStream bos = new ByteArrayOutputStream(); FileCopyUtils.copy(image.getInputStream(), bos); String base64 = Base64.encodeBase64String(bos.toByteArray()); re...
java
protected BodyPart handleImageBinaryPart(MimePart image, String contentType) throws IOException, MessagingException { ByteArrayOutputStream bos = new ByteArrayOutputStream(); FileCopyUtils.copy(image.getInputStream(), bos); String base64 = Base64.encodeBase64String(bos.toByteArray()); re...
[ "protected", "BodyPart", "handleImageBinaryPart", "(", "MimePart", "image", ",", "String", "contentType", ")", "throws", "IOException", ",", "MessagingException", "{", "ByteArrayOutputStream", "bos", "=", "new", "ByteArrayOutputStream", "(", ")", ";", "FileCopyUtils", ...
Construct base64 body part from image data. @param image @param contentType @return @throws IOException
[ "Construct", "base64", "body", "part", "from", "image", "data", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-mail/src/main/java/com/consol/citrus/mail/message/MailMessageConverter.java#L236-L241
51,221
citrusframework/citrus
modules/citrus-mail/src/main/java/com/consol/citrus/mail/message/MailMessageConverter.java
MailMessageConverter.handleBinaryPart
protected BodyPart handleBinaryPart(MimePart mediaPart, String contentType) throws IOException, MessagingException { String contentId = mediaPart.getContentID() != null ? "(" + mediaPart.getContentID() + ")" : ""; return new BodyPart(mediaPart.getFileName() + contentId, contentType); }
java
protected BodyPart handleBinaryPart(MimePart mediaPart, String contentType) throws IOException, MessagingException { String contentId = mediaPart.getContentID() != null ? "(" + mediaPart.getContentID() + ")" : ""; return new BodyPart(mediaPart.getFileName() + contentId, contentType); }
[ "protected", "BodyPart", "handleBinaryPart", "(", "MimePart", "mediaPart", ",", "String", "contentType", ")", "throws", "IOException", ",", "MessagingException", "{", "String", "contentId", "=", "mediaPart", ".", "getContentID", "(", ")", "!=", "null", "?", "\"(\"...
Construct simple body part from binary data just adding file name as content. @param mediaPart @param contentType @return @throws IOException
[ "Construct", "simple", "body", "part", "from", "binary", "data", "just", "adding", "file", "name", "as", "content", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-mail/src/main/java/com/consol/citrus/mail/message/MailMessageConverter.java#L250-L253
51,222
citrusframework/citrus
modules/citrus-mail/src/main/java/com/consol/citrus/mail/message/MailMessageConverter.java
MailMessageConverter.handleTextPart
protected BodyPart handleTextPart(MimePart textPart, String contentType) throws IOException, MessagingException { String content; if (textPart.getContent() instanceof String) { content = (String) textPart.getContent(); } else if (textPart.getContent() instanceof InputStream) { ...
java
protected BodyPart handleTextPart(MimePart textPart, String contentType) throws IOException, MessagingException { String content; if (textPart.getContent() instanceof String) { content = (String) textPart.getContent(); } else if (textPart.getContent() instanceof InputStream) { ...
[ "protected", "BodyPart", "handleTextPart", "(", "MimePart", "textPart", ",", "String", "contentType", ")", "throws", "IOException", ",", "MessagingException", "{", "String", "content", ";", "if", "(", "textPart", ".", "getContent", "(", ")", "instanceof", "String"...
Construct simple binary body part with base64 data. @param textPart @param contentType @return @throws IOException
[ "Construct", "simple", "binary", "body", "part", "with", "base64", "data", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-mail/src/main/java/com/consol/citrus/mail/message/MailMessageConverter.java#L262-L274
51,223
citrusframework/citrus
modules/citrus-mail/src/main/java/com/consol/citrus/mail/message/MailMessageConverter.java
MailMessageConverter.stripMailBodyEnding
private String stripMailBodyEnding(String textBody) throws IOException { BufferedReader reader = null; StringBuilder body = new StringBuilder(); try { reader = new BufferedReader(new StringReader(textBody)); String line = reader.readLine(); while (line != nu...
java
private String stripMailBodyEnding(String textBody) throws IOException { BufferedReader reader = null; StringBuilder body = new StringBuilder(); try { reader = new BufferedReader(new StringReader(textBody)); String line = reader.readLine(); while (line != nu...
[ "private", "String", "stripMailBodyEnding", "(", "String", "textBody", ")", "throws", "IOException", "{", "BufferedReader", "reader", "=", "null", ";", "StringBuilder", "body", "=", "new", "StringBuilder", "(", ")", ";", "try", "{", "reader", "=", "new", "Buff...
Removes SMTP mail body ending which is defined by single '.' character in separate line marking the mail body end of file. @param textBody @return
[ "Removes", "SMTP", "mail", "body", "ending", "which", "is", "defined", "by", "single", ".", "character", "in", "separate", "line", "marking", "the", "mail", "body", "end", "of", "file", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-mail/src/main/java/com/consol/citrus/mail/message/MailMessageConverter.java#L282-L306
51,224
citrusframework/citrus
modules/citrus-mail/src/main/java/com/consol/citrus/mail/message/MailMessageConverter.java
MailMessageConverter.parseContentType
static String parseContentType(String contentType) throws IOException { if (contentType.indexOf(System.getProperty("line.separator")) > 0) { BufferedReader reader = new BufferedReader(new StringReader(contentType)); try { String plainContentType = reader.readLine(); ...
java
static String parseContentType(String contentType) throws IOException { if (contentType.indexOf(System.getProperty("line.separator")) > 0) { BufferedReader reader = new BufferedReader(new StringReader(contentType)); try { String plainContentType = reader.readLine(); ...
[ "static", "String", "parseContentType", "(", "String", "contentType", ")", "throws", "IOException", "{", "if", "(", "contentType", ".", "indexOf", "(", "System", ".", "getProperty", "(", "\"line.separator\"", ")", ")", ">", "0", ")", "{", "BufferedReader", "re...
When content type has multiple lines this method just returns plain content type information in first line. This is the case when multipart mixed content type has boundary information in next line. @param contentType @return @throws IOException
[ "When", "content", "type", "has", "multiple", "lines", "this", "method", "just", "returns", "plain", "content", "type", "information", "in", "first", "line", ".", "This", "is", "the", "case", "when", "multipart", "mixed", "content", "type", "has", "boundary", ...
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-mail/src/main/java/com/consol/citrus/mail/message/MailMessageConverter.java#L343-L364
51,225
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/SoapServerActionBuilder.java
SoapServerActionBuilder.receive
public SoapServerRequestActionBuilder receive() { SoapServerRequestActionBuilder soapServerRequestActionBuilder = new SoapServerRequestActionBuilder(action, soapServer) .withApplicationContext(applicationContext); return soapServerRequestActionBuilder; }
java
public SoapServerRequestActionBuilder receive() { SoapServerRequestActionBuilder soapServerRequestActionBuilder = new SoapServerRequestActionBuilder(action, soapServer) .withApplicationContext(applicationContext); return soapServerRequestActionBuilder; }
[ "public", "SoapServerRequestActionBuilder", "receive", "(", ")", "{", "SoapServerRequestActionBuilder", "soapServerRequestActionBuilder", "=", "new", "SoapServerRequestActionBuilder", "(", "action", ",", "soapServer", ")", ".", "withApplicationContext", "(", "applicationContext...
Generic request builder for receiving SOAP messages on server. @return
[ "Generic", "request", "builder", "for", "receiving", "SOAP", "messages", "on", "server", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/SoapServerActionBuilder.java#L50-L54
51,226
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/SoapServerActionBuilder.java
SoapServerActionBuilder.send
public SoapServerResponseActionBuilder send() { SoapServerResponseActionBuilder soapServerResponseActionBuilder = new SoapServerResponseActionBuilder(action, soapServer) .withApplicationContext(applicationContext); return soapServerResponseActionBuilder; }
java
public SoapServerResponseActionBuilder send() { SoapServerResponseActionBuilder soapServerResponseActionBuilder = new SoapServerResponseActionBuilder(action, soapServer) .withApplicationContext(applicationContext); return soapServerResponseActionBuilder; }
[ "public", "SoapServerResponseActionBuilder", "send", "(", ")", "{", "SoapServerResponseActionBuilder", "soapServerResponseActionBuilder", "=", "new", "SoapServerResponseActionBuilder", "(", "action", ",", "soapServer", ")", ".", "withApplicationContext", "(", "applicationContex...
Generic response builder for sending SOAP response messages to client. @return
[ "Generic", "response", "builder", "for", "sending", "SOAP", "response", "messages", "to", "client", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/SoapServerActionBuilder.java#L60-L64
51,227
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/SoapServerActionBuilder.java
SoapServerActionBuilder.sendFault
public SoapServerFaultResponseActionBuilder sendFault() { SoapServerFaultResponseActionBuilder soapServerResponseActionBuilder = new SoapServerFaultResponseActionBuilder(action, soapServer) .withApplicationContext(applicationContext); return soapServerResponseActionBuilder; }
java
public SoapServerFaultResponseActionBuilder sendFault() { SoapServerFaultResponseActionBuilder soapServerResponseActionBuilder = new SoapServerFaultResponseActionBuilder(action, soapServer) .withApplicationContext(applicationContext); return soapServerResponseActionBuilder; }
[ "public", "SoapServerFaultResponseActionBuilder", "sendFault", "(", ")", "{", "SoapServerFaultResponseActionBuilder", "soapServerResponseActionBuilder", "=", "new", "SoapServerFaultResponseActionBuilder", "(", "action", ",", "soapServer", ")", ".", "withApplicationContext", "(", ...
Generic response builder for sending SOAP fault messages to client. @return
[ "Generic", "response", "builder", "for", "sending", "SOAP", "fault", "messages", "to", "client", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/SoapServerActionBuilder.java#L70-L74
51,228
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/json/JsonPathUtils.java
JsonPathUtils.evaluate
public static Object evaluate(ReadContext readerContext, String jsonPathExpression) { String expression = jsonPathExpression; String jsonPathFunction = null; for (String name : JsonPathFunctions.getSupportedFunctions()) { if (expression.endsWith(String.format(".%s()", name))) { ...
java
public static Object evaluate(ReadContext readerContext, String jsonPathExpression) { String expression = jsonPathExpression; String jsonPathFunction = null; for (String name : JsonPathFunctions.getSupportedFunctions()) { if (expression.endsWith(String.format(".%s()", name))) { ...
[ "public", "static", "Object", "evaluate", "(", "ReadContext", "readerContext", ",", "String", "jsonPathExpression", ")", "{", "String", "expression", "=", "jsonPathExpression", ";", "String", "jsonPathFunction", "=", "null", ";", "for", "(", "String", "name", ":",...
Evaluate JsonPath expression using given read context and return result as object. @param readerContext @param jsonPathExpression @return
[ "Evaluate", "JsonPath", "expression", "using", "given", "read", "context", "and", "return", "result", "as", "object", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/json/JsonPathUtils.java#L60-L96
51,229
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/json/JsonPathUtils.java
JsonPathUtils.evaluateAsString
public static String evaluateAsString(String payload, String jsonPathExpression) { try { JSONParser parser = new JSONParser(JSONParser.MODE_JSON_SIMPLE); Object receivedJson = parser.parse(payload); ReadContext readerContext = JsonPath.parse(receivedJson); return...
java
public static String evaluateAsString(String payload, String jsonPathExpression) { try { JSONParser parser = new JSONParser(JSONParser.MODE_JSON_SIMPLE); Object receivedJson = parser.parse(payload); ReadContext readerContext = JsonPath.parse(receivedJson); return...
[ "public", "static", "String", "evaluateAsString", "(", "String", "payload", ",", "String", "jsonPathExpression", ")", "{", "try", "{", "JSONParser", "parser", "=", "new", "JSONParser", "(", "JSONParser", ".", "MODE_JSON_SIMPLE", ")", ";", "Object", "receivedJson",...
Evaluate JsonPath expression on given payload string and return result as string. @param payload @param jsonPathExpression @return
[ "Evaluate", "JsonPath", "expression", "on", "given", "payload", "string", "and", "return", "result", "as", "string", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/json/JsonPathUtils.java#L104-L114
51,230
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/json/JsonPathUtils.java
JsonPathUtils.evaluateAsString
public static String evaluateAsString(ReadContext readerContext, String jsonPathExpression) { Object jsonPathResult = evaluate(readerContext, jsonPathExpression); if (jsonPathResult instanceof JSONArray) { return ((JSONArray) jsonPathResult).toJSONString(); } else if (jsonPathResult...
java
public static String evaluateAsString(ReadContext readerContext, String jsonPathExpression) { Object jsonPathResult = evaluate(readerContext, jsonPathExpression); if (jsonPathResult instanceof JSONArray) { return ((JSONArray) jsonPathResult).toJSONString(); } else if (jsonPathResult...
[ "public", "static", "String", "evaluateAsString", "(", "ReadContext", "readerContext", ",", "String", "jsonPathExpression", ")", "{", "Object", "jsonPathResult", "=", "evaluate", "(", "readerContext", ",", "jsonPathExpression", ")", ";", "if", "(", "jsonPathResult", ...
Evaluate JsonPath expression using given read context and return result as string. @param readerContext @param jsonPathExpression @return
[ "Evaluate", "JsonPath", "expression", "using", "given", "read", "context", "and", "return", "result", "as", "string", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/json/JsonPathUtils.java#L122-L132
51,231
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/util/XMLUtils.java
XMLUtils.stripWhitespaceNodes
public static void stripWhitespaceNodes(Node element) { Node node, child; for (child = element.getFirstChild(); child != null; child = node) { node = child.getNextSibling(); stripWhitespaceNodes(child); } if (element.getNodeType() == Node.TEXT_NODE && element.get...
java
public static void stripWhitespaceNodes(Node element) { Node node, child; for (child = element.getFirstChild(); child != null; child = node) { node = child.getNextSibling(); stripWhitespaceNodes(child); } if (element.getNodeType() == Node.TEXT_NODE && element.get...
[ "public", "static", "void", "stripWhitespaceNodes", "(", "Node", "element", ")", "{", "Node", "node", ",", "child", ";", "for", "(", "child", "=", "element", ".", "getFirstChild", "(", ")", ";", "child", "!=", "null", ";", "child", "=", "node", ")", "{...
Removes text nodes that are only containing whitespace characters inside a DOM tree. @param element the root node to normalize.
[ "Removes", "text", "nodes", "that", "are", "only", "containing", "whitespace", "characters", "inside", "a", "DOM", "tree", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/util/XMLUtils.java#L153-L163
51,232
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/util/XMLUtils.java
XMLUtils.buildNodeName
private static void buildNodeName(Node node, StringBuffer buffer) { if (node.getParentNode() == null) { return; } buildNodeName(node.getParentNode(), buffer); if (node.getParentNode() != null && node.getParentNode().getParentNode() != null) { buf...
java
private static void buildNodeName(Node node, StringBuffer buffer) { if (node.getParentNode() == null) { return; } buildNodeName(node.getParentNode(), buffer); if (node.getParentNode() != null && node.getParentNode().getParentNode() != null) { buf...
[ "private", "static", "void", "buildNodeName", "(", "Node", "node", ",", "StringBuffer", "buffer", ")", "{", "if", "(", "node", ".", "getParentNode", "(", ")", "==", "null", ")", "{", "return", ";", "}", "buildNodeName", "(", "node", ".", "getParentNode", ...
Builds the node path expression for a node in the DOM tree. @param node in a DOM tree. @param buffer string buffer.
[ "Builds", "the", "node", "path", "expression", "for", "a", "node", "in", "the", "DOM", "tree", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/util/XMLUtils.java#L192-L205
51,233
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/util/XMLUtils.java
XMLUtils.serialize
public static String serialize(Document doc) { LSSerializer serializer = configurer.createLSSerializer(); LSOutput output = configurer.createLSOutput(); String charset = getTargetCharset(doc).displayName(); output.setEncoding(charset); StringWriter writer = new StringWriter(); ...
java
public static String serialize(Document doc) { LSSerializer serializer = configurer.createLSSerializer(); LSOutput output = configurer.createLSOutput(); String charset = getTargetCharset(doc).displayName(); output.setEncoding(charset); StringWriter writer = new StringWriter(); ...
[ "public", "static", "String", "serialize", "(", "Document", "doc", ")", "{", "LSSerializer", "serializer", "=", "configurer", ".", "createLSSerializer", "(", ")", ";", "LSOutput", "output", "=", "configurer", ".", "createLSOutput", "(", ")", ";", "String", "ch...
Serializes a DOM document @param doc @throws CitrusRuntimeException @return serialized XML string
[ "Serializes", "a", "DOM", "document" ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/util/XMLUtils.java#L213-L226
51,234
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/util/XMLUtils.java
XMLUtils.prettyPrint
public static String prettyPrint(String xml) { LSParser parser = configurer.createLSParser(); configurer.setParserConfigParameter(parser, VALIDATE_IF_SCHEMA, false); LSInput input = configurer.createLSInput(); try { Charset charset = getTargetCharset(xml); inpu...
java
public static String prettyPrint(String xml) { LSParser parser = configurer.createLSParser(); configurer.setParserConfigParameter(parser, VALIDATE_IF_SCHEMA, false); LSInput input = configurer.createLSInput(); try { Charset charset = getTargetCharset(xml); inpu...
[ "public", "static", "String", "prettyPrint", "(", "String", "xml", ")", "{", "LSParser", "parser", "=", "configurer", ".", "createLSParser", "(", ")", ";", "configurer", ".", "setParserConfigParameter", "(", "parser", ",", "VALIDATE_IF_SCHEMA", ",", "false", ")"...
Pretty prints a XML string. @param xml @throws CitrusRuntimeException @return pretty printed XML string
[ "Pretty", "prints", "a", "XML", "string", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/util/XMLUtils.java#L234-L257
51,235
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/util/XMLUtils.java
XMLUtils.lookupNamespaces
public static Map<String, String> lookupNamespaces(Node referenceNode) { Map<String, String> namespaces = new HashMap<String, String>(); Node node; if (referenceNode.getNodeType() == Node.DOCUMENT_NODE) { node = referenceNode.getFirstChild(); } else { node = refe...
java
public static Map<String, String> lookupNamespaces(Node referenceNode) { Map<String, String> namespaces = new HashMap<String, String>(); Node node; if (referenceNode.getNodeType() == Node.DOCUMENT_NODE) { node = referenceNode.getFirstChild(); } else { node = refe...
[ "public", "static", "Map", "<", "String", ",", "String", ">", "lookupNamespaces", "(", "Node", "referenceNode", ")", "{", "Map", "<", "String", ",", "String", ">", "namespaces", "=", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")", ";", "...
Look up namespace attribute declarations in the specified node and store them in a binding map, where the key is the namespace prefix and the value is the namespace uri. @param referenceNode XML node to search for namespace declarations. @return map containing namespace prefix - namespace url pairs.
[ "Look", "up", "namespace", "attribute", "declarations", "in", "the", "specified", "node", "and", "store", "them", "in", "a", "binding", "map", "where", "the", "key", "is", "the", "namespace", "prefix", "and", "the", "value", "is", "the", "namespace", "uri", ...
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/util/XMLUtils.java#L267-L291
51,236
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/util/XMLUtils.java
XMLUtils.lookupNamespaces
public static Map<String, String> lookupNamespaces(String xml) { Map<String, String> namespaces = new HashMap<String, String>(); //TODO: handle inner CDATA sections because namespaces they might interfere with real namespaces in xml fragment if (xml.indexOf(XMLConstants.XMLNS_ATTRIBUTE) != -1) ...
java
public static Map<String, String> lookupNamespaces(String xml) { Map<String, String> namespaces = new HashMap<String, String>(); //TODO: handle inner CDATA sections because namespaces they might interfere with real namespaces in xml fragment if (xml.indexOf(XMLConstants.XMLNS_ATTRIBUTE) != -1) ...
[ "public", "static", "Map", "<", "String", ",", "String", ">", "lookupNamespaces", "(", "String", "xml", ")", "{", "Map", "<", "String", ",", "String", ">", "namespaces", "=", "new", "HashMap", "<", "String", ",", "String", ">", "(", ")", ";", "//TODO: ...
Look up namespace attribute declarations in the XML fragment and store them in a binding map, where the key is the namespace prefix and the value is the namespace uri. @param xml XML fragment. @return map containing namespace prefix - namespace uri pairs.
[ "Look", "up", "namespace", "attribute", "declarations", "in", "the", "XML", "fragment", "and", "store", "them", "in", "a", "binding", "map", "where", "the", "key", "is", "the", "namespace", "prefix", "and", "the", "value", "is", "the", "namespace", "uri", ...
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/util/XMLUtils.java#L301-L337
51,237
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/util/XMLUtils.java
XMLUtils.parseMessagePayload
public static Document parseMessagePayload(String messagePayload) { LSParser parser = configurer.createLSParser(); LSInput receivedInput = configurer.createLSInput(); try { Charset charset = getTargetCharset(messagePayload); receivedInput.setByteStream(new ByteArrayInputS...
java
public static Document parseMessagePayload(String messagePayload) { LSParser parser = configurer.createLSParser(); LSInput receivedInput = configurer.createLSInput(); try { Charset charset = getTargetCharset(messagePayload); receivedInput.setByteStream(new ByteArrayInputS...
[ "public", "static", "Document", "parseMessagePayload", "(", "String", "messagePayload", ")", "{", "LSParser", "parser", "=", "configurer", ".", "createLSParser", "(", ")", ";", "LSInput", "receivedInput", "=", "configurer", ".", "createLSInput", "(", ")", ";", "...
Parse message payload with DOM implementation. @param messagePayload @throws CitrusRuntimeException @return DOM document.
[ "Parse", "message", "payload", "with", "DOM", "implementation", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/util/XMLUtils.java#L345-L357
51,238
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/util/XMLUtils.java
XMLUtils.getTargetCharset
public static Charset getTargetCharset(Document doc) { String defaultEncoding = System.getProperty(Citrus.CITRUS_FILE_ENCODING_PROPERTY, System.getenv(Citrus.CITRUS_FILE_ENCODING_ENV)); if (StringUtils.hasText(defaultEncoding)) { return Charset.forName(defaultEncoding); } if...
java
public static Charset getTargetCharset(Document doc) { String defaultEncoding = System.getProperty(Citrus.CITRUS_FILE_ENCODING_PROPERTY, System.getenv(Citrus.CITRUS_FILE_ENCODING_ENV)); if (StringUtils.hasText(defaultEncoding)) { return Charset.forName(defaultEncoding); } if...
[ "public", "static", "Charset", "getTargetCharset", "(", "Document", "doc", ")", "{", "String", "defaultEncoding", "=", "System", ".", "getProperty", "(", "Citrus", ".", "CITRUS_FILE_ENCODING_PROPERTY", ",", "System", ".", "getenv", "(", "Citrus", ".", "CITRUS_FILE...
Try to find encoding for document node. Also supports Citrus default encoding set as System property. @param doc @return
[ "Try", "to", "find", "encoding", "for", "document", "node", ".", "Also", "supports", "Citrus", "default", "encoding", "set", "as", "System", "property", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/util/XMLUtils.java#L365-L377
51,239
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/util/XMLUtils.java
XMLUtils.getTargetCharset
private static Charset getTargetCharset(String messagePayload) throws UnsupportedEncodingException { String defaultEncoding = System.getProperty(Citrus.CITRUS_FILE_ENCODING_PROPERTY, System.getenv(Citrus.CITRUS_FILE_ENCODING_ENV)); if (StringUtils.hasText(defaultEncoding)) { return Charset.f...
java
private static Charset getTargetCharset(String messagePayload) throws UnsupportedEncodingException { String defaultEncoding = System.getProperty(Citrus.CITRUS_FILE_ENCODING_PROPERTY, System.getenv(Citrus.CITRUS_FILE_ENCODING_ENV)); if (StringUtils.hasText(defaultEncoding)) { return Charset.f...
[ "private", "static", "Charset", "getTargetCharset", "(", "String", "messagePayload", ")", "throws", "UnsupportedEncodingException", "{", "String", "defaultEncoding", "=", "System", ".", "getProperty", "(", "Citrus", ".", "CITRUS_FILE_ENCODING_PROPERTY", ",", "System", "...
Try to find target encoding in XML declaration. @param messagePayload XML message payload. @return charsetName if supported.
[ "Try", "to", "find", "target", "encoding", "in", "XML", "declaration", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/util/XMLUtils.java#L385-L427
51,240
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/util/XMLUtils.java
XMLUtils.omitXmlDeclaration
public static String omitXmlDeclaration(String xml) { if (xml.startsWith("<?xml") && xml.contains("?>")) { return xml.substring(xml.indexOf("?>") + 2).trim(); } return xml; }
java
public static String omitXmlDeclaration(String xml) { if (xml.startsWith("<?xml") && xml.contains("?>")) { return xml.substring(xml.indexOf("?>") + 2).trim(); } return xml; }
[ "public", "static", "String", "omitXmlDeclaration", "(", "String", "xml", ")", "{", "if", "(", "xml", ".", "startsWith", "(", "\"<?xml\"", ")", "&&", "xml", ".", "contains", "(", "\"?>\"", ")", ")", "{", "return", "xml", ".", "substring", "(", "xml", "...
Removes leading XML declaration from xml if present. @param xml @return
[ "Removes", "leading", "XML", "declaration", "from", "xml", "if", "present", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/util/XMLUtils.java#L434-L440
51,241
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/xml/schema/WsdlXsdSchema.java
WsdlXsdSchema.loadSchemas
private Resource loadSchemas(Definition definition) throws WSDLException, IOException, TransformerException, TransformerFactoryConfigurationError { Types types = definition.getTypes(); Resource targetXsd = null; Resource firstSchemaInWSDL = null; if (types != null) { List<?>...
java
private Resource loadSchemas(Definition definition) throws WSDLException, IOException, TransformerException, TransformerFactoryConfigurationError { Types types = definition.getTypes(); Resource targetXsd = null; Resource firstSchemaInWSDL = null; if (types != null) { List<?>...
[ "private", "Resource", "loadSchemas", "(", "Definition", "definition", ")", "throws", "WSDLException", ",", "IOException", ",", "TransformerException", ",", "TransformerFactoryConfigurationError", "{", "Types", "types", "=", "definition", ".", "getTypes", "(", ")", ";...
Loads nested schema type definitions from wsdl. @throws IOException @throws WSDLException @throws TransformerFactoryConfigurationError @throws TransformerException
[ "Loads", "nested", "schema", "type", "definitions", "from", "wsdl", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/xml/schema/WsdlXsdSchema.java#L92-L154
51,242
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/xml/schema/WsdlXsdSchema.java
WsdlXsdSchema.inheritNamespaces
@SuppressWarnings("unchecked") private void inheritNamespaces(SchemaImpl schema, Definition wsdl) { Map<String, String> wsdlNamespaces = wsdl.getNamespaces(); for (Entry<String, String> nsEntry: wsdlNamespaces.entrySet()) { if (StringUtils.hasText(nsEntry.getKey())) { ...
java
@SuppressWarnings("unchecked") private void inheritNamespaces(SchemaImpl schema, Definition wsdl) { Map<String, String> wsdlNamespaces = wsdl.getNamespaces(); for (Entry<String, String> nsEntry: wsdlNamespaces.entrySet()) { if (StringUtils.hasText(nsEntry.getKey())) { ...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "private", "void", "inheritNamespaces", "(", "SchemaImpl", "schema", ",", "Definition", "wsdl", ")", "{", "Map", "<", "String", ",", "String", ">", "wsdlNamespaces", "=", "wsdl", ".", "getNamespaces", "(", ")...
Adds WSDL level namespaces to schema definition if necessary. @param schema @param wsdl
[ "Adds", "WSDL", "level", "namespaces", "to", "schema", "definition", "if", "necessary", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/xml/schema/WsdlXsdSchema.java#L161-L176
51,243
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/xml/schema/WsdlXsdSchema.java
WsdlXsdSchema.getWsdlDefinition
private Definition getWsdlDefinition(Resource wsdl) { try { Definition definition; if (wsdl.getURI().toString().startsWith("jar:")) { // Locate WSDL imports in Jar files definition = WSDLFactory.newInstance().newWSDLReader().readWSDL(new JarWSDLLocator(wsd...
java
private Definition getWsdlDefinition(Resource wsdl) { try { Definition definition; if (wsdl.getURI().toString().startsWith("jar:")) { // Locate WSDL imports in Jar files definition = WSDLFactory.newInstance().newWSDLReader().readWSDL(new JarWSDLLocator(wsd...
[ "private", "Definition", "getWsdlDefinition", "(", "Resource", "wsdl", ")", "{", "try", "{", "Definition", "definition", ";", "if", "(", "wsdl", ".", "getURI", "(", ")", ".", "toString", "(", ")", ".", "startsWith", "(", "\"jar:\"", ")", ")", "{", "// Lo...
Reads WSDL definition from resource. @param wsdl @return @throws IOException @throws WSDLException
[ "Reads", "WSDL", "definition", "from", "resource", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/xml/schema/WsdlXsdSchema.java#L185-L201
51,244
citrusframework/citrus
modules/citrus-ftp/src/main/java/com/consol/citrus/ftp/client/FtpClient.java
FtpClient.listFiles
protected FtpMessage listFiles(ListCommand list, TestContext context) { String remoteFilePath = Optional.ofNullable(list.getTarget()) .map(ListCommand.Target::getPath) .map(context::replaceDynamicContentInString) ...
java
protected FtpMessage listFiles(ListCommand list, TestContext context) { String remoteFilePath = Optional.ofNullable(list.getTarget()) .map(ListCommand.Target::getPath) .map(context::replaceDynamicContentInString) ...
[ "protected", "FtpMessage", "listFiles", "(", "ListCommand", "list", ",", "TestContext", "context", ")", "{", "String", "remoteFilePath", "=", "Optional", ".", "ofNullable", "(", "list", ".", "getTarget", "(", ")", ")", ".", "map", "(", "ListCommand", ".", "T...
Perform list files operation and provide file information as response. @param list @param context @return
[ "Perform", "list", "files", "operation", "and", "provide", "file", "information", "as", "response", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-ftp/src/main/java/com/consol/citrus/ftp/client/FtpClient.java#L156-L179
51,245
citrusframework/citrus
modules/citrus-ftp/src/main/java/com/consol/citrus/ftp/client/FtpClient.java
FtpClient.deleteFile
protected FtpMessage deleteFile(DeleteCommand delete, TestContext context) { String remoteFilePath = context.replaceDynamicContentInString(delete.getTarget().getPath()); try { if (!StringUtils.hasText(remoteFilePath)) { return null; } boolean success...
java
protected FtpMessage deleteFile(DeleteCommand delete, TestContext context) { String remoteFilePath = context.replaceDynamicContentInString(delete.getTarget().getPath()); try { if (!StringUtils.hasText(remoteFilePath)) { return null; } boolean success...
[ "protected", "FtpMessage", "deleteFile", "(", "DeleteCommand", "delete", ",", "TestContext", "context", ")", "{", "String", "remoteFilePath", "=", "context", ".", "replaceDynamicContentInString", "(", "delete", ".", "getTarget", "(", ")", ".", "getPath", "(", ")",...
Performs delete file operation. @param delete @param context
[ "Performs", "delete", "file", "operation", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-ftp/src/main/java/com/consol/citrus/ftp/client/FtpClient.java#L186-L235
51,246
citrusframework/citrus
modules/citrus-ftp/src/main/java/com/consol/citrus/ftp/client/FtpClient.java
FtpClient.isDirectory
protected boolean isDirectory(String remoteFilePath) throws IOException { if (!ftpClient.changeWorkingDirectory(remoteFilePath)) { // not a directory or not accessible switch (ftpClient.listFiles(remoteFilePath).length) { case 0: throw new CitrusRuntimeException(...
java
protected boolean isDirectory(String remoteFilePath) throws IOException { if (!ftpClient.changeWorkingDirectory(remoteFilePath)) { // not a directory or not accessible switch (ftpClient.listFiles(remoteFilePath).length) { case 0: throw new CitrusRuntimeException(...
[ "protected", "boolean", "isDirectory", "(", "String", "remoteFilePath", ")", "throws", "IOException", "{", "if", "(", "!", "ftpClient", ".", "changeWorkingDirectory", "(", "remoteFilePath", ")", ")", "{", "// not a directory or not accessible", "switch", "(", "ftpClie...
Check file path type directory or file. @param remoteFilePath @return @throws IOException
[ "Check", "file", "path", "type", "directory", "or", "file", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-ftp/src/main/java/com/consol/citrus/ftp/client/FtpClient.java#L243-L257
51,247
citrusframework/citrus
modules/citrus-ftp/src/main/java/com/consol/citrus/ftp/client/FtpClient.java
FtpClient.storeFile
protected FtpMessage storeFile(PutCommand command, TestContext context) { try { String localFilePath = context.replaceDynamicContentInString(command.getFile().getPath()); String remoteFilePath = addFileNameToTargetPath(localFilePath, context.replaceDynamicContentInString(command.getTarge...
java
protected FtpMessage storeFile(PutCommand command, TestContext context) { try { String localFilePath = context.replaceDynamicContentInString(command.getFile().getPath()); String remoteFilePath = addFileNameToTargetPath(localFilePath, context.replaceDynamicContentInString(command.getTarge...
[ "protected", "FtpMessage", "storeFile", "(", "PutCommand", "command", ",", "TestContext", "context", ")", "{", "try", "{", "String", "localFilePath", "=", "context", ".", "replaceDynamicContentInString", "(", "command", ".", "getFile", "(", ")", ".", "getPath", ...
Performs store file operation. @param command @param context
[ "Performs", "store", "file", "operation", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-ftp/src/main/java/com/consol/citrus/ftp/client/FtpClient.java#L264-L283
51,248
citrusframework/citrus
modules/citrus-ftp/src/main/java/com/consol/citrus/ftp/client/FtpClient.java
FtpClient.getLocalFileInputStream
protected InputStream getLocalFileInputStream(String path, String dataType, TestContext context) throws IOException { if (dataType.equals(DataType.ASCII.name())) { String content = context.replaceDynamicContentInString(FileUtils.readToString(FileUtils.getFileResource(path))); return new ...
java
protected InputStream getLocalFileInputStream(String path, String dataType, TestContext context) throws IOException { if (dataType.equals(DataType.ASCII.name())) { String content = context.replaceDynamicContentInString(FileUtils.readToString(FileUtils.getFileResource(path))); return new ...
[ "protected", "InputStream", "getLocalFileInputStream", "(", "String", "path", ",", "String", "dataType", ",", "TestContext", "context", ")", "throws", "IOException", "{", "if", "(", "dataType", ".", "equals", "(", "DataType", ".", "ASCII", ".", "name", "(", ")...
Constructs local file input stream. When using ASCII data type the test variable replacement is activated otherwise plain byte stream is used. @param path @param dataType @param context @return @throws IOException
[ "Constructs", "local", "file", "input", "stream", ".", "When", "using", "ASCII", "data", "type", "the", "test", "variable", "replacement", "is", "activated", "otherwise", "plain", "byte", "stream", "is", "used", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-ftp/src/main/java/com/consol/citrus/ftp/client/FtpClient.java#L295-L302
51,249
citrusframework/citrus
modules/citrus-ftp/src/main/java/com/consol/citrus/ftp/client/FtpClient.java
FtpClient.retrieveFile
protected FtpMessage retrieveFile(GetCommand command, TestContext context) { try { String remoteFilePath = context.replaceDynamicContentInString(command.getFile().getPath()); String localFilePath = addFileNameToTargetPath(remoteFilePath, context.replaceDynamicContentInString(command.getT...
java
protected FtpMessage retrieveFile(GetCommand command, TestContext context) { try { String remoteFilePath = context.replaceDynamicContentInString(command.getFile().getPath()); String localFilePath = addFileNameToTargetPath(remoteFilePath, context.replaceDynamicContentInString(command.getT...
[ "protected", "FtpMessage", "retrieveFile", "(", "GetCommand", "command", ",", "TestContext", "context", ")", "{", "try", "{", "String", "remoteFilePath", "=", "context", ".", "replaceDynamicContentInString", "(", "command", ".", "getFile", "(", ")", ".", "getPath"...
Performs retrieve file operation. @param command
[ "Performs", "retrieve", "file", "operation", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-ftp/src/main/java/com/consol/citrus/ftp/client/FtpClient.java#L308-L342
51,250
citrusframework/citrus
modules/citrus-ftp/src/main/java/com/consol/citrus/ftp/client/FtpClient.java
FtpClient.getFileType
private int getFileType(String typeInfo) { switch (typeInfo) { case "ASCII": return FTP.ASCII_FILE_TYPE; case "BINARY": return FTP.BINARY_FILE_TYPE; case "EBCDIC": return FTP.EBCDIC_FILE_TYPE; case "LOCAL": ...
java
private int getFileType(String typeInfo) { switch (typeInfo) { case "ASCII": return FTP.ASCII_FILE_TYPE; case "BINARY": return FTP.BINARY_FILE_TYPE; case "EBCDIC": return FTP.EBCDIC_FILE_TYPE; case "LOCAL": ...
[ "private", "int", "getFileType", "(", "String", "typeInfo", ")", "{", "switch", "(", "typeInfo", ")", "{", "case", "\"ASCII\"", ":", "return", "FTP", ".", "ASCII_FILE_TYPE", ";", "case", "\"BINARY\"", ":", "return", "FTP", ".", "BINARY_FILE_TYPE", ";", "case...
Get file type from info string. @param typeInfo @return
[ "Get", "file", "type", "from", "info", "string", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-ftp/src/main/java/com/consol/citrus/ftp/client/FtpClient.java#L349-L362
51,251
citrusframework/citrus
modules/citrus-ftp/src/main/java/com/consol/citrus/ftp/client/FtpClient.java
FtpClient.connectAndLogin
protected void connectAndLogin() throws IOException { if (!ftpClient.isConnected()) { ftpClient.connect(getEndpointConfiguration().getHost(), getEndpointConfiguration().getPort()); if (log.isDebugEnabled()) { log.debug("Connected to FTP server: " + ftpClient.getReplyStri...
java
protected void connectAndLogin() throws IOException { if (!ftpClient.isConnected()) { ftpClient.connect(getEndpointConfiguration().getHost(), getEndpointConfiguration().getPort()); if (log.isDebugEnabled()) { log.debug("Connected to FTP server: " + ftpClient.getReplyStri...
[ "protected", "void", "connectAndLogin", "(", ")", "throws", "IOException", "{", "if", "(", "!", "ftpClient", ".", "isConnected", "(", ")", ")", "{", "ftpClient", ".", "connect", "(", "getEndpointConfiguration", "(", ")", ".", "getHost", "(", ")", ",", "get...
Opens a new connection and performs login with user name and password if set. @throws IOException
[ "Opens", "a", "new", "connection", "and", "performs", "login", "with", "user", "name", "and", "password", "if", "set", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-ftp/src/main/java/com/consol/citrus/ftp/client/FtpClient.java#L388-L419
51,252
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/XmlMarshallingValidationCallback.java
XmlMarshallingValidationCallback.getPayloadSource
private Source getPayloadSource(Object payload) { Source source = null; if (payload instanceof String) { source = new StringSource((String) payload); } else if (payload instanceof File) { source = new StreamSource((File) payload); } else if (payload insta...
java
private Source getPayloadSource(Object payload) { Source source = null; if (payload instanceof String) { source = new StringSource((String) payload); } else if (payload instanceof File) { source = new StreamSource((File) payload); } else if (payload insta...
[ "private", "Source", "getPayloadSource", "(", "Object", "payload", ")", "{", "Source", "source", "=", "null", ";", "if", "(", "payload", "instanceof", "String", ")", "{", "source", "=", "new", "StringSource", "(", "(", "String", ")", "payload", ")", ";", ...
Creates the payload source for unmarshalling. @param payload @return
[ "Creates", "the", "payload", "source", "for", "unmarshalling", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/validation/xml/XmlMarshallingValidationCallback.java#L85-L103
51,253
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/actions/ReceiveTimeoutAction.java
ReceiveTimeoutAction.getOrCreateEndpoint
public Endpoint getOrCreateEndpoint(TestContext context) { if (endpoint != null) { return endpoint; } else if (StringUtils.hasText(endpointUri)) { endpoint = context.getEndpointFactory().create(endpointUri, context); return endpoint; } else { throw...
java
public Endpoint getOrCreateEndpoint(TestContext context) { if (endpoint != null) { return endpoint; } else if (StringUtils.hasText(endpointUri)) { endpoint = context.getEndpointFactory().create(endpointUri, context); return endpoint; } else { throw...
[ "public", "Endpoint", "getOrCreateEndpoint", "(", "TestContext", "context", ")", "{", "if", "(", "endpoint", "!=", "null", ")", "{", "return", "endpoint", ";", "}", "else", "if", "(", "StringUtils", ".", "hasText", "(", "endpointUri", ")", ")", "{", "endpo...
Creates or gets the endpoint instance. @param context @return
[ "Creates", "or", "gets", "the", "endpoint", "instance", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/actions/ReceiveTimeoutAction.java#L100-L109
51,254
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/container/AbstractSuiteActionContainer.java
AbstractSuiteActionContainer.shouldExecute
public boolean shouldExecute(String suiteName, String[] includedGroups) { String baseErrorMessage = "Suite container restrictions did not match %s - do not execute container '%s'"; if (StringUtils.hasText(suiteName) && !CollectionUtils.isEmpty(suiteNames) && ! suiteNames.contains(suiteN...
java
public boolean shouldExecute(String suiteName, String[] includedGroups) { String baseErrorMessage = "Suite container restrictions did not match %s - do not execute container '%s'"; if (StringUtils.hasText(suiteName) && !CollectionUtils.isEmpty(suiteNames) && ! suiteNames.contains(suiteN...
[ "public", "boolean", "shouldExecute", "(", "String", "suiteName", ",", "String", "[", "]", "includedGroups", ")", "{", "String", "baseErrorMessage", "=", "\"Suite container restrictions did not match %s - do not execute container '%s'\"", ";", "if", "(", "StringUtils", ".",...
Checks if this suite actions should execute according to suite name and included test groups. @param suiteName @param includedGroups @return
[ "Checks", "if", "this", "suite", "actions", "should", "execute", "according", "to", "suite", "name", "and", "included", "test", "groups", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/container/AbstractSuiteActionContainer.java#L56-L95
51,255
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/CamelControlBusActionBuilder.java
CamelControlBusActionBuilder.route
public CamelControlBusActionBuilder route(String id, String action) { super.action.setRouteId(id); super.action.setAction(action); return this; }
java
public CamelControlBusActionBuilder route(String id, String action) { super.action.setRouteId(id); super.action.setAction(action); return this; }
[ "public", "CamelControlBusActionBuilder", "route", "(", "String", "id", ",", "String", "action", ")", "{", "super", ".", "action", ".", "setRouteId", "(", "id", ")", ";", "super", ".", "action", ".", "setAction", "(", "action", ")", ";", "return", "this", ...
Sets route action to execute. @param id @param action
[ "Sets", "route", "action", "to", "execute", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/CamelControlBusActionBuilder.java#L43-L47
51,256
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/CamelControlBusActionBuilder.java
CamelControlBusActionBuilder.language
public CamelControlBusActionBuilder language(String language, String expression) { action.setLanguageType(language); action.setLanguageExpression(expression); return this; }
java
public CamelControlBusActionBuilder language(String language, String expression) { action.setLanguageType(language); action.setLanguageExpression(expression); return this; }
[ "public", "CamelControlBusActionBuilder", "language", "(", "String", "language", ",", "String", "expression", ")", "{", "action", ".", "setLanguageType", "(", "language", ")", ";", "action", ".", "setLanguageExpression", "(", "expression", ")", ";", "return", "thi...
Sets a language expression to execute. @param language @param expression @return
[ "Sets", "a", "language", "expression", "to", "execute", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/CamelControlBusActionBuilder.java#L65-L70
51,257
citrusframework/citrus
modules/citrus-http/src/main/java/com/consol/citrus/http/interceptor/LoggingHandlerInterceptor.java
LoggingHandlerInterceptor.handleRequest
public void handleRequest(String request) { if (messageListener != null) { log.debug("Received Http request"); messageListener.onInboundMessage(new RawMessage(request), null); } else { if (log.isDebugEnabled()) { log.debug("Received Http request:" + NE...
java
public void handleRequest(String request) { if (messageListener != null) { log.debug("Received Http request"); messageListener.onInboundMessage(new RawMessage(request), null); } else { if (log.isDebugEnabled()) { log.debug("Received Http request:" + NE...
[ "public", "void", "handleRequest", "(", "String", "request", ")", "{", "if", "(", "messageListener", "!=", "null", ")", "{", "log", ".", "debug", "(", "\"Received Http request\"", ")", ";", "messageListener", ".", "onInboundMessage", "(", "new", "RawMessage", ...
Handle request message and write request to logger. @param request
[ "Handle", "request", "message", "and", "write", "request", "to", "logger", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-http/src/main/java/com/consol/citrus/http/interceptor/LoggingHandlerInterceptor.java#L85-L94
51,258
citrusframework/citrus
modules/citrus-http/src/main/java/com/consol/citrus/http/interceptor/LoggingHandlerInterceptor.java
LoggingHandlerInterceptor.handleResponse
public void handleResponse(String response) { if (messageListener != null) { log.debug("Sending Http response"); messageListener.onOutboundMessage(new RawMessage(response), null); } else { if (log.isDebugEnabled()) { log.debug("Sending Http response:" ...
java
public void handleResponse(String response) { if (messageListener != null) { log.debug("Sending Http response"); messageListener.onOutboundMessage(new RawMessage(response), null); } else { if (log.isDebugEnabled()) { log.debug("Sending Http response:" ...
[ "public", "void", "handleResponse", "(", "String", "response", ")", "{", "if", "(", "messageListener", "!=", "null", ")", "{", "log", ".", "debug", "(", "\"Sending Http response\"", ")", ";", "messageListener", ".", "onOutboundMessage", "(", "new", "RawMessage",...
Handle response message and write content to logger. @param response
[ "Handle", "response", "message", "and", "write", "content", "to", "logger", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-http/src/main/java/com/consol/citrus/http/interceptor/LoggingHandlerInterceptor.java#L100-L109
51,259
citrusframework/citrus
modules/citrus-http/src/main/java/com/consol/citrus/http/interceptor/LoggingHandlerInterceptor.java
LoggingHandlerInterceptor.getRequestContent
private String getRequestContent(HttpServletRequest request) throws IOException { StringBuilder builder = new StringBuilder(); builder.append(request.getProtocol()); builder.append(" "); builder.append(request.getMethod()); builder.append(" "); builder.append(req...
java
private String getRequestContent(HttpServletRequest request) throws IOException { StringBuilder builder = new StringBuilder(); builder.append(request.getProtocol()); builder.append(" "); builder.append(request.getMethod()); builder.append(" "); builder.append(req...
[ "private", "String", "getRequestContent", "(", "HttpServletRequest", "request", ")", "throws", "IOException", "{", "StringBuilder", "builder", "=", "new", "StringBuilder", "(", ")", ";", "builder", ".", "append", "(", "request", ".", "getProtocol", "(", ")", ")"...
Builds raw request message content from Http servlet request. @param request @return @throws IOException
[ "Builds", "raw", "request", "message", "content", "from", "Http", "servlet", "request", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-http/src/main/java/com/consol/citrus/http/interceptor/LoggingHandlerInterceptor.java#L117-L151
51,260
citrusframework/citrus
modules/citrus-jms/src/main/java/com/consol/citrus/jms/endpoint/JmsConsumer.java
JmsConsumer.receive
private javax.jms.Message receive(String destinationName, String selector) { javax.jms.Message receivedJmsMessage; if (log.isDebugEnabled()) { log.debug("Receiving JMS message on destination: '" + destinationName + (StringUtils.hasText(selector) ? "(" + selector + ")" : "") + "'"); ...
java
private javax.jms.Message receive(String destinationName, String selector) { javax.jms.Message receivedJmsMessage; if (log.isDebugEnabled()) { log.debug("Receiving JMS message on destination: '" + destinationName + (StringUtils.hasText(selector) ? "(" + selector + ")" : "") + "'"); ...
[ "private", "javax", ".", "jms", ".", "Message", "receive", "(", "String", "destinationName", ",", "String", "selector", ")", "{", "javax", ".", "jms", ".", "Message", "receivedJmsMessage", ";", "if", "(", "log", ".", "isDebugEnabled", "(", ")", ")", "{", ...
Receive message from destination name. @param destinationName @param selector @return
[ "Receive", "message", "from", "destination", "name", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-jms/src/main/java/com/consol/citrus/jms/endpoint/JmsConsumer.java#L81-L101
51,261
citrusframework/citrus
modules/citrus-jms/src/main/java/com/consol/citrus/jms/endpoint/JmsConsumer.java
JmsConsumer.receive
private javax.jms.Message receive(Destination destination, String selector) { javax.jms.Message receivedJmsMessage; if (log.isDebugEnabled()) { log.debug("Receiving JMS message on destination: '" + endpointConfiguration.getDestinationName(destination) + (StringUtils.hasText(selector) ? "(" ...
java
private javax.jms.Message receive(Destination destination, String selector) { javax.jms.Message receivedJmsMessage; if (log.isDebugEnabled()) { log.debug("Receiving JMS message on destination: '" + endpointConfiguration.getDestinationName(destination) + (StringUtils.hasText(selector) ? "(" ...
[ "private", "javax", ".", "jms", ".", "Message", "receive", "(", "Destination", "destination", ",", "String", "selector", ")", "{", "javax", ".", "jms", ".", "Message", "receivedJmsMessage", ";", "if", "(", "log", ".", "isDebugEnabled", "(", ")", ")", "{", ...
Receive message from destination. @param destination @param selector @return
[ "Receive", "message", "from", "destination", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-jms/src/main/java/com/consol/citrus/jms/endpoint/JmsConsumer.java#L109-L129
51,262
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/validation/xhtml/XhtmlMessageConverter.java
XhtmlMessageConverter.convert
public String convert(String messagePayload) { initialize(); // check if we already have XHTML message content if (messagePayload.contains(XHTML_DOCTYPE_DEFINITION)) { return messagePayload; } else { String xhtmlPayload; StringWriter xhtmlWriter = new...
java
public String convert(String messagePayload) { initialize(); // check if we already have XHTML message content if (messagePayload.contains(XHTML_DOCTYPE_DEFINITION)) { return messagePayload; } else { String xhtmlPayload; StringWriter xhtmlWriter = new...
[ "public", "String", "convert", "(", "String", "messagePayload", ")", "{", "initialize", "(", ")", ";", "// check if we already have XHTML message content", "if", "(", "messagePayload", ".", "contains", "(", "XHTML_DOCTYPE_DEFINITION", ")", ")", "{", "return", "message...
Converts message to XHTML conform representation. @param messagePayload @return
[ "Converts", "message", "to", "XHTML", "conform", "representation", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/validation/xhtml/XhtmlMessageConverter.java#L48-L63
51,263
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/validation/xhtml/XhtmlMessageConverter.java
XhtmlMessageConverter.initialize
public void initialize() { try { if (tidyInstance == null) { tidyInstance = new Tidy(); tidyInstance.setXHTML(true); tidyInstance.setShowWarnings(false); tidyInstance.setQuiet(true); tidyInstance.setEscapeCdata(true); ...
java
public void initialize() { try { if (tidyInstance == null) { tidyInstance = new Tidy(); tidyInstance.setXHTML(true); tidyInstance.setShowWarnings(false); tidyInstance.setQuiet(true); tidyInstance.setEscapeCdata(true); ...
[ "public", "void", "initialize", "(", ")", "{", "try", "{", "if", "(", "tidyInstance", "==", "null", ")", "{", "tidyInstance", "=", "new", "Tidy", "(", ")", ";", "tidyInstance", ".", "setXHTML", "(", "true", ")", ";", "tidyInstance", ".", "setShowWarnings...
Initialize tidy from configuration. @throws IOException
[ "Initialize", "tidy", "from", "configuration", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/validation/xhtml/XhtmlMessageConverter.java#L69-L86
51,264
citrusframework/citrus
modules/citrus-kafka/src/main/java/com/consol/citrus/kafka/embedded/EmbeddedKafkaServer.java
EmbeddedKafkaServer.start
public void start() { if (kafkaServer != null) { log.warn("Found instance of Kafka server - avoid duplicate Kafka server startup"); return; } File logDir = createLogDir(); zookeeper = createZookeeperServer(logDir); serverFactory = createServerFactory(); ...
java
public void start() { if (kafkaServer != null) { log.warn("Found instance of Kafka server - avoid duplicate Kafka server startup"); return; } File logDir = createLogDir(); zookeeper = createZookeeperServer(logDir); serverFactory = createServerFactory(); ...
[ "public", "void", "start", "(", ")", "{", "if", "(", "kafkaServer", "!=", "null", ")", "{", "log", ".", "warn", "(", "\"Found instance of Kafka server - avoid duplicate Kafka server startup\"", ")", ";", "return", ";", "}", "File", "logDir", "=", "createLogDir", ...
Start embedded server instances for Kafka and Zookeeper.
[ "Start", "embedded", "server", "instances", "for", "Kafka", "and", "Zookeeper", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-kafka/src/main/java/com/consol/citrus/kafka/embedded/EmbeddedKafkaServer.java#L86-L118
51,265
citrusframework/citrus
modules/citrus-kafka/src/main/java/com/consol/citrus/kafka/embedded/EmbeddedKafkaServer.java
EmbeddedKafkaServer.stop
public void stop() { if (kafkaServer != null) { try { if (kafkaServer.brokerState().currentState() != (NotRunning.state())) { kafkaServer.shutdown(); kafkaServer.awaitShutdown(); } } catch (Exception e) { ...
java
public void stop() { if (kafkaServer != null) { try { if (kafkaServer.brokerState().currentState() != (NotRunning.state())) { kafkaServer.shutdown(); kafkaServer.awaitShutdown(); } } catch (Exception e) { ...
[ "public", "void", "stop", "(", ")", "{", "if", "(", "kafkaServer", "!=", "null", ")", "{", "try", "{", "if", "(", "kafkaServer", ".", "brokerState", "(", ")", ".", "currentState", "(", ")", "!=", "(", "NotRunning", ".", "state", "(", ")", ")", ")",...
Shutdown embedded Kafka and Zookeeper server instances
[ "Shutdown", "embedded", "Kafka", "and", "Zookeeper", "server", "instances" ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-kafka/src/main/java/com/consol/citrus/kafka/embedded/EmbeddedKafkaServer.java#L123-L148
51,266
citrusframework/citrus
modules/citrus-kafka/src/main/java/com/consol/citrus/kafka/embedded/EmbeddedKafkaServer.java
EmbeddedKafkaServer.createZookeeperServer
protected ZooKeeperServer createZookeeperServer(File logDir) { try { return new ZooKeeperServer(logDir, logDir, 2000); } catch (IOException e) { throw new CitrusRuntimeException("Failed to create embedded zookeeper server", e); } }
java
protected ZooKeeperServer createZookeeperServer(File logDir) { try { return new ZooKeeperServer(logDir, logDir, 2000); } catch (IOException e) { throw new CitrusRuntimeException("Failed to create embedded zookeeper server", e); } }
[ "protected", "ZooKeeperServer", "createZookeeperServer", "(", "File", "logDir", ")", "{", "try", "{", "return", "new", "ZooKeeperServer", "(", "logDir", ",", "logDir", ",", "2000", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "throw", "new", ...
Creates new embedded Zookeeper server. @return
[ "Creates", "new", "embedded", "Zookeeper", "server", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-kafka/src/main/java/com/consol/citrus/kafka/embedded/EmbeddedKafkaServer.java#L164-L170
51,267
citrusframework/citrus
modules/citrus-kafka/src/main/java/com/consol/citrus/kafka/embedded/EmbeddedKafkaServer.java
EmbeddedKafkaServer.createLogDir
protected File createLogDir() { File logDir = Optional.ofNullable(logDirPath) .map(Paths::get) .map(Path::toFile) .orElse(new File(System.getProperty("java.io.tmpdir"))); if (!logDir.exists()) { ...
java
protected File createLogDir() { File logDir = Optional.ofNullable(logDirPath) .map(Paths::get) .map(Path::toFile) .orElse(new File(System.getProperty("java.io.tmpdir"))); if (!logDir.exists()) { ...
[ "protected", "File", "createLogDir", "(", ")", "{", "File", "logDir", "=", "Optional", ".", "ofNullable", "(", "logDirPath", ")", ".", "map", "(", "Paths", "::", "get", ")", ".", "map", "(", "Path", "::", "toFile", ")", ".", "orElse", "(", "new", "Fi...
Creates Zookeeper log directory. By default logs are created in Java temp directory. By default directory is automatically deleted on exit. @return
[ "Creates", "Zookeeper", "log", "directory", ".", "By", "default", "logs", "are", "created", "in", "Java", "temp", "directory", ".", "By", "default", "directory", "is", "automatically", "deleted", "on", "exit", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-kafka/src/main/java/com/consol/citrus/kafka/embedded/EmbeddedKafkaServer.java#L178-L199
51,268
citrusframework/citrus
modules/citrus-kafka/src/main/java/com/consol/citrus/kafka/embedded/EmbeddedKafkaServer.java
EmbeddedKafkaServer.createServerFactory
protected ServerCnxnFactory createServerFactory() { try { ServerCnxnFactory serverFactory = new NIOServerCnxnFactory(); serverFactory.configure(new InetSocketAddress(zookeeperPort), 5000); return serverFactory; } catch (IOException e) { throw new CitrusRun...
java
protected ServerCnxnFactory createServerFactory() { try { ServerCnxnFactory serverFactory = new NIOServerCnxnFactory(); serverFactory.configure(new InetSocketAddress(zookeeperPort), 5000); return serverFactory; } catch (IOException e) { throw new CitrusRun...
[ "protected", "ServerCnxnFactory", "createServerFactory", "(", ")", "{", "try", "{", "ServerCnxnFactory", "serverFactory", "=", "new", "NIOServerCnxnFactory", "(", ")", ";", "serverFactory", ".", "configure", "(", "new", "InetSocketAddress", "(", "zookeeperPort", ")", ...
Create server factory for embedded Zookeeper server instance. @return
[ "Create", "server", "factory", "for", "embedded", "Zookeeper", "server", "instance", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-kafka/src/main/java/com/consol/citrus/kafka/embedded/EmbeddedKafkaServer.java#L205-L213
51,269
citrusframework/citrus
modules/citrus-kafka/src/main/java/com/consol/citrus/kafka/embedded/EmbeddedKafkaServer.java
EmbeddedKafkaServer.createKafkaTopics
protected void createKafkaTopics(Set<String> topics) { Map<String, Object> adminConfigs = new HashMap<>(); adminConfigs.put(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:" + kafkaServerPort); try (AdminClient admin = AdminClient.create(adminConfigs)) { List<NewTopic> newTopi...
java
protected void createKafkaTopics(Set<String> topics) { Map<String, Object> adminConfigs = new HashMap<>(); adminConfigs.put(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:" + kafkaServerPort); try (AdminClient admin = AdminClient.create(adminConfigs)) { List<NewTopic> newTopi...
[ "protected", "void", "createKafkaTopics", "(", "Set", "<", "String", ">", "topics", ")", "{", "Map", "<", "String", ",", "Object", ">", "adminConfigs", "=", "new", "HashMap", "<>", "(", ")", ";", "adminConfigs", ".", "put", "(", "AdminClientConfig", ".", ...
Create topics on embedded Kafka server. @param topics
[ "Create", "topics", "on", "embedded", "Kafka", "server", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-kafka/src/main/java/com/consol/citrus/kafka/embedded/EmbeddedKafkaServer.java#L219-L233
51,270
citrusframework/citrus
modules/citrus-kafka/src/main/java/com/consol/citrus/kafka/embedded/EmbeddedKafkaServer.java
EmbeddedKafkaServer.createBrokerProperties
protected Properties createBrokerProperties(String zooKeeperConnect, int kafkaServerPort, File logDir) { Properties props = new Properties(); props.put(KafkaConfig.BrokerIdProp(), "0"); props.put(KafkaConfig.ZkConnectProp(), zooKeeperConnect); props.put(KafkaConfig.ZkConnectionTimeoutMs...
java
protected Properties createBrokerProperties(String zooKeeperConnect, int kafkaServerPort, File logDir) { Properties props = new Properties(); props.put(KafkaConfig.BrokerIdProp(), "0"); props.put(KafkaConfig.ZkConnectProp(), zooKeeperConnect); props.put(KafkaConfig.ZkConnectionTimeoutMs...
[ "protected", "Properties", "createBrokerProperties", "(", "String", "zooKeeperConnect", ",", "int", "kafkaServerPort", ",", "File", "logDir", ")", "{", "Properties", "props", "=", "new", "Properties", "(", ")", ";", "props", ".", "put", "(", "KafkaConfig", ".", ...
Creates Kafka broker properties. @param zooKeeperConnect @param kafkaServerPort @param logDir @return
[ "Creates", "Kafka", "broker", "properties", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-kafka/src/main/java/com/consol/citrus/kafka/embedded/EmbeddedKafkaServer.java#L242-L266
51,271
citrusframework/citrus
modules/citrus-ws/src/main/java/com/consol/citrus/ws/message/callback/SoapResponseMessageCallback.java
SoapResponseMessageCallback.doWithMessage
public void doWithMessage(WebServiceMessage responseMessage) throws IOException, TransformerException { // convert and set response for later access via getResponse(): response = endpointConfiguration.getMessageConverter().convertInbound(responseMessage, endpointConfiguration, context); }
java
public void doWithMessage(WebServiceMessage responseMessage) throws IOException, TransformerException { // convert and set response for later access via getResponse(): response = endpointConfiguration.getMessageConverter().convertInbound(responseMessage, endpointConfiguration, context); }
[ "public", "void", "doWithMessage", "(", "WebServiceMessage", "responseMessage", ")", "throws", "IOException", ",", "TransformerException", "{", "// convert and set response for later access via getResponse():", "response", "=", "endpointConfiguration", ".", "getMessageConverter", ...
Callback method called with actual web service response message. Method constructs a Spring Integration message from this web service message for further processing.
[ "Callback", "method", "called", "with", "actual", "web", "service", "response", "message", ".", "Method", "constructs", "a", "Spring", "Integration", "message", "from", "this", "web", "service", "message", "for", "further", "processing", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-ws/src/main/java/com/consol/citrus/ws/message/callback/SoapResponseMessageCallback.java#L59-L62
51,272
citrusframework/citrus
modules/citrus-vertx/src/main/java/com/consol/citrus/vertx/endpoint/VertxSyncConsumer.java
VertxSyncConsumer.saveReplyDestination
public void saveReplyDestination(Message receivedMessage, TestContext context) { if (receivedMessage.getHeader(CitrusVertxMessageHeaders.VERTX_REPLY_ADDRESS) != null) { String correlationKeyName = endpointConfiguration.getCorrelator().getCorrelationKeyName(getName()); String correlationK...
java
public void saveReplyDestination(Message receivedMessage, TestContext context) { if (receivedMessage.getHeader(CitrusVertxMessageHeaders.VERTX_REPLY_ADDRESS) != null) { String correlationKeyName = endpointConfiguration.getCorrelator().getCorrelationKeyName(getName()); String correlationK...
[ "public", "void", "saveReplyDestination", "(", "Message", "receivedMessage", ",", "TestContext", "context", ")", "{", "if", "(", "receivedMessage", ".", "getHeader", "(", "CitrusVertxMessageHeaders", ".", "VERTX_REPLY_ADDRESS", ")", "!=", "null", ")", "{", "String",...
Store the reply address either straight forward or with a given message correlation key. @param receivedMessage @param context
[ "Store", "the", "reply", "address", "either", "straight", "forward", "or", "with", "a", "given", "message", "correlation", "key", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-vertx/src/main/java/com/consol/citrus/vertx/endpoint/VertxSyncConsumer.java#L97-L107
51,273
citrusframework/citrus
modules/citrus-zookeeper/src/main/java/com/consol/citrus/zookeeper/client/ZooClient.java
ZooClient.createZooKeeperClient
private ZooKeeper createZooKeeperClient() throws IOException { ZooClientConfig config = getZookeeperClientConfig(); return new ZooKeeper(config.getUrl(), config.getTimeout(), getConnectionWatcher()); }
java
private ZooKeeper createZooKeeperClient() throws IOException { ZooClientConfig config = getZookeeperClientConfig(); return new ZooKeeper(config.getUrl(), config.getTimeout(), getConnectionWatcher()); }
[ "private", "ZooKeeper", "createZooKeeperClient", "(", ")", "throws", "IOException", "{", "ZooClientConfig", "config", "=", "getZookeeperClientConfig", "(", ")", ";", "return", "new", "ZooKeeper", "(", "config", ".", "getUrl", "(", ")", ",", "config", ".", "getTi...
Creates a new Zookeeper client instance with configuration. @return
[ "Creates", "a", "new", "Zookeeper", "client", "instance", "with", "configuration", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-zookeeper/src/main/java/com/consol/citrus/zookeeper/client/ZooClient.java#L65-L68
51,274
citrusframework/citrus
modules/citrus-zookeeper/src/main/java/com/consol/citrus/zookeeper/client/ZooClient.java
ZooClient.getZooKeeperClient
public ZooKeeper getZooKeeperClient() { if (zookeeper == null) { try { zookeeper = createZooKeeperClient(); int retryAttempts = 5; while(!zookeeper.getState().isConnected() && retryAttempts > 0) { LOG.debug("connecting..."); ...
java
public ZooKeeper getZooKeeperClient() { if (zookeeper == null) { try { zookeeper = createZooKeeperClient(); int retryAttempts = 5; while(!zookeeper.getState().isConnected() && retryAttempts > 0) { LOG.debug("connecting..."); ...
[ "public", "ZooKeeper", "getZooKeeperClient", "(", ")", "{", "if", "(", "zookeeper", "==", "null", ")", "{", "try", "{", "zookeeper", "=", "createZooKeeperClient", "(", ")", ";", "int", "retryAttempts", "=", "5", ";", "while", "(", "!", "zookeeper", ".", ...
Constructs or gets the zookeeper client implementation. @return
[ "Constructs", "or", "gets", "the", "zookeeper", "client", "implementation", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-zookeeper/src/main/java/com/consol/citrus/zookeeper/client/ZooClient.java#L74-L91
51,275
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/endpoint/DefaultEndpointFactory.java
DefaultEndpointFactory.loadEndpointComponentProperties
private void loadEndpointComponentProperties() { try { endpointComponentProperties = PropertiesLoaderUtils.loadProperties(new ClassPathResource("com/consol/citrus/endpoint/endpoint.components")); } catch (IOException e) { log.warn("Unable to laod default endpoint components from ...
java
private void loadEndpointComponentProperties() { try { endpointComponentProperties = PropertiesLoaderUtils.loadProperties(new ClassPathResource("com/consol/citrus/endpoint/endpoint.components")); } catch (IOException e) { log.warn("Unable to laod default endpoint components from ...
[ "private", "void", "loadEndpointComponentProperties", "(", ")", "{", "try", "{", "endpointComponentProperties", "=", "PropertiesLoaderUtils", ".", "loadProperties", "(", "new", "ClassPathResource", "(", "\"com/consol/citrus/endpoint/endpoint.components\"", ")", ")", ";", "}...
Loads property file from classpath holding default endpoint component definitions in Citrus.
[ "Loads", "property", "file", "from", "classpath", "holding", "default", "endpoint", "component", "definitions", "in", "Citrus", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/endpoint/DefaultEndpointFactory.java#L192-L198
51,276
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/endpoint/DefaultEndpointFactory.java
DefaultEndpointFactory.loadEndpointParserProperties
private void loadEndpointParserProperties() { try { endpointParserProperties = PropertiesLoaderUtils.loadProperties(new ClassPathResource("com/consol/citrus/endpoint/endpoint.parser")); } catch (IOException e) { log.warn("Unable to laod default endpoint annotation parsers from re...
java
private void loadEndpointParserProperties() { try { endpointParserProperties = PropertiesLoaderUtils.loadProperties(new ClassPathResource("com/consol/citrus/endpoint/endpoint.parser")); } catch (IOException e) { log.warn("Unable to laod default endpoint annotation parsers from re...
[ "private", "void", "loadEndpointParserProperties", "(", ")", "{", "try", "{", "endpointParserProperties", "=", "PropertiesLoaderUtils", ".", "loadProperties", "(", "new", "ClassPathResource", "(", "\"com/consol/citrus/endpoint/endpoint.parser\"", ")", ")", ";", "}", "catc...
Loads property file from classpath holding default endpoint annotation parser definitions in Citrus.
[ "Loads", "property", "file", "from", "classpath", "holding", "default", "endpoint", "annotation", "parser", "definitions", "in", "Citrus", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/endpoint/DefaultEndpointFactory.java#L203-L209
51,277
citrusframework/citrus
modules/citrus-ws/src/main/java/com/consol/citrus/ws/addressing/WsAddressingHeaders.java
WsAddressingHeaders.setAction
public void setAction(String action) { try { this.action = new URI(action); } catch (URISyntaxException e) { throw new CitrusRuntimeException("Invalid action uri", e); } }
java
public void setAction(String action) { try { this.action = new URI(action); } catch (URISyntaxException e) { throw new CitrusRuntimeException("Invalid action uri", e); } }
[ "public", "void", "setAction", "(", "String", "action", ")", "{", "try", "{", "this", ".", "action", "=", "new", "URI", "(", "action", ")", ";", "}", "catch", "(", "URISyntaxException", "e", ")", "{", "throw", "new", "CitrusRuntimeException", "(", "\"Inv...
Sets the action from uri string. @param action the action to set
[ "Sets", "the", "action", "from", "uri", "string", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-ws/src/main/java/com/consol/citrus/ws/addressing/WsAddressingHeaders.java#L90-L96
51,278
citrusframework/citrus
modules/citrus-ws/src/main/java/com/consol/citrus/ws/addressing/WsAddressingHeaders.java
WsAddressingHeaders.setTo
public void setTo(String to) { try { this.to = new URI(to); } catch (URISyntaxException e) { throw new CitrusRuntimeException("Invalid to uri", e); } }
java
public void setTo(String to) { try { this.to = new URI(to); } catch (URISyntaxException e) { throw new CitrusRuntimeException("Invalid to uri", e); } }
[ "public", "void", "setTo", "(", "String", "to", ")", "{", "try", "{", "this", ".", "to", "=", "new", "URI", "(", "to", ")", ";", "}", "catch", "(", "URISyntaxException", "e", ")", "{", "throw", "new", "CitrusRuntimeException", "(", "\"Invalid to uri\"", ...
Sets the to uri by string. @param to the to to set
[ "Sets", "the", "to", "uri", "by", "string", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-ws/src/main/java/com/consol/citrus/ws/addressing/WsAddressingHeaders.java#L118-L124
51,279
citrusframework/citrus
modules/citrus-ws/src/main/java/com/consol/citrus/ws/addressing/WsAddressingHeaders.java
WsAddressingHeaders.setMessageId
public void setMessageId(String messageId) { try { this.messageId = new URI(messageId); } catch (URISyntaxException e) { throw new CitrusRuntimeException("Invalid messageId uri", e); } }
java
public void setMessageId(String messageId) { try { this.messageId = new URI(messageId); } catch (URISyntaxException e) { throw new CitrusRuntimeException("Invalid messageId uri", e); } }
[ "public", "void", "setMessageId", "(", "String", "messageId", ")", "{", "try", "{", "this", ".", "messageId", "=", "new", "URI", "(", "messageId", ")", ";", "}", "catch", "(", "URISyntaxException", "e", ")", "{", "throw", "new", "CitrusRuntimeException", "...
Sets the message id from uri string. @param messageId the messageId to set
[ "Sets", "the", "message", "id", "from", "uri", "string", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-ws/src/main/java/com/consol/citrus/ws/addressing/WsAddressingHeaders.java#L146-L152
51,280
citrusframework/citrus
modules/citrus-ws/src/main/java/com/consol/citrus/ws/addressing/WsAddressingHeaders.java
WsAddressingHeaders.setFrom
public void setFrom(String from) { try { this.from = new EndpointReference(new URI(from)); } catch (URISyntaxException e) { throw new CitrusRuntimeException("Invalid from uri", e); } }
java
public void setFrom(String from) { try { this.from = new EndpointReference(new URI(from)); } catch (URISyntaxException e) { throw new CitrusRuntimeException("Invalid from uri", e); } }
[ "public", "void", "setFrom", "(", "String", "from", ")", "{", "try", "{", "this", ".", "from", "=", "new", "EndpointReference", "(", "new", "URI", "(", "from", ")", ")", ";", "}", "catch", "(", "URISyntaxException", "e", ")", "{", "throw", "new", "Ci...
Sets the from endpoint reference by string. @param from the from to set
[ "Sets", "the", "from", "endpoint", "reference", "by", "string", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-ws/src/main/java/com/consol/citrus/ws/addressing/WsAddressingHeaders.java#L174-L180
51,281
citrusframework/citrus
modules/citrus-ws/src/main/java/com/consol/citrus/ws/addressing/WsAddressingHeaders.java
WsAddressingHeaders.setReplyTo
public void setReplyTo(String replyTo) { try { this.replyTo = new EndpointReference(new URI(replyTo)); } catch (URISyntaxException e) { throw new CitrusRuntimeException("Invalid replyTo uri", e); } }
java
public void setReplyTo(String replyTo) { try { this.replyTo = new EndpointReference(new URI(replyTo)); } catch (URISyntaxException e) { throw new CitrusRuntimeException("Invalid replyTo uri", e); } }
[ "public", "void", "setReplyTo", "(", "String", "replyTo", ")", "{", "try", "{", "this", ".", "replyTo", "=", "new", "EndpointReference", "(", "new", "URI", "(", "replyTo", ")", ")", ";", "}", "catch", "(", "URISyntaxException", "e", ")", "{", "throw", ...
Sets the reply to endpoint reference by string. @param replyTo the replyTo to set
[ "Sets", "the", "reply", "to", "endpoint", "reference", "by", "string", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-ws/src/main/java/com/consol/citrus/ws/addressing/WsAddressingHeaders.java#L202-L208
51,282
citrusframework/citrus
modules/citrus-ws/src/main/java/com/consol/citrus/ws/addressing/WsAddressingHeaders.java
WsAddressingHeaders.setFaultTo
public void setFaultTo(String faultTo) { try { this.faultTo = new EndpointReference(new URI(faultTo)); } catch (URISyntaxException e) { throw new CitrusRuntimeException("Invalid faultTo uri", e); } }
java
public void setFaultTo(String faultTo) { try { this.faultTo = new EndpointReference(new URI(faultTo)); } catch (URISyntaxException e) { throw new CitrusRuntimeException("Invalid faultTo uri", e); } }
[ "public", "void", "setFaultTo", "(", "String", "faultTo", ")", "{", "try", "{", "this", ".", "faultTo", "=", "new", "EndpointReference", "(", "new", "URI", "(", "faultTo", ")", ")", ";", "}", "catch", "(", "URISyntaxException", "e", ")", "{", "throw", ...
Sets the fault to endpoint reference by string. @param faultTo the faultTo to set
[ "Sets", "the", "fault", "to", "endpoint", "reference", "by", "string", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-ws/src/main/java/com/consol/citrus/ws/addressing/WsAddressingHeaders.java#L230-L236
51,283
citrusframework/citrus
tools/maven/citrus-maven-plugin/src/main/java/com/consol/citrus/mvn/plugin/CreateDocsMojo.java
CreateDocsMojo.createHtmlDoc
private void createHtmlDoc() throws PrompterException { HtmlDocConfiguration configuration = new HtmlDocConfiguration(); String heading = prompter.prompt("Enter overview title:", configuration.getHeading()); String columns = prompter.prompt("Enter number of columns in overview:", configuration....
java
private void createHtmlDoc() throws PrompterException { HtmlDocConfiguration configuration = new HtmlDocConfiguration(); String heading = prompter.prompt("Enter overview title:", configuration.getHeading()); String columns = prompter.prompt("Enter number of columns in overview:", configuration....
[ "private", "void", "createHtmlDoc", "(", ")", "throws", "PrompterException", "{", "HtmlDocConfiguration", "configuration", "=", "new", "HtmlDocConfiguration", "(", ")", ";", "String", "heading", "=", "prompter", ".", "prompt", "(", "\"Enter overview title:\"", ",", ...
Create HTML documentation in interactive mode. @throws PrompterException
[ "Create", "HTML", "documentation", "in", "interactive", "mode", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/tools/maven/citrus-maven-plugin/src/main/java/com/consol/citrus/mvn/plugin/CreateDocsMojo.java#L90-L118
51,284
citrusframework/citrus
tools/maven/citrus-maven-plugin/src/main/java/com/consol/citrus/mvn/plugin/CreateDocsMojo.java
CreateDocsMojo.createExcelDoc
private void createExcelDoc() throws PrompterException { ExcelDocConfiguration configuration = new ExcelDocConfiguration(); String company = prompter.prompt("Enter company:", configuration.getCompany()); String author = prompter.prompt("Enter author:", configuration.getAuthor()); String ...
java
private void createExcelDoc() throws PrompterException { ExcelDocConfiguration configuration = new ExcelDocConfiguration(); String company = prompter.prompt("Enter company:", configuration.getCompany()); String author = prompter.prompt("Enter author:", configuration.getAuthor()); String ...
[ "private", "void", "createExcelDoc", "(", ")", "throws", "PrompterException", "{", "ExcelDocConfiguration", "configuration", "=", "new", "ExcelDocConfiguration", "(", ")", ";", "String", "company", "=", "prompter", ".", "prompt", "(", "\"Enter company:\"", ",", "con...
Create Excel documentation in interactive mode. @throws PrompterException
[ "Create", "Excel", "documentation", "in", "interactive", "mode", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/tools/maven/citrus-maven-plugin/src/main/java/com/consol/citrus/mvn/plugin/CreateDocsMojo.java#L124-L151
51,285
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/functions/Functions.java
Functions.changeDate
public static String changeDate(String date, String dateOffset, String dateFormat, TestContext context) { return new ChangeDateFunction().execute(Arrays.asList(date, dateOffset, dateFormat), context); }
java
public static String changeDate(String date, String dateOffset, String dateFormat, TestContext context) { return new ChangeDateFunction().execute(Arrays.asList(date, dateOffset, dateFormat), context); }
[ "public", "static", "String", "changeDate", "(", "String", "date", ",", "String", "dateOffset", ",", "String", "dateFormat", ",", "TestContext", "context", ")", "{", "return", "new", "ChangeDateFunction", "(", ")", ".", "execute", "(", "Arrays", ".", "asList",...
Runs change date function with arguments. @param date @param dateOffset @param dateFormat @return
[ "Runs", "change", "date", "function", "with", "arguments", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/functions/Functions.java#L61-L63
51,286
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/functions/Functions.java
Functions.createCDataSection
public static String createCDataSection(String content, TestContext context) { return new CreateCDataSectionFunction().execute(Collections.singletonList(content), context); }
java
public static String createCDataSection(String content, TestContext context) { return new CreateCDataSectionFunction().execute(Collections.singletonList(content), context); }
[ "public", "static", "String", "createCDataSection", "(", "String", "content", ",", "TestContext", "context", ")", "{", "return", "new", "CreateCDataSectionFunction", "(", ")", ".", "execute", "(", "Collections", ".", "singletonList", "(", "content", ")", ",", "c...
Runs create CData section function with arguments. @return
[ "Runs", "create", "CData", "section", "function", "with", "arguments", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/functions/Functions.java#L79-L81
51,287
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/functions/Functions.java
Functions.digestAuthHeader
public static String digestAuthHeader(String username, String password, String realm, String noncekey, String method, String uri, String opaque, String algorithm, TestContext context) { return new DigestAuthHeaderFunction().execute(Arrays.asList(username, password, realm, noncekey, method, uri, opaque, algorith...
java
public static String digestAuthHeader(String username, String password, String realm, String noncekey, String method, String uri, String opaque, String algorithm, TestContext context) { return new DigestAuthHeaderFunction().execute(Arrays.asList(username, password, realm, noncekey, method, uri, opaque, algorith...
[ "public", "static", "String", "digestAuthHeader", "(", "String", "username", ",", "String", "password", ",", "String", "realm", ",", "String", "noncekey", ",", "String", "method", ",", "String", "uri", ",", "String", "opaque", ",", "String", "algorithm", ",", ...
Runs create digest auth header function with arguments. @return
[ "Runs", "create", "digest", "auth", "header", "function", "with", "arguments", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/functions/Functions.java#L151-L153
51,288
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/functions/Functions.java
Functions.randomUUID
public static String randomUUID(TestContext context) { return new RandomUUIDFunction().execute(Collections.<String>emptyList(), context); }
java
public static String randomUUID(TestContext context) { return new RandomUUIDFunction().execute(Collections.<String>emptyList(), context); }
[ "public", "static", "String", "randomUUID", "(", "TestContext", "context", ")", "{", "return", "new", "RandomUUIDFunction", "(", ")", ".", "execute", "(", "Collections", ".", "<", "String", ">", "emptyList", "(", ")", ",", "context", ")", ";", "}" ]
Runs random UUID function with arguments. @return
[ "Runs", "random", "UUID", "function", "with", "arguments", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/functions/Functions.java#L159-L161
51,289
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/functions/Functions.java
Functions.escapeXml
public static String escapeXml(String content, TestContext context) { return new EscapeXmlFunction().execute(Collections.singletonList(content), context); }
java
public static String escapeXml(String content, TestContext context) { return new EscapeXmlFunction().execute(Collections.singletonList(content), context); }
[ "public", "static", "String", "escapeXml", "(", "String", "content", ",", "TestContext", "context", ")", "{", "return", "new", "EscapeXmlFunction", "(", ")", ".", "execute", "(", "Collections", ".", "singletonList", "(", "content", ")", ",", "context", ")", ...
Runs escape XML function with arguments. @return
[ "Runs", "escape", "XML", "function", "with", "arguments", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/functions/Functions.java#L226-L228
51,290
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/functions/Functions.java
Functions.readFile
public static String readFile(String filePath, TestContext context) { return new ReadFileResourceFunction().execute(Collections.singletonList(filePath), context); }
java
public static String readFile(String filePath, TestContext context) { return new ReadFileResourceFunction().execute(Collections.singletonList(filePath), context); }
[ "public", "static", "String", "readFile", "(", "String", "filePath", ",", "TestContext", "context", ")", "{", "return", "new", "ReadFileResourceFunction", "(", ")", ".", "execute", "(", "Collections", ".", "singletonList", "(", "filePath", ")", ",", "context", ...
Reads the file resource and returns the complete file content. @param filePath @return
[ "Reads", "the", "file", "resource", "and", "returns", "the", "complete", "file", "content", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/functions/Functions.java#L235-L237
51,291
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/config/util/ValidateMessageParserUtil.java
ValidateMessageParserUtil.parseJsonPathElements
public static void parseJsonPathElements(Element validateElement, Map<String, Object> validateJsonPathExpressions) { List<?> jsonPathElements = DomUtils.getChildElementsByTagName(validateElement, "json-path"); if (jsonPathElements.size() > 0) { for (Iterator<?> jsonPathIterator = jsonPathEle...
java
public static void parseJsonPathElements(Element validateElement, Map<String, Object> validateJsonPathExpressions) { List<?> jsonPathElements = DomUtils.getChildElementsByTagName(validateElement, "json-path"); if (jsonPathElements.size() > 0) { for (Iterator<?> jsonPathIterator = jsonPathEle...
[ "public", "static", "void", "parseJsonPathElements", "(", "Element", "validateElement", ",", "Map", "<", "String", ",", "Object", ">", "validateJsonPathExpressions", ")", "{", "List", "<", "?", ">", "jsonPathElements", "=", "DomUtils", ".", "getChildElementsByTagNam...
Parses 'validate' element containing nested 'json-path' elements. @param validateElement the validate element to parse @param validateJsonPathExpressions adds the parsed json-path elements to this map
[ "Parses", "validate", "element", "containing", "nested", "json", "-", "path", "elements", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/config/util/ValidateMessageParserUtil.java#L40-L51
51,292
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/util/FileUtils.java
FileUtils.readToString
public static String readToString(Resource resource, Charset charset) throws IOException { if (simulationMode) { if (resource instanceof ClassPathResource) { return ((ClassPathResource) resource).getPath(); } else if (resource instanceof FileSystemResource) { ...
java
public static String readToString(Resource resource, Charset charset) throws IOException { if (simulationMode) { if (resource instanceof ClassPathResource) { return ((ClassPathResource) resource).getPath(); } else if (resource instanceof FileSystemResource) { ...
[ "public", "static", "String", "readToString", "(", "Resource", "resource", ",", "Charset", "charset", ")", "throws", "IOException", "{", "if", "(", "simulationMode", ")", "{", "if", "(", "resource", "instanceof", "ClassPathResource", ")", "{", "return", "(", "...
Read file resource to string value. @param resource @param charset @return @throws IOException
[ "Read", "file", "resource", "to", "string", "value", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/util/FileUtils.java#L101-L116
51,293
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/util/FileUtils.java
FileUtils.readToString
public static String readToString(InputStream inputStream, Charset charset) throws IOException { return new String(FileCopyUtils.copyToByteArray(inputStream), charset); }
java
public static String readToString(InputStream inputStream, Charset charset) throws IOException { return new String(FileCopyUtils.copyToByteArray(inputStream), charset); }
[ "public", "static", "String", "readToString", "(", "InputStream", "inputStream", ",", "Charset", "charset", ")", "throws", "IOException", "{", "return", "new", "String", "(", "FileCopyUtils", ".", "copyToByteArray", "(", "inputStream", ")", ",", "charset", ")", ...
Read file input stream to string value. @param inputStream @param charset @return @throws IOException
[ "Read", "file", "input", "stream", "to", "string", "value", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/util/FileUtils.java#L125-L127
51,294
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/util/FileUtils.java
FileUtils.writeToFile
public static void writeToFile(InputStream inputStream, File file) { try (InputStreamReader inputStreamReader = new InputStreamReader(inputStream)) { writeToFile(FileCopyUtils.copyToString(inputStreamReader), file, getDefaultCharset()); } catch (IOException e) { throw new CitrusR...
java
public static void writeToFile(InputStream inputStream, File file) { try (InputStreamReader inputStreamReader = new InputStreamReader(inputStream)) { writeToFile(FileCopyUtils.copyToString(inputStreamReader), file, getDefaultCharset()); } catch (IOException e) { throw new CitrusR...
[ "public", "static", "void", "writeToFile", "(", "InputStream", "inputStream", ",", "File", "file", ")", "{", "try", "(", "InputStreamReader", "inputStreamReader", "=", "new", "InputStreamReader", "(", "inputStream", ")", ")", "{", "writeToFile", "(", "FileCopyUtil...
Writes inputStream content to file. Uses default charset encoding. @param inputStream @param file
[ "Writes", "inputStream", "content", "to", "file", ".", "Uses", "default", "charset", "encoding", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/util/FileUtils.java#L134-L140
51,295
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/util/FileUtils.java
FileUtils.writeToFile
public static void writeToFile(String content, File file, Charset charset) { if (log.isDebugEnabled()) { log.debug(String.format("Writing file resource: '%s' (encoding is '%s')", file.getName(), charset.displayName())); } if (!file.getParentFile().exists()) { if (!file.g...
java
public static void writeToFile(String content, File file, Charset charset) { if (log.isDebugEnabled()) { log.debug(String.format("Writing file resource: '%s' (encoding is '%s')", file.getName(), charset.displayName())); } if (!file.getParentFile().exists()) { if (!file.g...
[ "public", "static", "void", "writeToFile", "(", "String", "content", ",", "File", "file", ",", "Charset", "charset", ")", "{", "if", "(", "log", ".", "isDebugEnabled", "(", ")", ")", "{", "log", ".", "debug", "(", "String", ".", "format", "(", "\"Writi...
Writes String content to file with given charset encoding. Automatically closes file output streams when done. @param content @param file
[ "Writes", "String", "content", "to", "file", "with", "given", "charset", "encoding", ".", "Automatically", "closes", "file", "output", "streams", "when", "done", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/util/FileUtils.java#L156-L173
51,296
citrusframework/citrus
modules/citrus-core/src/main/java/com/consol/citrus/util/FileUtils.java
FileUtils.findFiles
public static List<File> findFiles(final String startDir, final Set<String> fileNamePatterns) { /* file names to be returned */ final List<File> files = new ArrayList<File>(); /* Stack to hold potential sub directories */ final Stack<File> dirs = new Stack<File>(); /* start dire...
java
public static List<File> findFiles(final String startDir, final Set<String> fileNamePatterns) { /* file names to be returned */ final List<File> files = new ArrayList<File>(); /* Stack to hold potential sub directories */ final Stack<File> dirs = new Stack<File>(); /* start dire...
[ "public", "static", "List", "<", "File", ">", "findFiles", "(", "final", "String", "startDir", ",", "final", "Set", "<", "String", ">", "fileNamePatterns", ")", "{", "/* file names to be returned */", "final", "List", "<", "File", ">", "files", "=", "new", "...
Method to retrieve all files with given file name pattern in given directory. Hierarchy of folders is supported. @param startDir the directory to hold the files @param fileNamePatterns the file names to include @return list of test files as filename paths
[ "Method", "to", "retrieve", "all", "files", "with", "given", "file", "name", "pattern", "in", "given", "directory", ".", "Hierarchy", "of", "folders", "is", "supported", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-core/src/main/java/com/consol/citrus/util/FileUtils.java#L183-L235
51,297
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/endpoint/CitrusEndpoints.java
CitrusEndpoints.docker
@SuppressWarnings("unchecked") public static ClientServerEndpointBuilder<DockerClientBuilder, DockerClientBuilder> docker() { return new ClientServerEndpointBuilder(new DockerClientBuilder(), new DockerClientBuilder()) { @Override public EndpointBuilder<? extends Endpoint> server() {...
java
@SuppressWarnings("unchecked") public static ClientServerEndpointBuilder<DockerClientBuilder, DockerClientBuilder> docker() { return new ClientServerEndpointBuilder(new DockerClientBuilder(), new DockerClientBuilder()) { @Override public EndpointBuilder<? extends Endpoint> server() {...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "static", "ClientServerEndpointBuilder", "<", "DockerClientBuilder", ",", "DockerClientBuilder", ">", "docker", "(", ")", "{", "return", "new", "ClientServerEndpointBuilder", "(", "new", "DockerClientBuilder", ...
Creates new DockerClient builder. @return
[ "Creates", "new", "DockerClient", "builder", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/endpoint/CitrusEndpoints.java#L171-L179
51,298
citrusframework/citrus
modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/endpoint/CitrusEndpoints.java
CitrusEndpoints.kubernetes
@SuppressWarnings("unchecked") public static ClientServerEndpointBuilder<KubernetesClientBuilder, KubernetesClientBuilder> kubernetes() { return new ClientServerEndpointBuilder(new KubernetesClientBuilder(), new KubernetesClientBuilder()) { @Override public EndpointBuilder<? extends ...
java
@SuppressWarnings("unchecked") public static ClientServerEndpointBuilder<KubernetesClientBuilder, KubernetesClientBuilder> kubernetes() { return new ClientServerEndpointBuilder(new KubernetesClientBuilder(), new KubernetesClientBuilder()) { @Override public EndpointBuilder<? extends ...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "static", "ClientServerEndpointBuilder", "<", "KubernetesClientBuilder", ",", "KubernetesClientBuilder", ">", "kubernetes", "(", ")", "{", "return", "new", "ClientServerEndpointBuilder", "(", "new", "Kubernetes...
Creates new KubernetesClient builder. @return
[ "Creates", "new", "KubernetesClient", "builder", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/endpoint/CitrusEndpoints.java#L185-L193
51,299
citrusframework/citrus
modules/citrus-ws/src/main/java/com/consol/citrus/ws/validation/XmlSoapFaultValidator.java
XmlSoapFaultValidator.validateFaultDetailString
@Override protected void validateFaultDetailString(String receivedDetailString, String controlDetailString, TestContext context, ValidationContext validationContext) throws ValidationException { XmlMessageValidationContext xmlMessageValidationContext; if (validationContext inst...
java
@Override protected void validateFaultDetailString(String receivedDetailString, String controlDetailString, TestContext context, ValidationContext validationContext) throws ValidationException { XmlMessageValidationContext xmlMessageValidationContext; if (validationContext inst...
[ "@", "Override", "protected", "void", "validateFaultDetailString", "(", "String", "receivedDetailString", ",", "String", "controlDetailString", ",", "TestContext", "context", ",", "ValidationContext", "validationContext", ")", "throws", "ValidationException", "{", "XmlMessa...
Delegates to XML message validator for validation of fault detail.
[ "Delegates", "to", "XML", "message", "validator", "for", "validation", "of", "fault", "detail", "." ]
55c58ef74c01d511615e43646ca25c1b2301c56d
https://github.com/citrusframework/citrus/blob/55c58ef74c01d511615e43646ca25c1b2301c56d/modules/citrus-ws/src/main/java/com/consol/citrus/ws/validation/XmlSoapFaultValidator.java#L58-L70