public interface DestinationFacade
Destination
s and RfcDestination
s.Modifier and Type | Method and Description |
---|---|
void |
declareDestinations(Collection<String> destinationNames)
Declares the given destination names.
|
Destination |
getDestination(String destinationName)
Returns the
Destination for the given name. |
Class<? extends Destination> |
getDestinationClass()
Returns the platform-specific implementation class of
Destination . |
Map<String,Destination> |
getDestinationsByName()
Returns all destinations that are of type
DestinationType.HTTP by their names. |
DestinationType |
getDestinationType(String destinationName)
Returns the
DestinationType of the destination with the given name. |
GenericDestination |
getGenericDestination(String destinationName)
Returns the
GenericDestination for the given name. |
Class<? extends GenericDestination> |
getGenericDestinationClass()
Returns the platform-specific implementation class of
GenericDestination . |
Map<String,GenericDestination> |
getGenericDestinationsByName()
Returns all destinations by their names.
|
RfcDestination |
getRfcDestination(String destinationName)
Returns the
RfcDestination for the given name. |
Class<? extends RfcDestination> |
getRfcDestinationClass()
Returns the platform-specific implementation class of
RfcDestination . |
Map<String,RfcDestination> |
getRfcDestinationsByName()
Returns all destinations that are of type
DestinationType.RFC by their names. |
@Nonnull Class<? extends GenericDestination> getGenericDestinationClass()
GenericDestination
. For internal use only.@Nonnull Class<? extends Destination> getDestinationClass()
Destination
. For internal use only.@Nonnull Class<? extends RfcDestination> getRfcDestinationClass()
RfcDestination
. For internal use only.void declareDestinations(@Nonnull Collection<String> destinationNames)
getDestination(String)
and getDestinationsByName()
, for example, during application
startup within a ServletContextListener.
Notes:
destinationNames
- The collection of all destination names that should get declared.DestinationDeclarator
,
DestinationsRequestContextListener
@Nonnull DestinationType getDestinationType(@Nonnull String destinationName) throws DestinationNotFoundException, DestinationAccessException
DestinationType
of the destination with the given name.destinationName
- The destination name to get the destination type for.DestinationNotFoundException
- If no destination with the given name can be found.DestinationAccessException
- If there is an issue while accessing destination information.@Nonnull GenericDestination getGenericDestination(@Nonnull String destinationName) throws DestinationNotFoundException, DestinationAccessException
GenericDestination
for the given name.destinationName
- The destination name to get the associated destination for.DestinationNotFoundException
- If the GenericDestination
cannot be found.DestinationAccessException
- If there is an issue while accessing destination information.@Nonnull Destination getDestination(@Nonnull String destinationName) throws DestinationNotFoundException, DestinationAccessException
Destination
for the given name.
Note: The destination must be of type DestinationType.HTTP
, otherwise an exception is thrown. You can
check the type of the destination with getDestinationType(String)
.
destinationName
- The destination name to the get the HTTP-destination for.DestinationNotFoundException
- If the Destination
cannot be found.DestinationAccessException
- If the destination is not of type DestinationType.HTTP
or there is an issue while accessing
destination information.@Nonnull RfcDestination getRfcDestination(@Nonnull String destinationName) throws DestinationNotFoundException, DestinationAccessException
RfcDestination
for the given name.
Note: The destination must be of type DestinationType.RFC
, otherwise an exception is thrown. You can
check the type of the destination with getDestinationType(String)
.
destinationName
- The destination name to get the RFC-destination for.DestinationNotFoundException
- If the RfcDestination
cannot be found.DestinationAccessException
- If the destination is not of type DestinationType.RFC
or there is an issue while accessing
destination information.@Nonnull Map<String,GenericDestination> getGenericDestinationsByName() throws DestinationAccessException
DestinationAccessException
- If there is an issue while accessing destination information.@Nonnull Map<String,Destination> getDestinationsByName() throws DestinationAccessException
DestinationType.HTTP
by their names.
To get all destinations, irrespective of their type, use getGenericDestinationsByName()
.
DestinationAccessException
- If there is an issue while accessing destination information.@Nonnull Map<String,RfcDestination> getRfcDestinationsByName() throws DestinationAccessException
DestinationType.RFC
by their names.
To get all destinations, irrespective of their type, use getGenericDestinationsByName()
.
DestinationAccessException
- If there is an issue while accessing destination information.Copyright © 2018 SAP SE. All rights reserved.