Nitido Inc.

com.nitido.nimbox.http.services.ad
Class ADTrackingRedirectNimlet

java.lang.Object
  extended by com.nitido.nimbox.http.services.ad.ADTrackingRedirectNimlet
All Implemented Interfaces:
Nimlet, HttpNimletConstants

public class ADTrackingRedirectNimlet
extends java.lang.Object
implements Nimlet, HttpNimletConstants


Field Summary
protected static FileTrackingService _trackingService
           
 
Fields inherited from interface com.nitido.nimbox.http.HttpNimletConstants
CONF_KEY_CONTAINER_ENTITY_ID, CONF_KEY_CONTAINER_ENTITY_PWD, CONF_KEY_CONTAINER_INIT_ALL_NIMLETS, CONF_KEY_ERROR_SKIN, CONF_KEY_PREFIX_NIMLET_MAP, CONF_KEY_PREFIX_NIMLET_SETTING, CONF_KEY_PREFIX_PARSER_MULTIPART, CONF_KEY_PREFIX_SKIN_SETTING, CONF_KEY_PREFIX_SKIN_TYPE, CONF_KEY_REG_ENCODING, CONTAINER_TYPE, DEF_SAVE_DIRECTORY, KEY_ENABLE_AD_SERVICE_FLAG, KEY_ERROR_EXCEPTION, KEY_ERROR_MESSAGE, KEY_ERROR_OLD_SKIN, KEY_NIM_ENTITY, KEY_RESPONSE_EXCLUDED_SKINS, KEY_RESPONSE_OVERRIDE_HEADERS, KEY_SKIN_AD_MAP, LEN_KEY_PREFIX_NIMLET_MAP, LEN_KEY_PREFIX_PARSER_MULTIPART, LEN_KEY_PREFIX_SKIN_TYPE, LEN_PREFIX_KEY_RESPONSE_HEADER, LEN_PROTOCOL_DYNAMIC, LEN_PROTOCOL_FORWARD, LEN_PROTOCOL_INCLUDE, LEN_PROTOCOL_NIMLET, LEN_PROTOCOL_REDIRECT, LEN_PROTOCOL_STATIC, LEN_PROTOCOL_VOID, MSG_NO_NIMLET, MULTIPART_PARSER, PARAM_KEY_NIMLET, PREFIX_KEY_RESPONSE_HEADER, PROTOCOL_DYNAMIC, PROTOCOL_FORWARD, PROTOCOL_INCLUDE, PROTOCOL_NIMLET, PROTOCOL_REDIRECT, PROTOCOL_SEPARATOR, PROTOCOL_STATIC, PROTOCOL_VOID, REGULAR_PARSER, REQ_HEADER_CONTENT_TYPE, SKIN_START_DYNAMIC, SKIN_START_FORWARD, SKIN_START_INCLUDE, SKIN_START_NIMLET, SKIN_START_REDIRECT, SKIN_START_STATIC, SKIN_START_VOID, TYPE_MULTIPART_FORM
 
Constructor Summary
ADTrackingRedirectNimlet()
           
 
Method Summary
 void execute(Entity entity, NimletInput input, NimletOutput output)
          This method is called to handle an authenticated request from an entity.
 void execute(NimletInput input, NimletOutput output)
          This method is called to handle a non-authenticated request from a client.
 void init(java.util.HashMap settings)
          This method is called by the NimletContainer or NimletDriver to initialize the Nimlet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_trackingService

protected static final FileTrackingService _trackingService
Constructor Detail

ADTrackingRedirectNimlet

public ADTrackingRedirectNimlet()
Method Detail

init

public void init(java.util.HashMap settings)
          throws InitializationFailedException,
                 NimletException
Description copied from interface: Nimlet
This method is called by the NimletContainer or NimletDriver to initialize the Nimlet. This method is guaranteed to be called once for the lifecycle of the nimlet.

Specified by:
init in interface Nimlet
Parameters:
settings - HashMap will all the initialization settings for the Nimlet.
Throws:
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.

execute

public void execute(NimletInput input,
                    NimletOutput output)
             throws NimletException
Description copied from interface: Nimlet
This method is called to handle a non-authenticated request from a client. A request is considered to be non-authenticated if an Entity that represents the client has not been attached to the NimletContainer.

Specified by:
execute in interface Nimlet
Parameters:
input - The NimletInput contains all the input data related to the current request.
output - The NimletOutput contains all the data this Nimlet produces as the result of executing the request.
Throws:
NimletException - This exception is thrown by the application developer wants to use the default error handling mechanism of the NimletContainer.

execute

public void execute(Entity entity,
                    NimletInput input,
                    NimletOutput output)
             throws NimletException
Description copied from interface: Nimlet
This method is called to handle an authenticated request from an entity. A request is considered authenticated if an Entity has been attached to the NimletContainer.

Specified by:
execute in interface Nimlet
Parameters:
entity - The Entity object for which the request takes place
input - The NimletInput contains all the input data related to the current request.
output - The NimletOutput contains all the data this Nimlet produces as the result of executing the request.
Throws:
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

These JavaDoc pages are generated for release/nim_2_5-2.5.44

Copyright © 1999-2009 Nitido Inc.    Proprietary and Confidential.    All Rights Reserved.