de.oio.bugkilla.splitter
Class FilterManager

java.lang.Object
  |
  +--de.oio.bugkilla.splitter.FilterManager
All Implemented Interfaces:
Commandable

public class FilterManager
extends java.lang.Object
implements Commandable

Author:
swinkler

Constructor Summary
FilterManager()
          set the first State on 'NotConnected'
 
Method Summary
 void addCurrentStep()
          Method addCurrentStep adds a the current TestStep to the according UserInteraction.
 void connect(java.net.Socket socket)
          Sets the socket.
 int getCallsIn()
          Returns the callsIn.
 java.lang.Object getEndSignal()
          Returns the endSignal.
 boolean isConnected()
           
 void processTestStepState(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
          Method processTestStepState.
 void registerConversation()
          Method registerConversation.
 void sendCurrentStep()
          the currentStep Object is send to the client
 void sendCurrentUserInteraction()
          Method sendCurrentUserInteraction send the current UserInteraction to the recorder-client.
 void sendSignalSequenceEnd()
          Method sendSignalSequenceEnd.
 void setCurrentStep(TestStepWrapper currentStep)
          Sets the currentStep.
 void setCurrentUi(UserInteraction currentUi)
          Sets the currentUi.
 void setHandler(CallHandler handler)
          Sets the handler.
 void startRecording()
          Starts recording a new TestSequence.
 void startRecordingUserInteraction()
          Starts recording a new UserInteraction.
 void stop()
          Stops the process of creating new TestStep objects added to the current TestSequence.
 void stopRecording()
          Stops the recording process of creating new UserInteraction objects added to the current TestSequence.
 void unregisterConversation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterManager

public FilterManager()
set the first State on 'NotConnected'

Method Detail

startRecording

public void startRecording()
Description copied from interface: Commandable
Starts recording a new TestSequence. Sending this signal the implementing class creates for each step a new TestStep object adding this to the TestSequence until the signal stopRecording is sent.

Specified by:
startRecording in interface Commandable
See Also:
de.oio.bugkilla.splitter.Commandable#startRecording()

stop

public void stop()
Description copied from interface: Commandable
Stops the process of creating new TestStep objects added to the current TestSequence. Also like stopRecording calling this method should terminate the TestSequence object and memorize it.

Specified by:
stop in interface Commandable
See Also:
de.oio.bugkilla.splitter.Commandable#stop()

stopRecording

public void stopRecording()
Description copied from interface: Commandable
Stops the recording process of creating new UserInteraction objects added to the current TestSequence. When calling this method the TestSequence should be registered with a new Identity and memorized in the sequence pool. The Commandable now can restart recording a new sequence by the use of calling startRecording.

Specified by:
stopRecording in interface Commandable
See Also:
de.oio.bugkilla.splitter.Commandable#stopRecording()

startRecordingUserInteraction

public void startRecordingUserInteraction()
Description copied from interface: Commandable
Starts recording a new UserInteraction.

Specified by:
startRecordingUserInteraction in interface Commandable
See Also:
de.oio.bugkilla.protocol.Commandable#startRecordingTestStep()

processTestStepState

public void processTestStepState(javax.servlet.ServletRequest request,
                                 javax.servlet.ServletResponse response,
                                 javax.servlet.FilterChain chain)
                          throws java.io.IOException,
                                 javax.servlet.ServletException
Method processTestStepState.

Parameters:
request -
response -
chain -
Throws:
java.io.IOException
javax.servlet.ServletException

sendCurrentStep

public void sendCurrentStep()
                     throws java.io.IOException
the currentStep Object is send to the client

Throws:
java.io.IOException - if a streaming error occured

sendCurrentUserInteraction

public void sendCurrentUserInteraction()
                                throws java.io.IOException
Method sendCurrentUserInteraction send the current UserInteraction to the recorder-client.

Throws:
java.io.IOException - if a streaming error occured.

sendSignalSequenceEnd

public void sendSignalSequenceEnd()
                           throws java.io.IOException
Method sendSignalSequenceEnd.

Throws:
java.io.IOException - if a streaming error occured

connect

public void connect(java.net.Socket socket)
Sets the socket.

Parameters:
socket - The socket to set

isConnected

public boolean isConnected()

setHandler

public void setHandler(CallHandler handler)
Sets the handler.

Parameters:
handler - The handler to set

registerConversation

public void registerConversation()
                          throws java.lang.InterruptedException
Method registerConversation.

Throws:
java.lang.InterruptedException - if a streaming error occured

unregisterConversation

public void unregisterConversation()

setCurrentStep

public void setCurrentStep(TestStepWrapper currentStep)
Sets the currentStep.

Parameters:
currentStep - The currentStep to set

getCallsIn

public int getCallsIn()
Returns the callsIn.

Returns:
int

getEndSignal

public java.lang.Object getEndSignal()
Returns the endSignal.

Returns:
Object

setCurrentUi

public void setCurrentUi(UserInteraction currentUi)
Sets the currentUi.

Parameters:
currentUi - The currentUi to set

addCurrentStep

public void addCurrentStep()
Method addCurrentStep adds a the current TestStep to the according UserInteraction.



Copyright © Orientation in Objects GmbH. All Rights Reserved.