Package com.adobe.xfa.protocol
Class SysProtocol
- java.lang.Object
-
- com.adobe.xfa.protocol.SysProtocol
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.adobe.xfa.protocol.Protocol
Protocol.MultiPartDesc, Protocol.PostRsvp, Protocol.SectionDataOption, Protocol.SimplePostData, Protocol.TrustType
-
-
Constructor Summary
Constructors Constructor Description SysProtocol()The default c'tor -- instantiate a Protocol object.SysProtocol(AuthenticationHandler authenticationHandler, java.net.URLStreamHandler urlStreamHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreamget(java.lang.String sUrl)Method to get (download) a file designated by the given URL.AuthenticationHandlergetAuthenticationHandler()Gets this protocol's authentication handler.java.net.URLStreamHandlergetURLStreamHandler()Gets the protocol's URL stream handler.booleanisTrusted(java.lang.String sURL, Protocol.TrustType eTrustType, boolean bThrow)Determines if the given URL can be trusted according to the given type of enforcement rule.Protocol.PostRsvppost(Protocol.SimplePostData oData, java.lang.String sUrl)Method to post form data to a designated URL.Protocol.PostRsvppost(java.util.List<? extends Protocol.MultiPartDesc> oData, java.lang.String sUrl)Virtual method to post form data to a designated URL.voidput(java.io.InputStream iFile, java.lang.String sUrl)Method to put (upload) memory to a designated URL.voidput(java.lang.String sFileName, java.lang.String sUrl)Method to put (upload) the given file to a file designated by the given URL.java.lang.Stringscheme()Gets the protocol's scheme.
-
-
-
Constructor Detail
-
SysProtocol
public SysProtocol()
The default c'tor -- instantiate a Protocol object.
-
SysProtocol
public SysProtocol(AuthenticationHandler authenticationHandler, java.net.URLStreamHandler urlStreamHandler)
-
-
Method Detail
-
get
public java.io.InputStream get(java.lang.String sUrl)
Method to get (download) a file designated by the given URL.
-
put
public void put(java.lang.String sFileName, java.lang.String sUrl)Method to put (upload) the given file to a file designated by the given URL.
-
put
public void put(java.io.InputStream iFile, java.lang.String sUrl)Method to put (upload) memory to a designated URL. The Internet server targeted by the URL must obviously be configured to allow uploads.
-
post
public Protocol.PostRsvp post(Protocol.SimplePostData oData, java.lang.String sUrl)
Method to post form data to a designated URL. The targeted URL must obviously be designed to read the data posted.
-
post
public Protocol.PostRsvp post(java.util.List<? extends Protocol.MultiPartDesc> oData, java.lang.String sUrl)
Virtual method to post form data to a designated URL. The targeted URL must obviously be designed to read the data posted.
-
getAuthenticationHandler
public AuthenticationHandler getAuthenticationHandler()
Gets this protocol's authentication handler.- Specified by:
getAuthenticationHandlerin interfaceProtocol- Returns:
- an AuthenticationHandler, or
null.
-
getURLStreamHandler
public java.net.URLStreamHandler getURLStreamHandler()
Description copied from interface:ProtocolGets the protocol's URL stream handler. This method is required for all implementations of custom protocols and must return a non-null value.- Specified by:
getURLStreamHandlerin interfaceProtocol- Returns:
- an URL stream handler.
-
isTrusted
public boolean isTrusted(java.lang.String sURL, Protocol.TrustType eTrustType, boolean bThrow)Description copied from interface:ProtocolDetermines if the given URL can be trusted according to the given type of enforcement rule.
-
scheme
public java.lang.String scheme()
Description copied from interface:ProtocolGets the protocol's scheme. This method is required for all implementations of custom protocols and must return a non-null, non-empty value.
-
-