|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Nimlet
A Nimlet is an application component that is executed within a container. Application developers implement the Nimlet interface to provide application business logic to generate dynamic content.
All Nimlet implementations must provide a default constructor that does not take any parameter. The NimletContainer or NimletDriver use this constructor to instantiate the Nimlet.
Nimlets typically run on multithreaded servers, so it is important to note that a nimlet must handle concurrent requests and be careful to synchronize access to shared resources. Shared resources include in-memory data such as instance or class variables and external objects such as files, database connections, and network connections.
Method Summary | |
---|---|
void |
execute(Entity entity,
NimletInput in,
NimletOutput out)
This method is called to handle an authenticated request from an entity. |
void |
execute(NimletInput in,
NimletOutput out)
This method is called to handle a non-authenticated request from a client. |
void |
init(java.util.HashMap map)
This method is called by the NimletContainer or NimletDriver to initialize the Nimlet. |
Method Detail |
---|
void init(java.util.HashMap map) throws InitializationFailedException, NimletException
map
- HashMap will all the initialization settings for the Nimlet.
InitializationFailedException
- If unable to initialize the Nimlet.
NimletException
- This exception is thrown by the application developer wants
to use the default error handling mechanism of the
NimletContainer.void execute(Entity entity, NimletInput in, NimletOutput out) throws NimletException
entity
- The Entity object for which the request takes placein
- The NimletInput contains all the input data related to the
current request.out
- The NimletOutput contains all the data this Nimlet produces
as the result of executing the request.
NimletException
- This exception is thrown by the application developer wants
to use the default error handling mechanism of the
NimletContainer.void execute(NimletInput in, NimletOutput out) throws NimletException
in
- The NimletInput contains all the input data related to the current
request.out
- The NimletOutput contains all the data this Nimlet produces as
the result of executing the request.
NimletException
- This exception is thrown by the application developer wants
to use the default error handling mechanism of the
NimletContainer.
|
Nitido NiM 2.5 Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1999-2009 Nitido Inc. Proprietary and Confidential. All Rights Reserved.