com.aptana.ide.debug.internal.core.model
Class HttpServerProcess

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by com.aptana.ide.debug.internal.core.model.HttpServerProcess
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.debug.core.IDebugEventSetListener, org.eclipse.debug.core.model.IProcess, org.eclipse.debug.core.model.ITerminate

public class HttpServerProcess
extends org.eclipse.core.runtime.PlatformObject
implements org.eclipse.debug.core.model.IProcess, org.eclipse.debug.core.IDebugEventSetListener

Author:
Max Stepanov

Field Summary
 
Fields inherited from interface org.eclipse.debug.core.model.IProcess
ATTR_CMDLINE, ATTR_PROCESS_LABEL, ATTR_PROCESS_TYPE
 
Constructor Summary
HttpServerProcess(org.eclipse.debug.core.ILaunch launch)
          HttpServerProcess
 
Method Summary
 void addServerPath(java.lang.String path, java.io.File dir)
          setResourceResolver
 boolean canTerminate()
           
protected  void fireCreationEvent()
          fireCreationEvent
protected  void fireEvent(org.eclipse.debug.core.DebugEvent event)
          fireEvent
protected  void fireTerminateEvent()
          fireTerminateEvent
 java.lang.String getAttribute(java.lang.String key)
           
 java.net.URL getBaseURL()
          getBaseURL
 int getExitValue()
           
 java.lang.String getLabel()
           
 org.eclipse.debug.core.ILaunch getLaunch()
           
 org.eclipse.debug.core.model.IStreamsProxy getStreamsProxy()
           
 void handleDebugEvents(org.eclipse.debug.core.DebugEvent[] events)
           
 boolean isTerminated()
           
 void setAttribute(java.lang.String key, java.lang.String value)
           
protected  void setDebugTarget(org.eclipse.debug.core.model.IDebugTarget debugTarget)
          setDebugTarget
 void setServerRoot(java.io.File rootDir)
          setServerRoot
 void terminate()
           
protected  void throwDebugException(java.lang.Exception exception)
          throwDebugException
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

HttpServerProcess

public HttpServerProcess(org.eclipse.debug.core.ILaunch launch)
                  throws org.eclipse.debug.core.DebugException
HttpServerProcess

Parameters:
launch -
Throws:
org.eclipse.debug.core.DebugException
Method Detail

getBaseURL

public java.net.URL getBaseURL()
getBaseURL

Returns:
URL

setServerRoot

public void setServerRoot(java.io.File rootDir)
setServerRoot

Parameters:
rootDir -

addServerPath

public void addServerPath(java.lang.String path,
                          java.io.File dir)
setResourceResolver

Parameters:
resolver -

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface org.eclipse.debug.core.model.IProcess
See Also:
IProcess.getLabel()

getLaunch

public org.eclipse.debug.core.ILaunch getLaunch()
Specified by:
getLaunch in interface org.eclipse.debug.core.model.IProcess
See Also:
IProcess.getLaunch()

getStreamsProxy

public org.eclipse.debug.core.model.IStreamsProxy getStreamsProxy()
Specified by:
getStreamsProxy in interface org.eclipse.debug.core.model.IProcess
See Also:
IProcess.getStreamsProxy()

setAttribute

public void setAttribute(java.lang.String key,
                         java.lang.String value)
Specified by:
setAttribute in interface org.eclipse.debug.core.model.IProcess
See Also:
IProcess.setAttribute(java.lang.String, java.lang.String)

getAttribute

public java.lang.String getAttribute(java.lang.String key)
Specified by:
getAttribute in interface org.eclipse.debug.core.model.IProcess
See Also:
IProcess.getAttribute(java.lang.String)

getExitValue

public int getExitValue()
                 throws org.eclipse.debug.core.DebugException
Specified by:
getExitValue in interface org.eclipse.debug.core.model.IProcess
Throws:
org.eclipse.debug.core.DebugException
See Also:
IProcess.getExitValue()

canTerminate

public boolean canTerminate()
Specified by:
canTerminate in interface org.eclipse.debug.core.model.ITerminate
See Also:
ITerminate.canTerminate()

isTerminated

public boolean isTerminated()
Specified by:
isTerminated in interface org.eclipse.debug.core.model.ITerminate
See Also:
ITerminate.isTerminated()

terminate

public void terminate()
               throws org.eclipse.debug.core.DebugException
Specified by:
terminate in interface org.eclipse.debug.core.model.ITerminate
Throws:
org.eclipse.debug.core.DebugException
See Also:
ITerminate.terminate()

fireCreationEvent

protected void fireCreationEvent()
fireCreationEvent


fireTerminateEvent

protected void fireTerminateEvent()
fireTerminateEvent


fireEvent

protected void fireEvent(org.eclipse.debug.core.DebugEvent event)
fireEvent

Parameters:
event -

throwDebugException

protected void throwDebugException(java.lang.Exception exception)
                            throws org.eclipse.debug.core.DebugException
throwDebugException

Parameters:
exception -
Throws:
org.eclipse.debug.core.DebugException

setDebugTarget

protected void setDebugTarget(org.eclipse.debug.core.model.IDebugTarget debugTarget)
setDebugTarget

Parameters:
debugTarget -

handleDebugEvents

public void handleDebugEvents(org.eclipse.debug.core.DebugEvent[] events)
Specified by:
handleDebugEvents in interface org.eclipse.debug.core.IDebugEventSetListener
See Also:
IDebugEventSetListener.handleDebugEvents(org.eclipse.debug.core.DebugEvent[])