|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
J2EE service for obtaining connections to backend systems.
To use, add a classloader reference from you application to
tc/sec/destinations/service and tc/sec/destinations/interface
Code example for obtaining a HTTP destination
Context ctx = new InitialContext();
DestinationService dstService = (DestinationService) ctx.lookup(DestinationService.JNDI_KEY);
Destination destination = dstService.getDestination(type, name);
HTTPDestination myDestination = (HTTPDestination ) dst.getDestination("HTTP","dst-1");
HttpURLConnection connection = myDestination.getURLConnection();
| Field Summary | |
static String |
JNDI_KEY
JNDI name under which the service is registered. |
| Method Summary | |
Destination |
createDestination(String type)
Create a destination of a given destination type. |
Destination |
createDestination(String type,
Object data)
Return an instance of a defined destination by passing over the configuration data |
Destination |
getDestination(String type,
String name)
Return an instance of a defined destination |
List |
getDestinationNames(String destinationType)
Return an Iterator with known destination names for a destination type. |
List |
getDestinationTypes()
Return an Iterator with known destination types. |
Hashtable |
getKeystoreViews()
Reads the list of keystore views and client certificates from the keystore service The name of the views are taken as the keys for the hashtable, with the name of the aliases in the keystore stored as List Used internally |
Object |
getUIMetaData(String type,
Object data)
Used internally for obtaining UI information |
PingResult |
ping(String destinationType,
String destinationName)
Execute ping on a destination |
void |
removeDestination(String type,
String name)
Remove an destination from the destination store |
void |
storeDestination(String type,
Destination destination)
Add a destination of a given destination type The destination may not yet exist. |
void |
updateDestination(String type,
Destination destination)
Update a destination of a given destination type. |
| Field Detail |
public static final String JNDI_KEY
| Method Detail |
public Destination getDestination(String type,
String name)
throws DestinationException,
RemoteException
DestinationException
RemoteException
public Destination createDestination(String type,
Object data)
throws DestinationException,
RemoteException
DestinationException
RemoteExceptionpublic List getDestinationTypes()
public List getDestinationNames(String destinationType)
throws DestinationException,
RemoteException
DestinationException
RemoteException
public Destination createDestination(String type)
throws DestinationException,
RemoteException
DestinationException
RemoteException
public void updateDestination(String type,
Destination destination)
throws DestinationException,
RemoteException
DestinationException
RemoteException
public void storeDestination(String type,
Destination destination)
throws DestinationException,
RemoteException
DestinationException
RemoteException
public void removeDestination(String type,
String name)
throws DestinationException,
RemoteException
DestinationException
RemoteException
public Hashtable getKeystoreViews()
throws DestinationException,
RemoteException
DestinationException
RemoteException
public Object getUIMetaData(String type,
Object data)
throws DestinationException,
RemoteException
type - data -
DestinationException
RemoteException
public PingResult ping(String destinationType,
String destinationName)
throws DestinationException,
RemoteException
destinationType - destinationName -
RemoteException
DestinationException
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||