com.scientiamobile.introspector
Class IntrospectorServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.scientiamobile.introspector.IntrospectorServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class IntrospectorServlet
extends javax.servlet.http.HttpServlet

Version:
$Id$
See Also:
Serialized Form

Field Summary
static String ACTION
          Main parameters and attributes names
static String CAPABILITIES
           
static String CAPABILITY_MAP
           
static String COLON
           
static String ESCAPED_SPLIT_CHAR
          Split chars, used two or three times
static String HEADERS
           
static String ID
           
static String INFO
           
static String REQUEST
          actions
static String SPLIT_CHAR
           
static String UAPROF_PARAMNAME
           
static String USER_AGENT
           
static String USER_AGENT_lc
           
static String USER_AGENT_PARAMNAME
           
static String X_WAP_PROFILE
          header names
static String X_WAP_PROFILE_lc
           
 
Constructor Summary
IntrospectorServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          Delegates to doPost.
protected  void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          Main execution method.
 void init(javax.servlet.ServletConfig cfg)
          Looks for a /WEB-INF/wurfl.properties file, in which there are wurfl resource(s) names
static void setWURFLHolder(WURFLHolder newHolder)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ESCAPED_SPLIT_CHAR

public static final String ESCAPED_SPLIT_CHAR
Split chars, used two or three times

See Also:
Constant Field Values

SPLIT_CHAR

public static final String SPLIT_CHAR
See Also:
Constant Field Values

COLON

public static final String COLON
See Also:
Constant Field Values

ACTION

public static final String ACTION
Main parameters and attributes names

See Also:
Constant Field Values

USER_AGENT_PARAMNAME

public static final String USER_AGENT_PARAMNAME
See Also:
Constant Field Values

UAPROF_PARAMNAME

public static final String UAPROF_PARAMNAME
See Also:
Constant Field Values

HEADERS

public static final String HEADERS
See Also:
Constant Field Values

CAPABILITIES

public static final String CAPABILITIES
See Also:
Constant Field Values

ID

public static final String ID
See Also:
Constant Field Values

CAPABILITY_MAP

public static final String CAPABILITY_MAP
See Also:
Constant Field Values

X_WAP_PROFILE

public static final String X_WAP_PROFILE
header names

See Also:
Constant Field Values

X_WAP_PROFILE_lc

public static final String X_WAP_PROFILE_lc
See Also:
Constant Field Values

USER_AGENT_lc

public static final String USER_AGENT_lc
See Also:
Constant Field Values

USER_AGENT

public static final String USER_AGENT
See Also:
Constant Field Values

REQUEST

public static final String REQUEST
actions

See Also:
Constant Field Values

INFO

public static final String INFO
See Also:
Constant Field Values
Constructor Detail

IntrospectorServlet

public IntrospectorServlet()
Method Detail

setWURFLHolder

public static void setWURFLHolder(WURFLHolder newHolder)

init

public void init(javax.servlet.ServletConfig cfg)
          throws javax.servlet.ServletException
Looks for a /WEB-INF/wurfl.properties file, in which there are wurfl resource(s) names

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Parameters:
cfg -
Throws:
javax.servlet.ServletException

doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse resp)
              throws javax.servlet.ServletException,
                     IOException
Delegates to doPost.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
req -
resp -
Throws:
javax.servlet.ServletException
IOException

doPost

protected void doPost(javax.servlet.http.HttpServletRequest req,
                      javax.servlet.http.HttpServletResponse resp)
               throws javax.servlet.ServletException,
                      IOException
Main execution method. Dispatch execution for each action. Currently only 'info' and 'request' are supported

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
req -
resp -
Throws:
javax.servlet.ServletException
IOException


Copyright © 2012 ScientiaMobile Inc.. All Rights Reserved.