Package com.adobe.xfa.protocol
Class SysProtocol
java.lang.Object
com.adobe.xfa.protocol.SysProtocol
- All Implemented Interfaces:
Protocol
-
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
ConstructorsConstructorDescriptionThe default c'tor -- instantiate a Protocol object.SysProtocol(AuthenticationHandler authenticationHandler, URLStreamHandler urlStreamHandler) -
Method Summary
Modifier and TypeMethodDescriptionMethod to get (download) a file designated by the given URL.Gets this protocol's authentication handler.Gets the protocol's URL stream handler.booleanisTrusted(String sURL, Protocol.TrustType eTrustType, boolean bThrow) Determines if the given URL can be trusted according to the given type of enforcement rule.post(Protocol.SimplePostData oData, String sUrl) Method to post form data to a designated URL.post(List<? extends Protocol.MultiPartDesc> oData, String sUrl) Virtual method to post form data to a designated URL.voidput(InputStream iFile, String sUrl) Method to put (upload) memory to a designated URL.voidMethod to put (upload) the given file to a file designated by the given URL.scheme()Gets the protocol's scheme.
-
Constructor Details
-
SysProtocol
public SysProtocol()The default c'tor -- instantiate a Protocol object. -
SysProtocol
-
-
Method Details
-
get
Method to get (download) a file designated by the given URL. -
put
Method to put (upload) the given file to a file designated by the given URL. -
put
Method to put (upload) memory to a designated URL. The Internet server targeted by the URL must obviously be configured to allow uploads. -
post
Method to post form data to a designated URL. The targeted URL must obviously be designed to read the data posted. -
post
Virtual method to post form data to a designated URL. The targeted URL must obviously be designed to read the data posted. -
getAuthenticationHandler
Gets this protocol's authentication handler.- Specified by:
getAuthenticationHandlerin interfaceProtocol- Returns:
- an AuthenticationHandler, or
null.
-
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
Description copied from interface:ProtocolDetermines if the given URL can be trusted according to the given type of enforcement rule. -
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.
-