org.wso2.carbon.application.mgt.stub.upload.CarbonAppUploaderStub Java Examples
The following examples show how to use
org.wso2.carbon.application.mgt.stub.upload.CarbonAppUploaderStub.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CarbonAppUploaderClient.java From carbon-commons with Apache License 2.0 | 5 votes |
public CarbonAppUploaderClient(ConfigurationContext ctx, String serviceURL, String cookie) throws AxisFault { stub = new CarbonAppUploaderStub(ctx, serviceURL); Options options = stub._getServiceClient().getOptions(); options.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE); options.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie); options.setManageSession(true); //Increase the time out when sending large attachments options.setTimeOutInMilliSeconds(10000); uploadServiceTypeList = new ArrayList<UploadedFileItem>(); }
Example #2
Source File: CarbonAppUploaderClient.java From product-es with Apache License 2.0 | 4 votes |
public CarbonAppUploaderClient(String backendUrl, String sessionCookie) throws AxisFault { String endPoint = backendUrl + serviceName; carbonAppUploaderStub = new CarbonAppUploaderStub(endPoint); AuthenticateStub.authenticateStub(sessionCookie, carbonAppUploaderStub); }
Example #3
Source File: CarbonAppUploaderClient.java From product-es with Apache License 2.0 | 4 votes |
public CarbonAppUploaderClient(String backendUrl, String userName, String password) throws AxisFault { String endPoint = backendUrl + serviceName; carbonAppUploaderStub = new CarbonAppUploaderStub(endPoint); AuthenticateStub.authenticateStub(userName, password, carbonAppUploaderStub); }