Nitido Inc.

com.nitido.nimbox.http
Class Skin

java.lang.Object
  extended by com.nitido.nimbox.http.Skin
All Implemented Interfaces:
HttpNimletConstants

public class Skin
extends java.lang.Object
implements HttpNimletConstants


Field Summary
protected  java.lang.String _name
           
protected  java.lang.String _protocol
           
protected static java.lang.String VALID_SKINNAME_REGEX
           
 
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
Skin(java.lang.String uri)
          Class constructor.
Skin(java.lang.String protocol, java.lang.String name)
          Class constructor.
 
Method Summary
 java.lang.String getName()
          This method returns the name component of the Skin
 java.lang.String getProtocol()
          This method returns the protocol component of the Skin
 java.lang.String getSkinURI()
           
static boolean isValidSkinURI(java.lang.String uri)
          This method is used to validate a given Skin URI.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VALID_SKINNAME_REGEX

protected static final java.lang.String VALID_SKINNAME_REGEX
See Also:
Constant Field Values

_protocol

protected java.lang.String _protocol

_name

protected java.lang.String _name
Constructor Detail

Skin

public Skin(java.lang.String protocol,
            java.lang.String name)
Class constructor.

Parameters:
protocol - Reference to the skin protocol that defines the skin dispatcher used to dispatch the skin refered by the given name.
name - The name of the skin to be dispatched.
Throws:
java.lang.IllegalArgumentException - if the given protocol or skin name are null or empty string.

Skin

public Skin(java.lang.String uri)
Class constructor.

Parameters:
uri - The URI representation of the skin. The URI is composed of the skin protocol and skin name.
Throws:
java.lang.IllegalArgumentException - if the given skin URI is not of the form "://
Method Detail

getProtocol

public java.lang.String getProtocol()
This method returns the protocol component of the Skin

Returns:
The protocol component of the Skin

getName

public java.lang.String getName()
This method returns the name component of the Skin

Returns:
The name component of the Skin

getSkinURI

public java.lang.String getSkinURI()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isValidSkinURI

public static boolean isValidSkinURI(java.lang.String uri)
This method is used to validate a given Skin URI. This method returns true if the given URI is of the form "://, otherwise it returns false.

Parameters:
uri - The URI representation of the skin. The URI is composed of the skin protocol and skin name.

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.