php.java.bridge.http
Class AbstractChannelName

java.lang.Object
  extended by php.java.bridge.http.AbstractChannelName

public abstract class AbstractChannelName
extends java.lang.Object

Represents the pipe or socket channel name.

Author:
jostb

Constructor Summary
AbstractChannelName(java.lang.String name, IContextFactory currentCtx)
          Create a new ChannelName.
 
Method Summary
 IContextFactory getCtx()
          Return the
 java.lang.String getName()
          Returns the name of the channel, for example the socket # or the pipe name.
 boolean start(ILogger logger)
          Start a new ContextRunner for a given ContextServer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractChannelName

public AbstractChannelName(java.lang.String name,
                           IContextFactory currentCtx)
Create a new ChannelName.

Parameters:
name - The name of the channel, see X_JAVABRIDGE_CHANNEL
currentCtx - The ContextFactory associated with the current request.
Method Detail

getName

public java.lang.String getName()
Returns the name of the channel, for example the socket # or the pipe name.

Returns:
the name of the channel

getCtx

public IContextFactory getCtx()
Return the

Returns:
the value for X_JAVABRIDGE_CONTEXT.

start

public boolean start(ILogger logger)
Start a new ContextRunner for a given ContextServer. The current ContextFactory becomes the default for this runner.

Returns:
true, if the channel is available, false otherwise.