public interface ProtocolHost
CalcParser (FormCalc scripting engine) can access
a protocol host whenever it needs to get/put/post url datas.
FormCalc applications need to inform the FormCalc script engine
that they are capable of supporting the ProtocolHost
interface by invoking the
CalcParser.setProtocolHost(ProtocolHost)
method.
| Modifier and Type | Method and Description |
|---|---|
CalcSymbol |
getUrl(String sUrl)
Abstract method to get data from an URL.
|
CalcSymbol |
postUrl(String sUrl,
String sSoapHeader,
String sData,
String sContentType,
String sEnc)
Abstract method to post data to an URL and get its response.
|
CalcSymbol |
putUrl(String sUrl,
String sData,
String sEnc)
Abstract method to put data to an URL.
|
CalcSymbol getUrl(String sUrl) throws CalcException
sUrl - the URL to get.{@link - CalcException}
upon error or catatrophic failure.CalcExceptionCalcSymbol putUrl(String sUrl, String sData, String sEnc) throws CalcException
sUrl - the URL to put.sData - the data to put.sEnc - the encoding to use.{@link - CalcException}
upon error or catatrophic failure.CalcExceptionCalcSymbol postUrl(String sUrl, String sSoapHeader, String sData, String sContentType, String sEnc) throws CalcException
sUrl - the URL to post.sSoapHeader - an optional post header.sData - the data to post.sEnc - the encoding to use.{@link - CalcException}
upon error or catatrophic failure.CalcExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved