This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[server] | |
hostname = "localhost" | |
node_ip = "127.0.0.1" | |
#offset=0 | |
mode = "single" #single or ha | |
base_path = "${carbon.protocol}://${carbon.host}:${carbon.management.port}" | |
#discard_empty_caches = false | |
server_role = "default" | |
[super_admin] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ID> 123<ID> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<APIUsageTracking> | |
<SkipEventReceiverConnection>false</SkipEventReceiverConnection> | |
<PublisherClass>org.wso2.carbon.sample.apimgt.usage.publisher.CustomAPIMgtUsageDataBridgeDataPublisher</PublisherClass> | |
<BAMServerURL>{tcp://localhost:7612/}</BAMServerURL> | |
<BAMUsername>admin</BAMUsername> | |
<BAMPassword>admin</BAMPassword> | |
<PublishResponseMessageSize>false</PublishResponseMessageSize> | |
<Streams> | |
<Request> | |
<Name>org.wso2.apimgt.statistics.request</Name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.wso2.carbon.sample.apimgt.usage.publisher; | |
/** | |
* Created by NADEESHA on 12/14/2015. | |
*/ | |
import org.wso2.carbon.apimgt.usage.publisher.APIMgtUsageDataBridgeDataPublisher; | |
import org.wso2.carbon.apimgt.usage.publisher.APIMgtUsageDataPublisher; | |
import org.wso2.carbon.apimgt.usage.publisher.DataPublisherUtil; | |
import org.wso2.carbon.apimgt.usage.publisher.dto.FaultPublisherDTO; | |
import org.wso2.carbon.apimgt.usage.publisher.dto.RequestPublisherDTO; | |
import org.wso2.carbon.apimgt.usage.publisher.dto.ResponsePublisherDTO; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.wso2.carbon.sample.apimgt.usage.publisher.dto; | |
/** | |
* Created by NADEESHA on 12/14/2015. | |
*/ | |
import org.wso2.carbon.apimgt.usage.publisher.DataPublisherUtil; | |
import org.wso2.carbon.apimgt.usage.publisher.dto.ResponsePublisherDTO; | |
public class CustomDataBridgeResponsePublisherDTO extends ResponsePublisherDTO { | |
String customValue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configs: { | |
landingPage: '/pages/gc-landing', | |
disabledAssets: ['ebook','proxy','sequence','service','servicex','uri', | |
'site','provider','gadget','document','endpoint','topic','reply', 'server'], | |
uiDisabledAssets: ['note'] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<proxy xmlns="http://ws.apache.org/ns/synapse" name="DiodeProxy" transports="https http" startOnLoad="true" trace="disable"> | |
<description/> | |
<target> | |
<inSequence> | |
<property action="set" name="OUT_ONLY" value="true"/> | |
<property action="set" name="FORCE_SC_ACCEPTED" scope="axis2" value="true"/> | |
<send> | |
<endpoint> | |
<address uri=" "/> <!-- Specify the JMS connection URL here --> | |
</endpoint> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ns:return xmlns:ax21="http://sample.wso2.com/xsd"> | |
<ax21:workorderid>A1234</ax21:workorderid> | |
<ax21:name>WSO2 Inc</ax21:name> | |
<ax21:address>787 Castro Street, Mountain View, CA 94041</ax21:address> | |
</ns:return> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class workOrderResponse { | |
String workOrderId; | |
String name; | |
String address; | |
public workOrderResponse (){ | |
workOrderId= "A1234"; | |
name= "WSO2 Inc"; | |
address= "787 Castro Street, Mountain View, CA 94041"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public workOrderResponse getWorkOrders(String version){ | |
System.out.println( "City Works Service,get workorders "); | |
return new workOrderResponse(); | |
} |
NewerOlder