com.sun.j2ee.blueprints.smarticket.web
Class MIDPService

java.lang.Object
  |
  +--com.sun.j2ee.blueprints.smarticket.web.MIDPService
All Implemented Interfaces:
MessageConstants

public class MIDPService
extends java.lang.Object
implements MessageConstants

A service that handles MIDP client requests for this application.


Fields inherited from interface shared.MessageConstants
APP_ERROR, BACK, CANCEL, CANCEL_SEATS, CANCELLING_PURCHASE, CANNOT_CONNECT, CONFIRM, CONFIRM_SEATS, CONFIRMING_PURCHASE, CREATE_USER, CREATING_USER, CREDIT_CARD, CURRENCY_SYMBOL, DISPLAY_LOCALES, DISPLAY_LOCATIONS, DISPLAY_MOVIES, DISPLAY_POSTER, DISPLAY_SEATINGPLAN, DISPLAY_SHOWTIMES, ERROR, HAVE_ACCOUNT, INVALID_CC, INVALID_DATE, INVALID_ID, INVALID_PASSWD, INVALID_ZIP, LAST_4_DIGITS, LOAD_MESSAGES, LOADING_LOCALES, LOADING_LOCS, LOADING_MOVIES, LOADING_PLAN, LOADING_POSTER, LOADING_SHOWTIMES, LOCALE, LOCALE_CHANGED, LOCATIONS, LOGIN_USER, MESSAGE_ERROR, MESSAGES, MOVIE, MOVIES, NEXT, NO_ACCOUNT, NO_IMAGE, NONE, NUM_MSG, PASSWORD, PASSWORD_INCORRECT_ERROR, POSTER, PREVIEW_MODE, PURCHASE_CANCELLED, RESERVE, RESERVE_SEATS, RESERVING_SEATS, SAVE, SCREEN, SEATS, SERVER_ERROR, SHOWTIMES, SIGN_IN, SIGNED_IN, SIGNING_IN, SMART_TICKET, START, STOP, THANK_YOU, TIME, TOTAL, UNAVAILABLE_SEATS_ERROR, USER_ALREADY_EXISTS_ERROR, USER_NAME, USER_NOT_FOUND_ERROR, VERSION, YOUR_ACCOUNT, ZIP_CODE
 
Constructor Summary
MIDPService()
           
 
Method Summary
 boolean processRequest(java.io.DataOutputStream out, java.lang.String req, java.lang.String sessionURL)
          Processes the given request, which is passed as a string.
 void removeMovieInfo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MIDPService

public MIDPService()
            throws MIDPException
Method Detail

removeMovieInfo

public void removeMovieInfo()
                     throws MIDPException

processRequest

public boolean processRequest(java.io.DataOutputStream out,
                              java.lang.String req,
                              java.lang.String sessionURL)
                       throws MIDPException

Processes the given request, which is passed as a string. Returns a string which contains the data requested.

This assumes the message is formatted as:

command^param1,param2,...

where command is a constant from MessageConstants.

Parameters:
req - request represented as a string
Returns:
the requested data
See Also:
MessageConstants


Copyright © 2002 Sun Microsystems Inc. All rights reserved.