Package org.jitterbit.integration.data

Examples of org.jitterbit.integration.data.CallRestrictions


    /**
     * Populates the fields in this panel with the values from the specified <tt>wsCall</tt>.
     */
    public void setValues(WebServiceCall wsCall) {
        CallRestrictions r = wsCall.getCallRestrictions();
        if (r == null) {
            dataLimitField.setValue("");
            delayField.setValue("");
            sizeUnitCombo.setSelectedIndex(0);
        } else {
            StorageSizeUnit sizeUnit = r.getMaximumSizeUiUnit();
            if (sizeUnit == null) {
                dataLimitField.setValue(0);
            } else {
                dataLimitField.setValue(r.getMaximumSizeInBytes() / sizeUnit.inBytes());
            }
            delayField.setValue(r.getMinimumCallDelayInMilliSecs());
            sizeUnitCombo.setSelectedItem(sizeUnit);
        }
    }
View Full Code Here


     */
    public CallRestrictions getCallRestrictions(WebServiceCall ws) throws IllegalStateException {
        Long delay = getCallDelay();
        StorageSizeUnit sizeUnit = (StorageSizeUnit) sizeUnitCombo.getSelectedItem();
        Long maxDataToPost = getMaxDataToPost(sizeUnit);
        CallRestrictions r = null;
        if (delay != null || maxDataToPost != null) {
            r = new CallRestrictions(ws);
            if (delay != null) {
                r.setMinimumCallDelayInMilliSecs(delay.longValue());
            }
            if (maxDataToPost != null) {
                r.setMaximumSizeInBytes(maxDataToPost.longValue());
                r.setMaximumSizeUiUnit(sizeUnit);
            }
        }
        return r;
    }
View Full Code Here

    private void updateWebServiceCall(WebServiceCall wsCall) throws DeployException {
        // Add the WSDL file.
        WsdlFile wsdlFile = wsCall.getWsdlFile();

        // Add call restrictions.
        CallRestrictions restrictions = wsCall.getCallRestrictions();
        String[] values = restrictions.getPropertyValues(wsCall.getID().toString(), 1);
        m_updatedCallRestrictions.add(getInterchangeDataRow(values));

        try {
            String wsdlLocator = wsdlFile.getLocator();
            if (isUrl(wsdlLocator))
View Full Code Here

     * @see #setCallRestrictions(CallRestrictions)
     * @see CallRestrictions#getCopy()
     */
    @Override
    public CallRestrictions getCallRestrictions() {
        return (callRestriction == null) ? new CallRestrictions(this) : callRestriction.getCopy();
    }
View Full Code Here

     * @see CallRestrictions#getCopy()
     */
    public void setCallRestrictions(CallRestrictions restriction) {
        if ((restriction == null && callRestriction != null)
                        || (restriction != null && !restriction.equals(callRestriction))) {
            CallRestrictions old = callRestriction;
            callRestriction = (restriction == null ? null : restriction.getCopy());
            firePropertyChange(CALL_RESTRICTION, old, restriction);
        }
    }
View Full Code Here

    }

    private void restoreCallRestrictions(Persistor p) {
        Persistor child = p.getFirstChild("CallRestrictions");
        if (child != null) {
            callRestriction = new CallRestrictions();
            callRestriction.restoreFrom(child);
        }
    }
View Full Code Here

            fatal(WebServiceCallMessages.getString("WebServiceCallValidator.UrlMissing"));
        }
    }

    private void validateCallRestrictions() {
        CallRestrictions restrictions = wsCall.getCallRestrictions();
        validateCallDelay(restrictions);
        validatePostingSize(restrictions);
        validateRetries(restrictions);
        validateRetryDelay(restrictions);
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.CallRestrictions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.