├── modules
├── distribution
│ ├── .empty
│ └── src
│ │ └── main
│ │ ├── conf
│ │ ├── trust.jks
│ │ └── identity.jks
│ │ ├── bin
│ │ ├── libwrapper-linux-x86-32.so
│ │ ├── libwrapper-linux-x86-64.so
│ │ ├── native
│ │ │ ├── wrapper-linux-x86-32
│ │ │ ├── wrapper-linux-x86-64
│ │ │ ├── wrapper-solaris-x86-32
│ │ │ ├── wrapper-solaris-sparc-32
│ │ │ ├── wrapper-solaris-sparc-64
│ │ │ └── wrapper-windows-x86-32.exe
│ │ ├── wrapper-windows-x86-32.dll
│ │ ├── libwrapper-solaris-sparc-32.so
│ │ ├── libwrapper-solaris-sparc-64.so
│ │ └── libwrapper-solaris-x86-32.so
│ │ └── release
│ │ ├── docs
│ │ └── endorsed_libs.txt
│ │ └── BUILDING.txt
├── packaging
│ ├── package-skeleton
│ │ └── .empty
│ └── package-archetype
│ │ └── src
│ │ └── main
│ │ └── resources
│ │ ├── META-INF
│ │ ├── NOTICE
│ │ └── maven
│ │ │ └── archetype.xml
│ │ └── archetype-resources
│ │ └── repository
│ │ └── conf
│ │ └── synapse.xml
├── extensions
│ └── src
│ │ ├── test
│ │ ├── resources
│ │ │ └── org
│ │ │ │ └── apache
│ │ │ │ └── synapse
│ │ │ │ └── format
│ │ │ │ └── hessian
│ │ │ │ ├── hessianIncomplete.bin
│ │ │ │ ├── hessianDummyFaultResponse_V1.bin
│ │ │ │ └── hessianDummyRequest.bin
│ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── synapse
│ │ │ ├── TestMediateHandler.java
│ │ │ └── mediators
│ │ │ └── spring
│ │ │ └── TestMediateHandlerImpl.java
│ │ └── main
│ │ ├── resources
│ │ └── META-INF
│ │ │ ├── NOTICE
│ │ │ └── services
│ │ │ ├── org.apache.synapse.config.xml.MediatorFactory
│ │ │ └── org.apache.synapse.config.xml.MediatorSerializer
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── synapse
│ │ └── format
│ │ └── syslog
│ │ └── ProtocolException.java
├── core
│ └── src
│ │ ├── test
│ │ ├── resources
│ │ │ ├── trust.jks
│ │ │ ├── identity.jks
│ │ │ ├── keystore.jks
│ │ │ ├── org
│ │ │ │ └── apache
│ │ │ │ │ └── synapse
│ │ │ │ │ ├── core
│ │ │ │ │ ├── axis2
│ │ │ │ │ │ ├── imported.xsd
│ │ │ │ │ │ ├── schema
│ │ │ │ │ │ │ └── SimpleStockService-PlaceOrder.xsd
│ │ │ │ │ │ └── root.wsdl
│ │ │ │ │ └── registry
│ │ │ │ │ │ └── resource.xml
│ │ │ │ │ └── mediators
│ │ │ │ │ ├── transform
│ │ │ │ │ ├── cdata.xslt
│ │ │ │ │ ├── invalid.xslt
│ │ │ │ │ └── identity.xslt
│ │ │ │ │ └── builtin
│ │ │ │ │ └── synapse-501-conf.xml
│ │ │ ├── synapse-config
│ │ │ │ ├── sequences
│ │ │ │ │ ├── bar.xmlx
│ │ │ │ │ ├── fault.xml
│ │ │ │ │ ├── main.xml
│ │ │ │ │ └── foo.xml
│ │ │ │ ├── endpoints
│ │ │ │ │ └── epr1.xml
│ │ │ │ ├── proxy-services
│ │ │ │ │ └── proxy1.xml
│ │ │ │ ├── registry.xml
│ │ │ │ └── synapse.xml
│ │ │ └── synapse-libraries
│ │ │ │ ├── synapse-eip-lib
│ │ │ │ ├── artifacts.xml
│ │ │ │ └── eip_systemManagement
│ │ │ │ │ ├── artifact.xml
│ │ │ │ │ └── template_splitter.xml
│ │ │ │ ├── synapse-eiptest-lib
│ │ │ │ ├── artifacts.xml
│ │ │ │ └── eip_systemManagement
│ │ │ │ │ └── artifact.xml
│ │ │ │ ├── skeleton
│ │ │ │ ├── artifacts.xml
│ │ │ │ └── linkedin_core
│ │ │ │ │ ├── show_headline.xml
│ │ │ │ │ ├── post_status.xml
│ │ │ │ │ └── send_message.xml
│ │ │ │ └── synapse-eipcore-lib
│ │ │ │ ├── artifacts.xml
│ │ │ │ ├── eip_messageRouting
│ │ │ │ └── template_dynamic_router.xml
│ │ │ │ └── eip_systemManagement
│ │ │ │ └── artifact.xml
│ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── synapse
│ │ │ ├── util
│ │ │ └── Services.java
│ │ │ ├── mediators
│ │ │ ├── TestMediateHandler.java
│ │ │ └── AbstractMediatorTestCase.java
│ │ │ └── config
│ │ │ └── xml
│ │ │ └── rest
│ │ │ └── TestHandler.java
│ │ └── main
│ │ ├── resources
│ │ └── META-INF
│ │ │ └── NOTICE
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── synapse
│ │ ├── config
│ │ └── xml
│ │ │ ├── package-info.java
│ │ │ ├── IEntryFactory.java
│ │ │ ├── IEntrySerializer.java
│ │ │ ├── endpoints
│ │ │ └── DefinitionFactory.java
│ │ │ └── AnonymousListMediator.java
│ │ ├── util
│ │ ├── xpath
│ │ │ └── package-info.java
│ │ └── jaxp
│ │ │ ├── SourceBuilderFactory.java
│ │ │ ├── DOOMSourceBuilderFactory.java
│ │ │ ├── AXIOMSourceBuilderFactory.java
│ │ │ └── StreamSourceBuilderFactory.java
│ │ ├── rest
│ │ ├── dispatch
│ │ │ └── DispatcherHelper.java
│ │ └── Handler.java
│ │ ├── aspects
│ │ └── ComponentType.java
│ │ ├── endpoints
│ │ └── algorithms
│ │ │ └── WeightedRoundRobinViewMBean.java
│ │ ├── startup
│ │ └── Task.java
│ │ ├── metrics
│ │ ├── MetricsConstants.java
│ │ └── Counter.java
│ │ ├── Identifiable.java
│ │ ├── mediators
│ │ ├── annotations
│ │ │ ├── Execute.java
│ │ │ ├── ReadAndUpdate.java
│ │ │ ├── UpdateMessage.java
│ │ │ └── ReadFromMessage.java
│ │ └── eip
│ │ │ └── sample
│ │ │ └── MessageQueue.java
│ │ ├── eventing
│ │ ├── SynapseEventingConstants.java
│ │ └── SynapseEventFilter.java
│ │ └── Nameable.java
├── integration
│ └── src
│ │ └── test
│ │ ├── resources
│ │ ├── trust.jks
│ │ ├── identity.jks
│ │ ├── nhttp.properties
│ │ ├── passthru-http.properties
│ │ └── extras
│ │ │ └── synapse_sample_161.xml
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── synapse
│ │ └── samples
│ │ └── framework
│ │ └── ProcessController.java
├── samples
│ ├── services
│ │ ├── SecureStockQuoteService
│ │ │ ├── store.jks
│ │ │ └── src
│ │ │ │ └── samples
│ │ │ │ └── services
│ │ │ │ ├── GetQuote.java
│ │ │ │ ├── GetFullQuote.java
│ │ │ │ └── GetMarketActivity.java
│ │ ├── JAXWSStockQuoteService
│ │ │ └── src
│ │ │ │ └── samples
│ │ │ │ └── services
│ │ │ │ ├── package-info.java
│ │ │ │ └── GetQuote.java
│ │ ├── EJBSampleBeans
│ │ │ └── src
│ │ │ │ └── samples
│ │ │ │ └── ejb
│ │ │ │ ├── StoreRegistry.java
│ │ │ │ ├── StoreLocator.java
│ │ │ │ ├── ShoppingCart.java
│ │ │ │ ├── StoreRegistryBean.java
│ │ │ │ └── StoreLocatorBean.java
│ │ ├── FastStockQuoteService
│ │ │ └── src
│ │ │ │ └── samples
│ │ │ │ └── services
│ │ │ │ └── GetQuote.java
│ │ └── SimpleStockQuoteService
│ │ │ └── src
│ │ │ └── samples
│ │ │ └── services
│ │ │ ├── GetQuote.java
│ │ │ ├── GetFullQuote.java
│ │ │ └── GetMarketActivity.java
│ └── src
│ │ └── main
│ │ └── resources
│ │ └── META-INF
│ │ └── NOTICE
├── documentation
│ └── src
│ │ └── site
│ │ └── resources
│ │ └── images
│ │ ├── page-back.png
│ │ ├── footer-back.png
│ │ ├── synapse-arch.png
│ │ ├── synapse-flow.png
│ │ └── synapse-logo.png
├── experimental
│ └── src
│ │ └── main
│ │ ├── resources
│ │ └── META-INF
│ │ │ ├── services
│ │ │ └── org.apache.synapse.config.xml.MediatorFactory
│ │ │ └── NOTICE
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── synapse
│ │ └── experimental
│ │ └── mediators
│ │ └── seda
│ │ └── SEDAQueueConsumer.java
├── war
│ └── src
│ │ └── main
│ │ └── META-INF
│ │ └── NOTICE
├── commons
│ └── src
│ │ └── main
│ │ ├── resources
│ │ └── META-INF
│ │ │ └── NOTICE
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── synapse
│ │ └── commons
│ │ ├── jmx
│ │ └── MBeanRepository.java
│ │ ├── evaluators
│ │ ├── source
│ │ │ └── SourceTextRetriever.java
│ │ └── EvaluatorException.java
│ │ └── executors
│ │ └── BeforeExecuteHandler.java
├── handler
│ └── src
│ │ └── main
│ │ └── resources
│ │ └── META-INF
│ │ └── NOTICE
├── tasks
│ └── src
│ │ └── main
│ │ ├── resources
│ │ └── META-INF
│ │ │ └── NOTICE
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── synapse
│ │ └── task
│ │ ├── Task.java
│ │ └── TaskConstants.java
├── xar-maven-plugin
│ └── src
│ │ └── main
│ │ ├── resources
│ │ └── META-INF
│ │ │ └── NOTICE
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── synapse
│ │ └── maven
│ │ └── xar
│ │ ├── ClassVisitor.java
│ │ └── ClassScannerException.java
├── transports
│ ├── core
│ │ ├── nhttp
│ │ │ └── src
│ │ │ │ ├── main
│ │ │ │ ├── resources
│ │ │ │ │ └── META-INF
│ │ │ │ │ │ └── NOTICE
│ │ │ │ ├── assembly
│ │ │ │ │ └── testkit-logs.xml
│ │ │ │ └── java
│ │ │ │ │ └── org
│ │ │ │ │ └── apache
│ │ │ │ │ └── synapse
│ │ │ │ │ └── transport
│ │ │ │ │ └── utils
│ │ │ │ │ └── sslcert
│ │ │ │ │ ├── cache
│ │ │ │ │ └── ManageableCache.java
│ │ │ │ │ ├── RevocationStatus.java
│ │ │ │ │ └── RevocationVerifier.java
│ │ │ │ └── test
│ │ │ │ └── resources
│ │ │ │ ├── META-INF
│ │ │ │ └── aop.xml
│ │ │ │ ├── nhttp.properties
│ │ │ │ └── test-http.properties
│ │ ├── pipe
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ ├── resources
│ │ │ │ └── META-INF
│ │ │ │ │ └── NOTICE
│ │ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── apache
│ │ │ │ └── synapse
│ │ │ │ └── transport
│ │ │ │ └── pipe
│ │ │ │ └── PipeConstants.java
│ │ └── vfs
│ │ │ └── src
│ │ │ ├── main
│ │ │ ├── resources
│ │ │ │ └── META-INF
│ │ │ │ │ └── NOTICE
│ │ │ └── assembly
│ │ │ │ └── testkit-logs.xml
│ │ │ └── test
│ │ │ ├── resources
│ │ │ └── META-INF
│ │ │ │ └── aop.xml
│ │ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── synapse
│ │ │ └── transport
│ │ │ └── vfs
│ │ │ └── VFSAsyncFileChannel.java
│ ├── optional
│ │ ├── fix
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ ├── resources
│ │ │ │ └── META-INF
│ │ │ │ │ └── NOTICE
│ │ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── apache
│ │ │ │ └── synapse
│ │ │ │ └── transport
│ │ │ │ └── fix
│ │ │ │ └── AxisFIXException.java
│ │ └── amqp
│ │ │ └── src
│ │ │ ├── test
│ │ │ └── resources
│ │ │ │ └── amqp-transport.properties
│ │ │ └── main
│ │ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── synapse
│ │ │ └── transport
│ │ │ └── amqp
│ │ │ └── AMQPTransportException.java
│ └── log4j.properties
├── securevault
│ └── src
│ │ └── main
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── synapse
│ │ └── securevault
│ │ ├── EncodingType.java
│ │ ├── CipherOperationMode.java
│ │ ├── KeyStoreType.java
│ │ ├── secret
│ │ ├── SecretCallback.java
│ │ ├── mbean
│ │ │ └── SecretManagerAdminMBean.java
│ │ └── SecretCallbackHandler.java
│ │ ├── EncryptionProvider.java
│ │ ├── DecryptionProvider.java
│ │ ├── IKeyStoreLoader.java
│ │ └── ICACertsLoader.java
└── patches
│ └── src
│ └── main
│ └── assembly
│ └── jars.xml
├── repository
└── conf
│ ├── sample
│ ├── resources
│ │ ├── mtom
│ │ │ └── asf-logo.gif
│ │ ├── security
│ │ │ └── store.jks
│ │ ├── transform
│ │ │ ├── encoding_test.xml
│ │ │ └── encoding_test.xslt
│ │ ├── recipients
│ │ │ └── EP_LIST
│ │ ├── fix
│ │ │ ├── banzai.cfg
│ │ │ ├── executor.cfg
│ │ │ ├── synapse-sender.cfg
│ │ │ ├── fix-synapse.cfg
│ │ │ ├── synapse-sender-m.cfg
│ │ │ ├── fix-synapse-m40.cfg
│ │ │ └── conn.properties
│ │ ├── xquery
│ │ │ ├── xquery_req.xq
│ │ │ ├── xquery_res.xq
│ │ │ └── xquery_commisson.xq
│ │ ├── endpoint
│ │ │ └── dynamic_endpt_1.xml
│ │ ├── misc
│ │ │ └── commission.xml
│ │ ├── sequence
│ │ │ └── dynamic_seq_1.xml
│ │ ├── vfs
│ │ │ └── test.xml
│ │ ├── script
│ │ │ ├── stockquoteTransformRequest.js
│ │ │ ├── stockquoteTransformRequest.py
│ │ │ └── stockquoteTransformResponse.js
│ │ ├── synapse.xml
│ │ ├── spring
│ │ │ └── springCustomLogger.xml
│ │ ├── policy
│ │ │ └── sample_policy_1.xml
│ │ └── validate
│ │ │ ├── validate.xsd
│ │ │ └── validate3.xsd
│ ├── synapse_sample_600.xml
│ │ ├── sequences
│ │ │ ├── fault.xml
│ │ │ └── custom-logger.xml
│ │ ├── endpoints
│ │ │ └── foo.xml
│ │ ├── local-entries
│ │ │ └── bar.xml
│ │ ├── registry.xml
│ │ ├── events
│ │ │ └── event1.xml
│ │ └── proxy-services
│ │ │ ├── proxy2.xml
│ │ │ ├── proxy3.xml
│ │ │ └── proxy1.xml
│ ├── README.txt
│ ├── synapse_sample_440.xml
│ ├── synapse_sample_0.xml
│ ├── synapse_sample_6.xml
│ └── synapse_sample_11.xml
│ ├── cipher-text.properties
│ ├── passthru-http.properties
│ └── synapse-config
│ └── synapse.xml
├── .gitpod.Dockerfile
├── .gitpod.yml
├── .asf.yaml
├── .gitignore
├── .github
└── workflows
│ ├── build_cron.yml
│ └── build_pull.yml
└── pull_request_template.md
/modules/distribution/.empty:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/modules/packaging/package-skeleton/.empty:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/modules/extensions/src/test/resources/org/apache/synapse/format/hessian/hessianIncomplete.bin:
--------------------------------------------------------------------------------
1 | c\ No newline at end of file
2 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/trust.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/core/src/test/resources/trust.jks
--------------------------------------------------------------------------------
/modules/core/src/test/resources/identity.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/core/src/test/resources/identity.jks
--------------------------------------------------------------------------------
/modules/core/src/test/resources/keystore.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/core/src/test/resources/keystore.jks
--------------------------------------------------------------------------------
/modules/distribution/src/main/conf/trust.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/distribution/src/main/conf/trust.jks
--------------------------------------------------------------------------------
/modules/distribution/src/main/conf/identity.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/distribution/src/main/conf/identity.jks
--------------------------------------------------------------------------------
/modules/integration/src/test/resources/trust.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/integration/src/test/resources/trust.jks
--------------------------------------------------------------------------------
/modules/integration/src/test/resources/identity.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/integration/src/test/resources/identity.jks
--------------------------------------------------------------------------------
/repository/conf/sample/resources/mtom/asf-logo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/repository/conf/sample/resources/mtom/asf-logo.gif
--------------------------------------------------------------------------------
/repository/conf/sample/resources/security/store.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/repository/conf/sample/resources/security/store.jks
--------------------------------------------------------------------------------
/.gitpod.Dockerfile:
--------------------------------------------------------------------------------
1 | FROM gitpod/workspace-full
2 |
3 | RUN bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh && sdk install java 8.0.265-open && sdk install ant"
--------------------------------------------------------------------------------
/modules/samples/services/SecureStockQuoteService/store.jks:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/samples/services/SecureStockQuoteService/store.jks
--------------------------------------------------------------------------------
/modules/distribution/src/main/bin/libwrapper-linux-x86-32.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/distribution/src/main/bin/libwrapper-linux-x86-32.so
--------------------------------------------------------------------------------
/modules/distribution/src/main/bin/libwrapper-linux-x86-64.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/distribution/src/main/bin/libwrapper-linux-x86-64.so
--------------------------------------------------------------------------------
/modules/distribution/src/main/bin/native/wrapper-linux-x86-32:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/distribution/src/main/bin/native/wrapper-linux-x86-32
--------------------------------------------------------------------------------
/modules/distribution/src/main/bin/native/wrapper-linux-x86-64:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/distribution/src/main/bin/native/wrapper-linux-x86-64
--------------------------------------------------------------------------------
/modules/distribution/src/main/bin/wrapper-windows-x86-32.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/distribution/src/main/bin/wrapper-windows-x86-32.dll
--------------------------------------------------------------------------------
/modules/documentation/src/site/resources/images/page-back.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/documentation/src/site/resources/images/page-back.png
--------------------------------------------------------------------------------
/modules/extensions/src/test/resources/org/apache/synapse/format/hessian/hessianDummyFaultResponse_V1.bin:
--------------------------------------------------------------------------------
1 | r fS codeS ServiceExceptionSzzzzz\ No newline at end of file
2 |
--------------------------------------------------------------------------------
/repository/conf/sample/resources/transform/encoding_test.xml:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/repository/conf/sample/resources/transform/encoding_test.xml
--------------------------------------------------------------------------------
/modules/distribution/src/main/bin/libwrapper-solaris-sparc-32.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/distribution/src/main/bin/libwrapper-solaris-sparc-32.so
--------------------------------------------------------------------------------
/modules/distribution/src/main/bin/libwrapper-solaris-sparc-64.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/distribution/src/main/bin/libwrapper-solaris-sparc-64.so
--------------------------------------------------------------------------------
/modules/distribution/src/main/bin/libwrapper-solaris-x86-32.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/distribution/src/main/bin/libwrapper-solaris-x86-32.so
--------------------------------------------------------------------------------
/modules/distribution/src/main/bin/native/wrapper-solaris-x86-32:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/distribution/src/main/bin/native/wrapper-solaris-x86-32
--------------------------------------------------------------------------------
/modules/documentation/src/site/resources/images/footer-back.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/documentation/src/site/resources/images/footer-back.png
--------------------------------------------------------------------------------
/modules/documentation/src/site/resources/images/synapse-arch.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/documentation/src/site/resources/images/synapse-arch.png
--------------------------------------------------------------------------------
/modules/documentation/src/site/resources/images/synapse-flow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/documentation/src/site/resources/images/synapse-flow.png
--------------------------------------------------------------------------------
/modules/documentation/src/site/resources/images/synapse-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/documentation/src/site/resources/images/synapse-logo.png
--------------------------------------------------------------------------------
/.gitpod.yml:
--------------------------------------------------------------------------------
1 |
2 | tasks:
3 | - init: mvn clean install
4 |
5 | image:
6 | file: .gitpod.Dockerfile
7 |
8 | vscode:
9 | extensions:
10 | - vscjava.vscode-java-pack
--------------------------------------------------------------------------------
/modules/distribution/src/main/bin/native/wrapper-solaris-sparc-32:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/distribution/src/main/bin/native/wrapper-solaris-sparc-32
--------------------------------------------------------------------------------
/modules/distribution/src/main/bin/native/wrapper-solaris-sparc-64:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/distribution/src/main/bin/native/wrapper-solaris-sparc-64
--------------------------------------------------------------------------------
/.asf.yaml:
--------------------------------------------------------------------------------
1 | notifications:
2 | commits: commits@synapse.apache.org
3 | pullrequests: dev@synapse.apache.org
4 | jobs: dev@synapse.apache.org
5 | jira_options: link label comment
6 |
--------------------------------------------------------------------------------
/modules/distribution/src/main/bin/native/wrapper-windows-x86-32.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/distribution/src/main/bin/native/wrapper-windows-x86-32.exe
--------------------------------------------------------------------------------
/modules/distribution/src/main/release/docs/endorsed_libs.txt:
--------------------------------------------------------------------------------
1 | Place libraries which should be placed in endorsed directories here.
2 |
3 | e.g. Xerces and its dependencies (xercesImpl.jar and xml-apis.jar)
--------------------------------------------------------------------------------
/modules/experimental/src/main/resources/META-INF/services/org.apache.synapse.config.xml.MediatorFactory:
--------------------------------------------------------------------------------
1 | org.apache.synapse.experimental.DetachMediatorFactory
2 | org.apache.synapse.experimental.ReplaceMediatorFactory
3 |
--------------------------------------------------------------------------------
/repository/conf/sample/resources/recipients/EP_LIST:
--------------------------------------------------------------------------------
1 | http://localhost:9001/services/SimpleStockQuoteService,http://localhost:9002/services/SimpleStockQuoteService,http://localhost:9003/services/SimpleStockQuoteService
2 |
--------------------------------------------------------------------------------
/modules/war/src/main/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Synapse
2 | Copyright 2005-2006 The Apache Software Foundation
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
--------------------------------------------------------------------------------
/modules/commons/src/main/resources/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Synapse
2 | Copyright 2005-2006 The Apache Software Foundation
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
--------------------------------------------------------------------------------
/modules/core/src/main/resources/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Synapse
2 | Copyright 2005-2006 The Apache Software Foundation
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
--------------------------------------------------------------------------------
/modules/handler/src/main/resources/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Synapse
2 | Copyright 2005-2006 The Apache Software Foundation
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
--------------------------------------------------------------------------------
/modules/samples/src/main/resources/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Synapse
2 | Copyright 2005-2006 The Apache Software Foundation
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
--------------------------------------------------------------------------------
/modules/tasks/src/main/resources/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Synapse
2 | Copyright 2005-2006 The Apache Software Foundation
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
--------------------------------------------------------------------------------
/modules/experimental/src/main/resources/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Synapse
2 | Copyright 2005-2006 The Apache Software Foundation
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
--------------------------------------------------------------------------------
/modules/extensions/src/main/resources/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Synapse
2 | Copyright 2005-2006 The Apache Software Foundation
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
--------------------------------------------------------------------------------
/modules/extensions/src/test/resources/org/apache/synapse/format/hessian/hessianDummyRequest.bin:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/synapse/HEAD/modules/extensions/src/test/resources/org/apache/synapse/format/hessian/hessianDummyRequest.bin
--------------------------------------------------------------------------------
/modules/xar-maven-plugin/src/main/resources/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Synapse
2 | Copyright 2005-2006 The Apache Software Foundation
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
--------------------------------------------------------------------------------
/modules/transports/core/nhttp/src/main/resources/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Synapse
2 | Copyright 2005-2006 The Apache Software Foundation
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
--------------------------------------------------------------------------------
/modules/transports/core/pipe/src/main/resources/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Synapse
2 | Copyright 2005-2006 The Apache Software Foundation
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
--------------------------------------------------------------------------------
/modules/transports/core/vfs/src/main/resources/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Synapse
2 | Copyright 2005-2006 The Apache Software Foundation
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
--------------------------------------------------------------------------------
/modules/packaging/package-archetype/src/main/resources/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Synapse
2 | Copyright 2005-2006 The Apache Software Foundation
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
--------------------------------------------------------------------------------
/modules/transports/optional/fix/src/main/resources/META-INF/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Synapse
2 | Copyright 2005-2006 The Apache Software Foundation
3 |
4 | This product includes software developed at
5 | The Apache Software Foundation (http://www.apache.org/).
--------------------------------------------------------------------------------
/repository/conf/sample/resources/transform/encoding_test.xslt:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/modules/extensions/src/main/resources/META-INF/services/org.apache.synapse.config.xml.MediatorFactory:
--------------------------------------------------------------------------------
1 | org.apache.synapse.mediators.spring.SpringMediatorFactory
2 | org.apache.synapse.mediators.bsf.ScriptMediatorFactory
3 | org.apache.synapse.mediators.throttle.ThrottleMediatorFactory
4 | org.apache.synapse.mediators.xquery.XQueryMediatorFactory
5 |
--------------------------------------------------------------------------------
/modules/extensions/src/main/resources/META-INF/services/org.apache.synapse.config.xml.MediatorSerializer:
--------------------------------------------------------------------------------
1 | org.apache.synapse.mediators.spring.SpringMediatorSerializer
2 | org.apache.synapse.mediators.bsf.ScriptMediatorSerializer
3 | org.apache.synapse.mediators.throttle.ThrottleMediatorSerializer
4 | org.apache.synapse.mediators.xquery.XQueryMediatorSerializer
--------------------------------------------------------------------------------
/repository/conf/sample/resources/fix/banzai.cfg:
--------------------------------------------------------------------------------
1 | [default]
2 | FileStorePath=../data/banzai
3 | ConnectionType=initiator
4 | SenderCompID=BANZAI
5 | TargetCompID=SYNAPSE
6 | SocketConnectHost=localhost
7 | StartTime=00:00:00
8 | EndTime=00:00:00
9 | HeartBtInt=30
10 | ReconnectInterval=5
11 |
12 | [session]
13 | BeginString=FIX.4.0
14 | SocketConnectPort=9876
15 |
--------------------------------------------------------------------------------
/repository/conf/sample/resources/xquery/xquery_req.xq:
--------------------------------------------------------------------------------
1 |
5 |
6 | {$payload//m0:CheckPriceRequest/m0:Code/child::text()}
7 |
8 |
9 | ]]>
--------------------------------------------------------------------------------
/repository/conf/sample/resources/fix/executor.cfg:
--------------------------------------------------------------------------------
1 | [default]
2 | FileStorePath=../data/executor
3 | ConnectionType=acceptor
4 | StartTime=00:00:00
5 | EndTime=00:00:00
6 | HeartBtInt=30
7 | ValidOrderTypes=1,2,F
8 | SenderCompID=EXEC
9 | TargetCompID=SYNAPSE
10 | UseDataDictionary=Y
11 | DefaultMarketPrice=12.30
12 |
13 | [session]
14 | BeginString=FIX.4.0
15 | SocketAcceptPort=19876
--------------------------------------------------------------------------------
/repository/conf/sample/resources/fix/synapse-sender.cfg:
--------------------------------------------------------------------------------
1 | [default]
2 | FileStorePath=var/data/store/synapse
3 | FileLogPath=var/data/log/synapse
4 | SocketConnectHost=localhost
5 | StartTime=00:00:00
6 | EndTime=00:00:00
7 | HeartBtInt=30
8 | ReconnectInterval=5
9 | SenderCompID=SYNAPSE
10 | TargetCompID=EXEC
11 | ConnectionType=initiator
12 |
13 | [session]
14 | BeginString=FIX.4.0
15 | SocketConnectPort=19876
--------------------------------------------------------------------------------
/modules/distribution/src/main/release/BUILDING.txt:
--------------------------------------------------------------------------------
1 | Building Synapse from Source
2 |
3 | The Synapse source code is available at http://svn.apache.org/repos/asf/synapse/trunk/
4 |
5 | To build Synapse, you will need JDK 1.6.0_23 or later version, Maven 3.2.x
6 |
7 | The Synapse JARs could be built with Maven 3 as follows:
8 |
9 | mvn clean install
10 |
11 | To build the site, use:
12 |
13 | mvn site
14 |
--------------------------------------------------------------------------------
/repository/conf/sample/resources/fix/fix-synapse.cfg:
--------------------------------------------------------------------------------
1 | [default]
2 | FileStorePath=~/var/data/store/synapse
3 | FileLogPath=~/var/data/log/synapse
4 | ConnectionType=acceptor
5 | StartTime=00:00:00
6 | EndTime=00:00:00
7 | HeartBtInt=30
8 | ValidOrderTypes=1,2,F
9 | SenderCompID=SYNAPSE
10 | TargetCompID=BANZAI
11 | UseDataDictionary=Y
12 | DefaultMarketPrice=12.30
13 |
14 | [session]
15 | BeginString=FIX.4.0
16 | SocketAcceptPort=9876
17 |
18 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/org/apache/synapse/core/axis2/imported.xsd:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/repository/conf/sample/resources/xquery/xquery_res.xq:
--------------------------------------------------------------------------------
1 |
7 | {$code}
8 | {$price}
9 |
10 | ]]>
--------------------------------------------------------------------------------
/modules/core/src/test/resources/synapse-config/sequences/bar.xmlx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/repository/conf/sample/resources/fix/synapse-sender-m.cfg:
--------------------------------------------------------------------------------
1 | [default]
2 | FileStorePath=var/data/store/synapse
3 | FileLogPath=var/data/log/synapse
4 | SocketConnectHost=localhost
5 | StartTime=00:00:00
6 | EndTime=00:00:00
7 | HeartBtInt=30
8 | ReconnectInterval=5
9 | SenderCompID=SYNAPSE
10 | TargetCompID=EXEC
11 | ConnectionType=initiator
12 |
13 | [session]
14 | BeginString=FIX.4.0
15 | SocketConnectPort=19876
16 |
17 | [session]
18 | BeginString=FIX.4.1
19 | SocketConnectPort=19877
20 |
21 |
22 |
--------------------------------------------------------------------------------
/repository/conf/sample/resources/fix/fix-synapse-m40.cfg:
--------------------------------------------------------------------------------
1 | [default]
2 | FileStorePath=~/var/data/store/synapse
3 | FileLogPath=~/var/data/log/synapse
4 | ConnectionType=acceptor
5 | StartTime=00:00:00
6 | EndTime=00:00:00
7 | HeartBtInt=30
8 | ValidOrderTypes=1,2,F
9 | SenderCompID=SYNAPSE
10 | TargetCompID=BANZAI
11 | UseDataDictionary=Y
12 | DefaultMarketPrice=12.30
13 | SendResetSeqNumFlag=Y
14 |
15 | [session]
16 | BeginString=FIX.4.0
17 | SocketAcceptPort=9876
18 | DataDictionary=~/etc/spec/FIX40-synapse.xml
19 |
20 |
21 |
--------------------------------------------------------------------------------
/repository/conf/sample/resources/xquery/xquery_commisson.xq:
--------------------------------------------------------------------------------
1 |
6 | {$payload//ns:return/ns:symbol/child::text()}
7 | {$payload//ns:return/ns:last/child::text()+ $commission//commission/vendor[@symbol=$payload//ns:return/ns:symbol/child::text()]}
8 |
9 | ]]>
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Synapse test output
2 | derby.log
3 | logs/
4 |
5 | # Eclipse
6 | .project
7 | .classpath
8 | .settings/
9 | bin/
10 |
11 | # IntelliJ
12 | .idea
13 | *.ipr
14 | *.iml
15 | *.iws
16 |
17 | # NetBeans
18 | nb-configuration.xml
19 |
20 | # Visual Studio Code
21 | .vscode
22 |
23 | # OSX
24 | .DS_Store
25 |
26 | # Vim
27 | *.swp
28 | *.swo
29 |
30 | # patch
31 | *.orig
32 | *.rej
33 |
34 | # Maven
35 | target/
36 | pom.xml.tag
37 | pom.xml.releaseBackup
38 | pom.xml.versionsBackup
39 | release.properties
40 | dependency-reduced-pom.xml
41 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/org/apache/synapse/core/axis2/schema/SimpleStockService-PlaceOrder.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/.github/workflows/build_cron.yml:
--------------------------------------------------------------------------------
1 | # This is a workflow to build master at midnight
2 |
3 | name: Synapse Daily Build
4 |
5 | on:
6 | schedule:
7 | - cron: '0 0 * * *'
8 |
9 | jobs:
10 | build:
11 | runs-on: ubuntu-latest
12 |
13 | steps:
14 | - name: Checkout the latest code
15 | uses: actions/checkout@v2
16 |
17 | - name: Setup java 8
18 | uses: actions/setup-java@v1
19 | with:
20 | java-version: 8
21 |
22 | - name: Cache maven artifacts
23 | uses: actions/cache@v3
24 | with:
25 | path: ~/.m2/repository
26 | key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
27 | restore-keys: |
28 | ${{ runner.os }}-maven-
29 |
30 | - name: Build Synapse
31 | run: mvn clean install
32 |
--------------------------------------------------------------------------------
/.github/workflows/build_pull.yml:
--------------------------------------------------------------------------------
1 | # This is a workflow to build new PRs
2 |
3 | name: CI
4 |
5 | on:
6 | push:
7 | branches: [ master ]
8 | pull_request:
9 | branches: [ master ]
10 |
11 | jobs:
12 | build:
13 | runs-on: ${{ matrix.os }}
14 | strategy:
15 | matrix:
16 | os: [ubuntu-latest, macos-latest]
17 | java: [8, 11]
18 |
19 | steps:
20 | - uses: actions/checkout@v2
21 |
22 | - name: Setup java
23 | uses: actions/setup-java@v1
24 | with:
25 | java-version: ${{ matrix.java }}
26 |
27 | - name: Caches maven artifacts
28 | uses: actions/cache@v3
29 | with:
30 | path: ~/.m2/repository
31 | key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
32 | restore-keys: |
33 | ${{ runner.os }}-maven-
34 |
35 | - name: Maven Package
36 | run: mvn clean package
37 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/synapse-libraries/synapse-eip-lib/artifacts.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/synapse-libraries/synapse-eip-lib/eip_systemManagement/artifact.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/synapse-libraries/synapse-eip-lib/eip_systemManagement/template_splitter.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
--------------------------------------------------------------------------------
/repository/conf/sample/synapse_sample_600.xml/sequences/fault.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/synapse-config/sequences/fault.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/repository/conf/sample/README.txt:
--------------------------------------------------------------------------------
1 | This specifies the guidelines on adding new sample configurations and also this describes
2 | the structure in which synapse samples are ordered in.
3 | =========================================================================================
4 |
5 | 0-50 ==> Simple straight forward message mediation tasks using basic mediators and
6 | introduction to the core concepts of Synapse
7 | 50-100 ==> Advanced mediations with endpoints (load-balancing/failover etc...)
8 | 100-150 ==> Quality of Service addition or deduction samples in message mediation
9 | 150-200 ==> Basic proxy service samples
10 | 200-250 ==> QoS addition and deduction for service mediation (proxy) samples
11 | 250-300 ==> Transport switching and transport introduction samples
12 | 300-350 ==> Task samples (can be advanced mediations)
13 | 350 upwards ==> Advanced mediations with advanced mediators (db, xquery, throttle, cache, clone,
14 | etc...) using either message mediation or service mediation appropriately.
--------------------------------------------------------------------------------
/repository/conf/sample/resources/endpoint/dynamic_endpt_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/synapse-config/endpoints/epr1.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/modules/transports/optional/amqp/src/test/resources/amqp-transport.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | # Do not edit. This is for JUnit tests.
19 | string=username@domain.com
20 | int=10
21 | long=13
22 | double=14.4
23 | boolean1=true
24 | boolean2=false
25 |
--------------------------------------------------------------------------------
/repository/conf/sample/synapse_sample_600.xml/endpoints/foo.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/config/xml/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Factories and serializers for XML based configuration.
22 | */
23 | package org.apache.synapse.config.xml;
24 |
--------------------------------------------------------------------------------
/repository/conf/sample/resources/misc/commission.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 | 21.334534
23 | 45.433545
24 | 56.657737
25 |
26 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/util/xpath/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Support for XPath expressions with Synapse specific extensions.
22 | */
23 | package org.apache.synapse.util.xpath;
24 |
--------------------------------------------------------------------------------
/modules/extensions/src/test/java/org/apache/synapse/TestMediateHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse;
21 |
22 | public interface TestMediateHandler {
23 |
24 | public void handle(MessageContext synCtx);
25 | }
26 |
--------------------------------------------------------------------------------
/modules/packaging/package-archetype/src/main/resources/archetype-resources/repository/conf/synapse.xml:
--------------------------------------------------------------------------------
1 | ##
2 | ## Licensed to the Apache Software Foundation (ASF) under one
3 | ## or more contributor license agreements. See the NOTICE file
4 | ## distributed with this work for additional information
5 | ## regarding copyright ownership. The ASF licenses this file
6 | ## to you under the Apache License, Version 2.0 (the
7 | ## "License"); you may not use this file except in compliance
8 | ## with the License. You may obtain a copy of the License at
9 | ##
10 | ## http://www.apache.org/licenses/LICENSE-2.0
11 | ##
12 | ## Unless required by applicable law or agreed to in writing,
13 | ## software distributed under the License is distributed on an
14 | ## * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | ## KIND, either express or implied. See the License for the
16 | ## specific language governing permissions and limitations
17 | ## under the License.
18 | ##
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/repository/conf/cipher-text.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | ## configuration per each plaintext
19 | #synapse=P6myYYDEmiILYid7Du1GGCHJMbdehU5SAEYHtE1ArBeJnLo+72+evwAA80+D3RcNRukqvKzlkiKBAdOtU3ppujHhi5UndGhzubjrYhU7YvnhqCK+ulaW78KaQqTlFoM26v+Oa/jgzdJ5ucXhe6SWJxPM7LlAVAE+jFNHFxNgHmo=
20 |
--------------------------------------------------------------------------------
/pull_request_template.md:
--------------------------------------------------------------------------------
1 | ## Purpose
2 | > Describe the problems, issues, or needs driving this feature/fix and include links to related issues in the following
3 | > format: Resolves issue1, issue2, etc.
4 |
5 | ## Approach
6 | > Describe how you are implementing the solutions. Include an animated GIF or screenshot if the change affects the UI.
7 | > Include a link to a Markdown file or Google doc if the feature
8 | > write-up is too long to paste here.
9 |
10 | ## Release note
11 | > If applicable a brief description of the new feature or bug fix as it will appear in the release notes
12 |
13 | ## Automation tests
14 | - Unit tests
15 | > Code coverage information
16 | - Integration tests
17 | > Details about the test cases and coverage
18 |
19 | ## Related PRs
20 | > List any other related PRs
21 |
22 | ## Test environment
23 | > List all JDK versions, operating systems, databases, and browser/versions on which this feature/fix was tested
24 |
25 | ## Learning
26 | > Describe the research phase and any blog posts, patterns, libraries, or add-ons you used to solve the problem.
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/rest/dispatch/DispatcherHelper.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.rest.dispatch;
21 |
22 | public interface DispatcherHelper {
23 |
24 | public String getString();
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/modules/core/src/test/java/org/apache/synapse/util/Services.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.util;
21 |
22 | public class Services {
23 | public int commodity(String commodity) {
24 | return 100;
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/repository/conf/sample/synapse_sample_600.xml/local-entries/bar.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/modules/securevault/src/main/java/org/apache/synapse/securevault/EncodingType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.synapse.securevault;
20 |
21 | /**
22 | * Encoding Types
23 | */
24 | public enum EncodingType {
25 | BASE64,
26 | BIGINTEGER16
27 | }
--------------------------------------------------------------------------------
/modules/integration/src/test/resources/nhttp.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | http.socket.timeout=60000
19 | http.connection.timeout=0
20 | http.socket.buffer-size=8096
21 | http.tcp.nodelay=1
22 | http.nio.interest-ops-queueing=false
23 |
24 | # This property is crucial for automated tests
25 | http.socket.reuseaddr=true
26 |
--------------------------------------------------------------------------------
/modules/securevault/src/main/java/org/apache/synapse/securevault/CipherOperationMode.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.synapse.securevault;
20 |
21 | /**
22 | * Cipher Operation Mode.
23 | */
24 | public enum CipherOperationMode {
25 | ENCRYPT,
26 | DECRYPT
27 | }
--------------------------------------------------------------------------------
/modules/core/src/test/resources/synapse-config/proxy-services/proxy1.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/modules/integration/src/test/resources/passthru-http.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | http.socket.timeout=60000
19 | http.connection.timeout=0
20 | http.socket.buffer-size=8192
21 | http.tcp.nodelay=true
22 | http.nio.interest-ops-queueing=false
23 |
24 | # This property is crucial for automated tests
25 | http.socket.reuseaddr=true
26 |
--------------------------------------------------------------------------------
/repository/conf/sample/resources/sequence/dynamic_seq_1.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/aspects/ComponentType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.synapse.aspects;
20 |
21 | /**
22 | * Types for a set of abstractions
23 | */
24 | public enum ComponentType {
25 | PROXYSERVICE,
26 | ENDPOINT,
27 | SEQUENCE,
28 | ANY
29 | }
30 |
--------------------------------------------------------------------------------
/modules/core/src/test/java/org/apache/synapse/mediators/TestMediateHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.mediators;
21 |
22 | import org.apache.synapse.MessageContext;
23 |
24 | public interface TestMediateHandler {
25 |
26 | public void handle(MessageContext synCtx);
27 | }
28 |
--------------------------------------------------------------------------------
/modules/securevault/src/main/java/org/apache/synapse/securevault/KeyStoreType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.synapse.securevault;
20 |
21 | /**
22 | * KeyStore Types
23 | */
24 |
25 | public enum KeyStoreType {
26 | JKS,
27 | PKCS8,
28 | PKCS12,
29 | CA_CERTIFICATES_PATH
30 | }
31 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/org/apache/synapse/core/registry/resource.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
22 |
23 |
24 |
25 | ValueOne
26 |
27 |
28 | ValueTwo
29 |
30 |
31 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/synapse-libraries/synapse-eiptest-lib/artifacts.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
22 |
23 |
24 |
25 | eip synapse library
26 |
27 |
28 |
--------------------------------------------------------------------------------
/modules/tasks/src/main/java/org/apache/synapse/task/Task.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.synapse.task;
20 |
21 | /**
22 | * Represents an executable Task
23 | */
24 | public interface Task {
25 | /**
26 | * Execute method will be invoked by the QuartzJOb.
27 | */
28 | public void execute();
29 | }
30 |
--------------------------------------------------------------------------------
/repository/conf/sample/synapse_sample_600.xml/registry.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 | file:./repository/conf/sample/resources/
23 | 15000
24 |
25 |
26 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/endpoints/algorithms/WeightedRoundRobinViewMBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.endpoints.algorithms;
21 |
22 | public interface WeightedRoundRobinViewMBean {
23 |
24 | void changeWeight(int pos, int weight);
25 |
26 | int[] getCurrentWeights();
27 | }
28 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/synapse-config/registry.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
23 | file:repository/conf/sample/resources/
24 | 15000
25 |
26 |
--------------------------------------------------------------------------------
/modules/xar-maven-plugin/src/main/java/org/apache/synapse/maven/xar/ClassVisitor.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.maven.xar;
21 |
22 | public interface ClassVisitor {
23 | void init(ClassLoader classLoader) throws ClassScannerException;
24 | void visit(Class> clazz) throws ClassScannerException;
25 | }
26 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/config/xml/IEntryFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.config.xml;
21 |
22 | import org.apache.axiom.om.OMElement;
23 | import org.apache.synapse.config.Entry;
24 |
25 | public interface IEntryFactory {
26 |
27 | public Entry createEntry(OMElement elem);
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/synapse-libraries/skeleton/artifacts.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
22 |
23 |
24 |
25 | synapse library for Linkedin
26 |
27 |
28 |
--------------------------------------------------------------------------------
/modules/securevault/src/main/java/org/apache/synapse/securevault/secret/SecretCallback.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.synapse.securevault.secret;
20 |
21 | /**
22 | * Get the required secret from secret providers
23 | * This is to be passed to SecretCallbackHandlers and get secret
24 | */
25 | public interface SecretCallback {
26 | }
27 |
--------------------------------------------------------------------------------
/repository/conf/sample/synapse_sample_600.xml/sequences/custom-logger.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/modules/transports/optional/amqp/src/main/java/org/apache/synapse/transport/amqp/AMQPTransportException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed under the Apache License, Version 2.0 (the "License");
3 | * you may not use this file except in compliance with the License.
4 | * You may obtain a copy of the License at
5 | *
6 | * http://www.apache.org/licenses/LICENSE-2.0
7 | *
8 | * Unless required by applicable law or agreed to in writing, software
9 | * distributed under the License is distributed on an "AS IS" BASIS,
10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 | * See the License for the specific language governing permissions and
12 | * limitations under the License.
13 | */
14 | package org.apache.synapse.transport.amqp;
15 |
16 | /**
17 | * Defines an exception class for AMQP transport
18 | */
19 | public class AMQPTransportException extends Exception {
20 |
21 | public AMQPTransportException(final String message) {
22 | super(message);
23 | }
24 |
25 | public AMQPTransportException(final String message, Throwable t) {
26 | super(message, t);
27 | }
28 |
29 | public AMQPTransportException(Throwable t) {
30 | super(t);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/modules/transports/core/vfs/src/test/resources/META-INF/aop.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/modules/transports/core/nhttp/src/test/resources/META-INF/aop.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/config/xml/IEntrySerializer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.config.xml;
21 |
22 | import org.apache.axiom.om.OMElement;
23 | import org.apache.synapse.config.Entry;
24 |
25 | public interface IEntrySerializer {
26 |
27 | public OMElement serializeEntry(Entry entry, OMElement parent);
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/synapse-config/sequences/main.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/rest/Handler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.rest;
21 |
22 | import org.apache.synapse.MessageContext;
23 |
24 | public interface Handler {
25 |
26 | public boolean handleRequest(MessageContext messageContext);
27 |
28 | public boolean handleResponse(MessageContext messageContext);
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/startup/Task.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.startup;
21 |
22 | /**
23 | * Defines the Task for a SimpleQuartzStartup.
24 | *
25 | * @deprecated use the interface {@link org.apache.synapse.task.Task} instead
26 | */
27 | @Deprecated
28 | public interface Task extends org.apache.synapse.task.Task {
29 | }
30 |
--------------------------------------------------------------------------------
/modules/experimental/src/main/java/org/apache/synapse/experimental/mediators/seda/SEDAQueueConsumer.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.synapse.experimental.mediators.seda;
20 |
21 | import org.apache.synapse.MessageContext;
22 |
23 | /**
24 | *
25 | */
26 | public interface SEDAQueueConsumer {
27 |
28 | public void consume(MessageContext messageContext);
29 | }
30 |
--------------------------------------------------------------------------------
/modules/transports/log4j.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one
3 | # or more contributor license agreements. See the NOTICE file
4 | # distributed with this work for additional information
5 | # regarding copyright ownership. The ASF licenses this file
6 | # to you under the Apache License, Version 2.0 (the
7 | # "License"); you may not use this file except in compliance
8 | # with the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing,
13 | # software distributed under the License is distributed on an
14 | # * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | # KIND, either express or implied. See the License for the
16 | # specific language governing permissions and limitations
17 | # under the License.
18 | #
19 |
20 | # log4j configuration file used by unit tests
21 |
22 | log4j.rootCategory=DEBUG, CONSOLE
23 |
24 | log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
25 | log4j.appender.CONSOLE.threshold=ERROR
26 | log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
27 | log4j.appender.CONSOLE.layout.ConversionPattern=%5p [%t] %c{1} %m%n
28 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/org/apache/synapse/mediators/transform/cdata.xslt:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/synapse-config/synapse.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/repository/conf/sample/resources/vfs/test.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
22 |
23 |
24 |
25 |
26 | IBM
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/modules/transports/core/nhttp/src/main/assembly/testkit-logs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
22 |
23 | testkit-logs
24 |
25 | zip
26 |
27 |
28 |
29 | target/testkit-logs
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/modules/transports/core/vfs/src/main/assembly/testkit-logs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
22 |
23 | testkit-logs
24 |
25 | zip
26 |
27 |
28 |
29 | target/testkit-logs
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/modules/samples/services/JAXWSStockQuoteService/src/samples/services/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | @javax.xml.bind.annotation.XmlSchema(namespace="http://services.samples",
20 | elementFormDefault=javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
21 | @javax.xml.bind.annotation.XmlAccessorOrder(javax.xml.bind.annotation.XmlAccessOrder.ALPHABETICAL)
22 | package samples.services;
23 |
24 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/metrics/MetricsConstants.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.metrics;
21 |
22 | /**
23 | *
24 | */
25 | public final class MetricsConstants {
26 | public static final String GLOBAL_REQUEST_COUNTER = "__GLOBAL_REQUEST_COUNTER__";
27 | public static final String REQUEST_RECEIVED_TIME = "__REQUEST_RECEIVED_TIME__";
28 | }
29 |
30 |
--------------------------------------------------------------------------------
/modules/transports/core/nhttp/src/test/resources/nhttp.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | http.socket.timeout=60000
19 | http.connection.timeout=0
20 | http.socket.buffer-size=8192
21 | http.tcp.nodelay=true
22 | http.nio.interest-ops-queueing=false
23 |
24 | # This property is crucial for automated tests
25 | http.socket.reuseaddr=true
26 |
27 | # Used by HttpTransportConfiguration tests
28 | test.foo=1000
29 | test.bar=Testing
30 | test.baz=true
31 |
--------------------------------------------------------------------------------
/modules/transports/core/pipe/src/main/java/org/apache/synapse/transport/pipe/PipeConstants.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.synapse.transport.pipe;
20 |
21 | /**
22 | * Utility class defining constants used by the pipe transport.
23 | */
24 | public class PipeConstants {
25 | private PipeConstants() {}
26 |
27 | public static final String NAME_KEY = "transport.pipe.name";
28 | }
29 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/synapse-config/sequences/foo.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/Identifiable.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.synapse;
20 |
21 | /**
22 | * Identifiable indicates whether an abstraction can be identified
23 | */
24 | public interface Identifiable {
25 |
26 | /**
27 | * Get the identifier of an abstraction
28 | *
29 | * @return String Representation of ID
30 | */
31 | String getId();
32 | }
33 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/org/apache/synapse/mediators/transform/invalid.xslt:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/modules/transports/core/nhttp/src/test/resources/test-http.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | # Used in HttpTransportConfigurationTest
19 |
20 | http.socket.timeout=60000
21 | http.socket.timeout.listener=30000
22 | http.socket.timeout.sender=20000
23 | http.connection.timeout=0
24 | http.socket.buffer-size=8192
25 | http.tcp.nodelay=true
26 | http.nio.interest-ops-queueing=false
27 |
28 | http.socket.rcv-buffer-size=8192
29 | http.socket.snd-buffer-size=8192
30 |
31 |
--------------------------------------------------------------------------------
/modules/commons/src/main/java/org/apache/synapse/commons/jmx/MBeanRepository.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.commons.jmx;
21 |
22 | /**
23 | */
24 | public interface MBeanRepository {
25 |
26 | public void addMBean(String name, Object MBean);
27 |
28 | public Object getMBean(String name);
29 |
30 | public void removeMBean(String name);
31 |
32 | public void clear();
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/modules/transports/core/vfs/src/test/java/org/apache/synapse/transport/vfs/VFSAsyncFileChannel.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.transport.vfs;
21 |
22 | import org.apache.axis2.transport.testkit.channel.AsyncChannel;
23 |
24 | public class VFSAsyncFileChannel extends VFSFileChannel implements AsyncChannel {
25 | public VFSAsyncFileChannel(String path) {
26 | super(path);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/synapse-libraries/synapse-eiptest-lib/eip_systemManagement/artifact.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
22 |
23 |
24 |
25 |
26 | template_splitter.xml
27 | Splitter library function
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/repository/conf/passthru-http.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one
3 | # or more contributor license agreements. See the NOTICE file
4 | # distributed with this work for additional information
5 | # regarding copyright ownership. The ASF licenses this file
6 | # to you under the Apache License, Version 2.0 (the
7 | # "License"); you may not use this file except in compliance
8 | # with the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing,
13 | # software distributed under the License is distributed on an
14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | # KIND, either express or implied. See the License for the
16 | # specific language governing permissions and limitations
17 | # under the License.
18 | #
19 |
20 | ## This file contains the configuration parameters used by the Pass-through HTTP transport
21 |
22 | http.socket.timeout=180000
23 | worker_pool_size_core=400
24 | worker_pool_size_max=500
25 | #worker_thread_keepalive_sec=60
26 | #worker_pool_queue_length=-1
27 | #io_threads_per_reactor=2
28 | io_buffer_size=16384
29 | http.socket.reuseaddr=true
30 | #http.headers.preserve=Location,Serer,User-Agent,Host,Date
31 |
--------------------------------------------------------------------------------
/repository/conf/sample/synapse_sample_600.xml/events/event1.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/repository/conf/sample/synapse_sample_440.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/repository/conf/sample/synapse_sample_600.xml/proxy-services/proxy2.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/repository/conf/sample/synapse_sample_600.xml/proxy-services/proxy3.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/repository/conf/synapse-config/synapse.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
26 |
--------------------------------------------------------------------------------
/modules/extensions/src/main/java/org/apache/synapse/format/syslog/ProtocolException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.synapse.format.syslog;
20 |
21 | /**
22 | * Exception used by {@link InputStreamConsumer}.
23 | */
24 | public class ProtocolException extends Exception {
25 | private static final long serialVersionUID = 8130321223000903222L;
26 |
27 | public ProtocolException(String message) {
28 | super(message);
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/repository/conf/sample/resources/script/stockquoteTransformRequest.js:
--------------------------------------------------------------------------------
1 | /**/
19 |
20 | function transformRequest(mc) {
21 | var symbol = mc.getPayloadXML()..*::Code.toString();
22 | mc.setPayloadXML(
23 |
24 |
25 | {symbol}
26 |
27 | );
28 | }
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/modules/securevault/src/main/java/org/apache/synapse/securevault/EncryptionProvider.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.synapse.securevault;
20 |
21 | /**
22 | * Provides Encrypt operation
23 | */
24 | public interface EncryptionProvider {
25 | /**
26 | * Encrypts a plain text
27 | *
28 | * @param plainText as a byte array
29 | * @return cipher text as a byte array
30 | */
31 | public byte[] encrypt(byte[] plainText);
32 | }
33 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/config/xml/endpoints/DefinitionFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright 2004,2005 The Apache Software Foundation.
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package org.apache.synapse.config.xml.endpoints;
18 |
19 | import org.apache.axiom.om.OMElement;
20 | import org.apache.synapse.endpoints.EndpointDefinition;
21 |
22 | public interface DefinitionFactory {
23 |
24 | /**
25 | * This method should extract the QoS information from the XML infoset which represents an
26 | * endpoint
27 | *
28 | * @param elem XML which represents the endpoint with QoS information
29 | * @return the created endpoint definition
30 | */
31 | public EndpointDefinition createDefinition(OMElement elem);
32 | }
33 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/mediators/annotations/Execute.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.mediators.annotations;
21 |
22 | import static java.lang.annotation.ElementType.METHOD;
23 | import static java.lang.annotation.RetentionPolicy.RUNTIME;
24 |
25 | import java.lang.annotation.Retention;
26 | import java.lang.annotation.Target;
27 |
28 | @Target({METHOD})
29 | @Retention(RUNTIME)
30 | public @interface Execute {
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/modules/integration/src/test/resources/extras/synapse_sample_161.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/modules/samples/services/EJBSampleBeans/src/samples/ejb/StoreRegistry.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package samples.ejb;
21 |
22 | import javax.ejb.Remote;
23 | import samples.bean.Store;
24 |
25 | /**
26 | * The remote interface of the StoreRegistry stateless session bean: defines methods that can be
27 | * remotely invoked on the EJB.
28 | */
29 | @Remote
30 | public interface StoreRegistry {
31 |
32 | public Store getStoreById(String storeId);
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/modules/samples/services/EJBSampleBeans/src/samples/ejb/StoreLocator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package samples.ejb;
21 |
22 | import javax.ejb.Remote;
23 | import samples.bean.Location;
24 |
25 | /**
26 | * The remote interface of the StoreLocator stateless session bean: defines methods that can be
27 | * remotely invoked on the EJB.
28 | */
29 | @Remote
30 | public interface StoreLocator {
31 |
32 | public String getClosestStore(Location loc);
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/modules/securevault/src/main/java/org/apache/synapse/securevault/DecryptionProvider.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.synapse.securevault;
20 |
21 | /**
22 | * Provides Decrypt operation
23 | */
24 | public interface DecryptionProvider {
25 |
26 | /**
27 | * Decrypts input cipher bytes
28 | *
29 | * @param cipherText as a byte array
30 | * @return plain text as byte array
31 | */
32 | public byte[] decrypt(byte[] cipherText);
33 | }
34 |
--------------------------------------------------------------------------------
/modules/securevault/src/main/java/org/apache/synapse/securevault/IKeyStoreLoader.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.synapse.securevault;
20 |
21 | import java.security.KeyStore;
22 |
23 | /**
24 | * Provides a way to load KeyStore
25 | */
26 | public interface IKeyStoreLoader {
27 |
28 | /**
29 | * returns an instance of KeyStore object
30 | *
31 | * @return KeyStore Instance
32 | */
33 | public abstract KeyStore getKeyStore();
34 | }
35 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/org/apache/synapse/mediators/transform/identity.xslt:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/repository/conf/sample/resources/synapse.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/metrics/Counter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.metrics;
21 | /*
22 | * This is the basic unit to get Global, Proxy Service or
23 | * Proxy Opertaion Level hit count.
24 | */
25 |
26 | public class Counter {
27 |
28 | private long count = 0;
29 |
30 | public synchronized void increment(){
31 | count++;
32 | }
33 |
34 | public long getCount() {
35 | return count;
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/modules/integration/src/test/java/org/apache/synapse/samples/framework/ProcessController.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.samples.framework;
21 |
22 | /**
23 | * Specifies the operations associated with controlling
24 | * the mediation engine - starting up and shutting down.
25 | */
26 | public interface ProcessController {
27 |
28 | public boolean startProcess();
29 |
30 | public boolean stopProcess();
31 |
32 | public String getServerName();
33 |
34 | }
--------------------------------------------------------------------------------
/repository/conf/sample/resources/script/stockquoteTransformRequest.py:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one
3 | # or more contributor license agreements. See the NOTICE file
4 | # distributed with this work for additional information
5 | # regarding copyright ownership. The ASF licenses this file
6 | # to you under the Apache License, Version 2.0 (the
7 | # "License"); you may not use this file except in compliance
8 | # with the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing,
13 | # software distributed under the License is distributed on an
14 | # * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | # KIND, either express or implied. See the License for the
16 | # specific language governing permissions and limitations
17 | # under the License.
18 | #
19 |
20 | from org.apache.synapse.util.xpath import SynapseXPath
21 |
22 | def transformRequest(mc):
23 | symbolXPath = SynapseXPath("//*[local-name()='Code']/text()")
24 | symbol = symbolXPath.stringValueOf(mc)
25 | mc.setPayloadXML('''
26 |
27 |
28 | ''' + symbol + '''
29 |
30 | ''')
31 |
32 |
33 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/mediators/eip/sample/MessageQueue.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.mediators.eip.sample;
21 |
22 | import org.apache.synapse.MessageContext;
23 |
24 | /**
25 | *
26 | */
27 | public interface MessageQueue {
28 |
29 | void add(MessageContext synCtx);
30 |
31 | MessageContext get();
32 |
33 | boolean isEmpty();
34 |
35 | boolean isPersistent();
36 |
37 | boolean persist();
38 |
39 | void load();
40 | }
41 |
--------------------------------------------------------------------------------
/modules/packaging/package-archetype/src/main/resources/META-INF/maven/archetype.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 | synapse-package
22 |
23 | src/main/assembly/bin.xml
24 | repository/conf/axis2.xml
25 | repository/conf/synapse.xml
26 | conf/log4j.properties
27 |
28 |
--------------------------------------------------------------------------------
/modules/tasks/src/main/java/org/apache/synapse/task/TaskConstants.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.synapse.task;
20 |
21 | /**
22 | * Constants related with task module
23 | */
24 | public final class TaskConstants {
25 | /* Key to refer Task Scheduler */
26 | public static final String TASK_SCHEDULER = "task_scheduler";
27 | /* Key to refer Task Description Repository*/
28 | public static final String TASK_DESCRIPTION_REPOSITORY = "task_description_repository";
29 | }
30 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/util/jaxp/SourceBuilderFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.util.jaxp;
21 |
22 | import org.apache.synapse.core.SynapseEnvironment;
23 |
24 | public interface SourceBuilderFactory {
25 | /**
26 | * Create a new {@link SourceBuilder} instance.
27 | *
28 | * @param synEnv the Synapse environment
29 | * @return the newly created instance
30 | */
31 | SourceBuilder createSourceBuilder(SynapseEnvironment synEnv);
32 | }
33 |
--------------------------------------------------------------------------------
/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/utils/sslcert/cache/ManageableCache.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.transport.utils.sslcert.cache;
21 |
22 | /**
23 | * A cache which needs to be managed by CacheManager needs to implement this interface.
24 | */
25 | public interface ManageableCache {
26 |
27 | public ManageableCacheValue getNextCacheValue();
28 |
29 | public int getCacheSize();
30 |
31 | public void resetIterator();
32 | }
33 |
--------------------------------------------------------------------------------
/repository/conf/sample/resources/spring/springCustomLogger.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
22 |
24 |
25 |
26 |
27 |
28 | "Synapse User"
29 | "usr@synapse.org"
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/modules/core/src/test/java/org/apache/synapse/mediators/AbstractMediatorTestCase.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.mediators;
21 |
22 | import junit.framework.TestCase;
23 | import org.apache.axiom.om.OMElement;
24 | import org.apache.synapse.config.SynapseConfigUtils;
25 |
26 | public abstract class AbstractMediatorTestCase extends TestCase {
27 |
28 | protected static OMElement createOMElement(String xml) {
29 | return SynapseConfigUtils.stringToOM(xml);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/org/apache/synapse/mediators/builtin/synapse-501-conf.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/modules/samples/services/FastStockQuoteService/src/samples/services/GetQuote.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package samples.services;
20 |
21 | public class GetQuote {
22 | String symbol;
23 |
24 | public GetQuote() {
25 | }
26 |
27 | public GetQuote(String symbol) {
28 | this.symbol = symbol;
29 | }
30 |
31 | public String getSymbol() {
32 | return symbol;
33 | }
34 |
35 | public void setSymbol(String symbol) {
36 | this.symbol = symbol;
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/modules/samples/services/SecureStockQuoteService/src/samples/services/GetQuote.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package samples.services;
20 |
21 | public class GetQuote {
22 | String symbol;
23 |
24 | public GetQuote() {
25 | }
26 |
27 | public GetQuote(String symbol) {
28 | this.symbol = symbol;
29 | }
30 |
31 | public String getSymbol() {
32 | return symbol;
33 | }
34 |
35 | public void setSymbol(String symbol) {
36 | this.symbol = symbol;
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/modules/samples/services/SimpleStockQuoteService/src/samples/services/GetQuote.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package samples.services;
20 |
21 | public class GetQuote {
22 | String symbol;
23 |
24 | public GetQuote() {
25 | }
26 |
27 | public GetQuote(String symbol) {
28 | this.symbol = symbol;
29 | }
30 |
31 | public String getSymbol() {
32 | return symbol;
33 | }
34 |
35 | public void setSymbol(String symbol) {
36 | this.symbol = symbol;
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/repository/conf/sample/synapse_sample_0.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/repository/conf/sample/synapse_sample_6.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/mediators/annotations/ReadAndUpdate.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.mediators.annotations;
21 |
22 | import static java.lang.annotation.ElementType.FIELD;
23 | import static java.lang.annotation.RetentionPolicy.RUNTIME;
24 |
25 | import java.lang.annotation.Retention;
26 | import java.lang.annotation.Target;
27 |
28 | @Target({FIELD})
29 | @Retention(RUNTIME)
30 | public @interface ReadAndUpdate {
31 |
32 | String value();
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/modules/transports/optional/fix/src/main/java/org/apache/synapse/transport/fix/AxisFIXException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.transport.fix;
21 |
22 | public class AxisFIXException extends RuntimeException{
23 |
24 | public AxisFIXException() {
25 | super();
26 | }
27 |
28 | public AxisFIXException(String message) {
29 | super(message);
30 | }
31 |
32 | public AxisFIXException(String message, Exception e) {
33 | super(message, e);
34 | }
35 | }
--------------------------------------------------------------------------------
/repository/conf/sample/synapse_sample_600.xml/proxy-services/proxy1.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/modules/commons/src/main/java/org/apache/synapse/commons/evaluators/source/SourceTextRetriever.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.commons.evaluators.source;
21 |
22 | import org.apache.synapse.commons.evaluators.EvaluatorContext;
23 | import org.apache.synapse.commons.evaluators.EvaluatorException;
24 |
25 | public interface SourceTextRetriever {
26 |
27 | public String getSource();
28 |
29 | public String getSourceText(EvaluatorContext context) throws EvaluatorException;
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/modules/extensions/src/test/java/org/apache/synapse/mediators/spring/TestMediateHandlerImpl.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.mediators.spring;
21 |
22 | import org.apache.synapse.MessageContext;
23 | import org.apache.synapse.TestMediateHandler;
24 |
25 | public class TestMediateHandlerImpl implements TestMediateHandler {
26 |
27 | public static int invokeCount = 0;
28 |
29 | @Override
30 | public void handle(MessageContext synCtx) {
31 | invokeCount++;
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/modules/samples/services/EJBSampleBeans/src/samples/ejb/ShoppingCart.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package samples.ejb;
21 |
22 | import javax.ejb.Remote;
23 |
24 | /**
25 | * The remote interface of the ShoppingCart stateful session bean: defines methods that can be
26 | * remotely invoked on the EJB.
27 | */
28 | @Remote
29 | public interface ShoppingCart {
30 |
31 | public void addItem(String itemId, int count);
32 |
33 | public float getTotal();
34 |
35 | public int getItemCount();
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/modules/securevault/src/main/java/org/apache/synapse/securevault/secret/mbean/SecretManagerAdminMBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.synapse.securevault.secret.mbean;
20 |
21 | /**
22 | * Admin service for managing SecretManager
23 | */
24 |
25 | public interface SecretManagerAdminMBean {
26 |
27 | /**
28 | * Initialize the SecretManager
29 | */
30 | public void init();
31 |
32 | /**
33 | * Shutting Down the SecretManager
34 | */
35 | public void shutDown();
36 | }
37 |
--------------------------------------------------------------------------------
/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/utils/sslcert/RevocationStatus.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.transport.utils.sslcert;
21 |
22 | public enum RevocationStatus {
23 |
24 | GOOD("Good"), UNKNOWN("Unknown"), REVOKED("Revoked");
25 | private String message;
26 |
27 | private RevocationStatus(String message) {
28 | this.message = message;
29 | }
30 |
31 | public String getMessage() {
32 | return message;
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/synapse-libraries/skeleton/linkedin_core/show_headline.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/modules/samples/services/SecureStockQuoteService/src/samples/services/GetFullQuote.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package samples.services;
21 |
22 | public class GetFullQuote {
23 | String symbol;
24 |
25 | public GetFullQuote() {
26 | }
27 |
28 | public GetFullQuote(String symbol) {
29 | this.symbol = symbol;
30 | }
31 |
32 | public String getSymbol() {
33 | return symbol;
34 | }
35 |
36 | public void setSymbol(String symbol) {
37 | this.symbol = symbol;
38 | }
39 | }
--------------------------------------------------------------------------------
/modules/samples/services/SimpleStockQuoteService/src/samples/services/GetFullQuote.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package samples.services;
21 |
22 | public class GetFullQuote {
23 | String symbol;
24 |
25 | public GetFullQuote() {
26 | }
27 |
28 | public GetFullQuote(String symbol) {
29 | this.symbol = symbol;
30 | }
31 |
32 | public String getSymbol() {
33 | return symbol;
34 | }
35 |
36 | public void setSymbol(String symbol) {
37 | this.symbol = symbol;
38 | }
39 | }
--------------------------------------------------------------------------------
/modules/core/src/test/resources/org/apache/synapse/core/axis2/root.wsdl:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/synapse-libraries/skeleton/linkedin_core/post_status.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/modules/xar-maven-plugin/src/main/java/org/apache/synapse/maven/xar/ClassScannerException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.maven.xar;
21 |
22 | public class ClassScannerException extends Exception {
23 | private static final long serialVersionUID = 7666486328035342350L;
24 |
25 | public ClassScannerException(String message, Throwable cause) {
26 | super(message, cause);
27 | }
28 |
29 | public ClassScannerException(String message) {
30 | super(message);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/repository/conf/sample/resources/fix/conn.properties:
--------------------------------------------------------------------------------
1 | # Licensed to the Apache Software Foundation (ASF) under one
2 | # or more contributor license agreements. See the NOTICE file
3 | # distributed with this work for additional information
4 | # regarding copyright ownership. The ASF licenses this file
5 | # to you under the Apache License, Version 2.0 (the
6 | # "License"); you may not use this file except in compliance
7 | # with the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing,
12 | # software distributed under the License is distributed on an
13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 | # KIND, either express or implied. See the License for the
15 | # specific language governing permissions and limitations
16 | # under the License.
17 |
18 | #initial context factory
19 |
20 | #java.naming.factory.initial =org.apache.qpid.jndi.PropertiesFileInitialContextFactory
21 |
22 | # register some connection factories
23 | # connectionfactory.[jndiname] = [ConnectionURL]
24 | connectionfactory.qpidConnectionfactory=amqp://guest:guest@clientid/test?brokerlist='tcp://localhost:5672'
25 |
26 | # Register an AMQP destination in JNDI
27 | # destination.[jndiName] = [BindingURL]
28 | destination.directQueue=direct://amq.direct//QpidStockQuoteService
29 |
30 |
--------------------------------------------------------------------------------
/repository/conf/sample/resources/script/stockquoteTransformResponse.js:
--------------------------------------------------------------------------------
1 | /**/
19 |
20 |
21 | function transformResponse(mc) {
22 | var symbol = mc.getPayloadXML()..*::symbol.toString();
23 | var price = mc.getPayloadXML()..*::last.toString();
24 | mc.setPayloadXML(
25 |
26 | {symbol}
27 | {price}
28 | );
29 | }
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/modules/securevault/src/main/java/org/apache/synapse/securevault/secret/SecretCallbackHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.synapse.securevault.secret;
20 |
21 | /**
22 | * Get the required secrets needed from varies secret providers
23 | */
24 | public interface SecretCallbackHandler {
25 |
26 | /**
27 | * Retrieve the secrets requested in the provided SecretCallbacks.
28 | *
29 | * @param secretCallbacks secretCallbacks
30 | */
31 | public void handle(SecretCallback[] secretCallbacks);
32 | }
33 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/synapse-libraries/synapse-eipcore-lib/artifacts.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | eip synapse library
27 |
28 |
29 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/config/xml/AnonymousListMediator.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.synapse.config.xml;
20 |
21 | import org.apache.synapse.mediators.AbstractListMediator;
22 | import org.apache.synapse.MessageContext;
23 |
24 | /**
25 | * This mediator represents an unnamed list mediator
26 | */
27 | public class AnonymousListMediator extends AbstractListMediator {
28 |
29 | @Override
30 | public boolean mediate(MessageContext synCtx) {
31 | return super.mediate(synCtx);
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/synapse-libraries/synapse-eipcore-lib/eip_messageRouting/template_dynamic_router.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/modules/samples/services/JAXWSStockQuoteService/src/samples/services/GetQuote.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package samples.services;
20 |
21 | import javax.xml.bind.annotation.XmlElement;
22 | import javax.xml.bind.annotation.XmlType;
23 |
24 | @XmlType(name="GetQuote")
25 | public class GetQuote {
26 | private String symbol;
27 |
28 | @XmlElement(required=true)
29 | public String getSymbol() {
30 | return symbol;
31 | }
32 |
33 | public void setSymbol(String symbol) {
34 | this.symbol = symbol;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/repository/conf/sample/resources/policy/sample_policy_1.xml:
--------------------------------------------------------------------------------
1 |
19 |
20 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/eventing/SynapseEventingConstants.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.eventing;
21 |
22 | /**
23 | *
24 | */
25 | public class SynapseEventingConstants {
26 | public static final String TOPIC_FILTER_DIALECT =
27 | "http://synapse.apache.org/eventing/dialect/topicFilter";
28 | public static final String STATIC_ENTRY = "staticEntry";
29 | public static final String SERVICE_TYPE = "serviceType";
30 | public static final String EVENTING_ST = "eventing";
31 | }
32 |
--------------------------------------------------------------------------------
/modules/transports/core/nhttp/src/main/java/org/apache/synapse/transport/utils/sslcert/RevocationVerifier.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.transport.utils.sslcert;
21 |
22 | import java.security.cert.X509Certificate;
23 |
24 | /**
25 | * All the revocation verifiers should implement this interface.
26 | */
27 | public interface RevocationVerifier {
28 |
29 | public RevocationStatus checkRevocationStatus(X509Certificate peerCert, X509Certificate issuerCert)
30 | throws CertificateVerificationException;
31 | }
32 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/eventing/SynapseEventFilter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.eventing;
21 |
22 | import org.apache.synapse.MessageContext;
23 |
24 | /**
25 | * Synapse Event Filter that use the message context to do filtering.
26 | */
27 | public interface SynapseEventFilter {
28 | /**
29 | * Check the incoming event satisfied with the defined filter
30 | * @param mc Message Context
31 | * @return True|False
32 | */
33 | public boolean isSatisfied(MessageContext mc);
34 | }
35 |
--------------------------------------------------------------------------------
/modules/samples/services/SecureStockQuoteService/src/samples/services/GetMarketActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package samples.services;
21 |
22 | public class GetMarketActivity {
23 | String[] symbols;
24 |
25 | public GetMarketActivity() {
26 | }
27 |
28 | public GetMarketActivity(String[] symbols) {
29 | this.symbols = symbols;
30 | }
31 |
32 | public String[] getSymbols() {
33 | return symbols;
34 | }
35 |
36 | public void setSymbols(String[] symbols) {
37 | this.symbols = symbols;
38 | }
39 | }
--------------------------------------------------------------------------------
/modules/samples/services/SimpleStockQuoteService/src/samples/services/GetMarketActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package samples.services;
21 |
22 | public class GetMarketActivity {
23 | String[] symbols;
24 |
25 | public GetMarketActivity() {
26 | }
27 |
28 | public GetMarketActivity(String[] symbols) {
29 | this.symbols = symbols;
30 | }
31 |
32 | public String[] getSymbols() {
33 | return symbols;
34 | }
35 |
36 | public void setSymbols(String[] symbols) {
37 | this.symbols = symbols;
38 | }
39 | }
--------------------------------------------------------------------------------
/repository/conf/sample/resources/validate/validate.xsd:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/Nameable.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.synapse;
20 |
21 | /**
22 | * Nameable indicates whether an abstraction has a name.
23 | */
24 | public interface Nameable {
25 | /**
26 | * Get the name of an abstraction
27 | *
28 | * @return String Representation of name
29 | */
30 | String getName();
31 |
32 | /**
33 | * Set the name of an abstraction
34 | *
35 | * @param name String Representation of name
36 | */
37 | void setName(String name);
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/modules/core/src/test/java/org/apache/synapse/config/xml/rest/TestHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.config.xml.rest;
21 |
22 | import org.apache.synapse.MessageContext;
23 | import org.apache.synapse.rest.Handler;
24 |
25 | public class TestHandler implements Handler {
26 |
27 | @Override
28 | public boolean handleRequest(MessageContext messageContext) {
29 | return true;
30 | }
31 |
32 | @Override
33 | public boolean handleResponse(MessageContext messageContext) {
34 | return true;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/util/jaxp/DOOMSourceBuilderFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.util.jaxp;
21 |
22 | import org.apache.synapse.core.SynapseEnvironment;
23 |
24 | /**
25 | * {@link SourceBuilderFactory} implementation that creates {@link DOOMSourceBuilder}
26 | * instances.
27 | */
28 | public class DOOMSourceBuilderFactory implements SourceBuilderFactory {
29 | @Override
30 | public SourceBuilder createSourceBuilder(SynapseEnvironment synEnv) {
31 | return new DOOMSourceBuilder();
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/repository/conf/sample/synapse_sample_11.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 | file:./repository/conf/sample/resources/
26 | 15000
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/mediators/annotations/UpdateMessage.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.mediators.annotations;
21 |
22 | import static java.lang.annotation.ElementType.FIELD;
23 | import static java.lang.annotation.ElementType.METHOD;
24 | import static java.lang.annotation.RetentionPolicy.RUNTIME;
25 |
26 | import java.lang.annotation.Retention;
27 | import java.lang.annotation.Target;
28 |
29 | @Target({FIELD, METHOD})
30 | @Retention(RUNTIME)
31 | public @interface UpdateMessage {
32 |
33 | String value();
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/util/jaxp/AXIOMSourceBuilderFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.util.jaxp;
21 |
22 | import org.apache.synapse.core.SynapseEnvironment;
23 |
24 | /**
25 | * {@link SourceBuilderFactory} implementation that creates {@link AXIOMSourceBuilder}
26 | * instances.
27 | */
28 | public class AXIOMSourceBuilderFactory implements SourceBuilderFactory {
29 | @Override
30 | public SourceBuilder createSourceBuilder(SynapseEnvironment synEnv) {
31 | return new AXIOMSourceBuilder();
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/repository/conf/sample/resources/validate/validate3.xsd:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/modules/commons/src/main/java/org/apache/synapse/commons/evaluators/EvaluatorException.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 |
21 | package org.apache.synapse.commons.evaluators;
22 |
23 | /**
24 | * An Exception used by Evaluators to signal configuration errors as
25 | * well as execution errors.
26 | */
27 | public class EvaluatorException extends Exception {
28 |
29 | public EvaluatorException(String message, Throwable cause) {
30 | super(message, cause);
31 | }
32 |
33 | public EvaluatorException(String message) {
34 | super(message);
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/mediators/annotations/ReadFromMessage.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.mediators.annotations;
21 |
22 | import static java.lang.annotation.ElementType.FIELD;
23 | import static java.lang.annotation.ElementType.METHOD;
24 | import static java.lang.annotation.RetentionPolicy.RUNTIME;
25 |
26 | import java.lang.annotation.Retention;
27 | import java.lang.annotation.Target;
28 |
29 | @Target({FIELD, METHOD})
30 | @Retention(RUNTIME)
31 | public @interface ReadFromMessage {
32 |
33 | String value();
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/modules/core/src/main/java/org/apache/synapse/util/jaxp/StreamSourceBuilderFactory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.util.jaxp;
21 |
22 | import org.apache.synapse.core.SynapseEnvironment;
23 |
24 | /**
25 | * {@link SourceBuilderFactory} implementation that creates {@link StreamSourceBuilder}
26 | * instances.
27 | */
28 | public class StreamSourceBuilderFactory implements SourceBuilderFactory {
29 | @Override
30 | public SourceBuilder createSourceBuilder(SynapseEnvironment synEnv) {
31 | return new StreamSourceBuilder(synEnv);
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/modules/securevault/src/main/java/org/apache/synapse/securevault/ICACertsLoader.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package org.apache.synapse.securevault;
20 |
21 | import java.security.KeyStore;
22 |
23 | /**
24 | * ICACertsLoader provides an uniform interface to create a keyStore containing CA certs
25 | * (trust store)
26 | */
27 | public interface ICACertsLoader {
28 | /**
29 | * @param CACertificateFilesPath Path to the CA certificates directory
30 | * @return KeyStore Instance
31 | */
32 | public abstract KeyStore loadTrustStore(String CACertificateFilesPath);
33 | }
34 |
--------------------------------------------------------------------------------
/modules/samples/services/EJBSampleBeans/src/samples/ejb/StoreRegistryBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | package samples.ejb;
20 |
21 | import javax.ejb.Stateless;
22 | import samples.bean.Store;
23 | import samples.util.StoreRegisterUtil;
24 |
25 | /**
26 | * The implementation of the StoreRegistry stateless session bean which does not keep an internal
27 | * state.
28 | */
29 | @Stateless
30 | public class StoreRegistryBean implements StoreRegistry {
31 |
32 | public Store getStoreById(String storeId) {
33 | return StoreRegisterUtil.getStoreById(storeId);
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/modules/patches/src/main/assembly/jars.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 | jars
22 | false
23 |
24 | zip
25 |
26 |
27 |
28 | target/jars
29 | /
30 |
31 | *.jar
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/modules/samples/services/EJBSampleBeans/src/samples/ejb/StoreLocatorBean.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package samples.ejb;
21 |
22 | import javax.ejb.Stateless;
23 | import samples.bean.Location;
24 | import samples.util.StoreRegisterUtil;
25 |
26 | /**
27 | * The implementation of the StoreLocator stateless session bean which does not keep an internal
28 | * state.
29 | */
30 | @Stateless
31 | public class StoreLocatorBean implements StoreLocator {
32 |
33 | public String getClosestStore(Location loc) {
34 | return StoreRegisterUtil.getClosestStore(loc);
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/modules/commons/src/main/java/org/apache/synapse/commons/executors/BeforeExecuteHandler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | package org.apache.synapse.commons.executors;
21 |
22 | /**
23 | * This class is executed before message is put in to the queue. User can
24 | * use this class to specify their own properties.
25 | */
26 | public interface BeforeExecuteHandler {
27 | /**
28 | * This method is called before putting the message in to the queue.
29 | *
30 | * @param importance importance of the item put in to the queue
31 | */
32 | void beforeExecute(Importance importance);
33 | }
34 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/synapse-libraries/skeleton/linkedin_core/send_message.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/modules/core/src/test/resources/synapse-libraries/synapse-eipcore-lib/eip_systemManagement/artifact.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | template_wire_tap.xml
27 | Wire Tap eip library function
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------