Class CurrentContext

java.lang.Object
ecmwf.common.ftpd.CurrentContext

public final class CurrentContext extends Object
The Class CurrentContext.
  • Field Details

    • ATYPE

      public static final char ATYPE
      The Constant ATYPE.
      See Also:
    • ITYPE

      public static final char ITYPE
      The Constant ITYPE.
      See Also:
    • user

      public String user
      The user.
    • authName

      public String authName
      The auth name.
    • remoteSite

      public String remoteSite
      The remote site.
    • remoteIP

      public InetAddress remoteIP
      The remote ip.
    • localIP

      public InetAddress localIP
      The local ip.
    • out

      public PrintWriter out
      The out.
    • in

      public BufferedReader in
      The in.
    • clientSocket

      public Socket clientSocket
      The client socket.
    • dataSocket

      public DataSocket dataSocket
      The data socket.
    • dataPort

      public int dataPort
      The data port.
    • dataIP

      public InetAddress dataIP
      The data ip.
    • accounts

      public final Vector<String> accounts
      The accounts.
    • transferType

      public char transferType
      The transfer type.
    • activity

      public Activity activity
      The activity.
    • aliases

      public final Map<String,Map<String,String>> aliases
      The aliases.
    • browser

      public boolean browser
      The browser.
    • clientName

      public String clientName
      The client name.
    • buffer

      public int buffer
      The buffer.
    • session

      public UserSession session
      The session.
    • domainName

      public String domainName
      The domain name.
    • domainUser

      public String domainUser
      The domain user.
    • domainValue

      public String domainValue
      The domain value.
    • parametersList

      public final Map<String,Object> parametersList
      The parameters list.
    • passiveMode

      public boolean passiveMode
      The passive mode.
    • path

      public final Map<String,String> path
      The path.
    • plugin

      public FtpPlugin plugin
      The plugin.
    • renameFile

      public String renameFile
      The rename file.
    • rest

      public long rest
      The rest.
    • umask

      public int umask
      The umask.
  • Method Details

    • logout

      public void logout()
      Logout.
    • transferText

      public String transferText()
      Transfer text.
      Returns:
      the string
    • transferEOL

      public String transferEOL()
      Transfer eol.
      Returns:
      the string
    • containsAliases

      public boolean containsAliases()
      Contains aliases.
      Returns:
      true, if successful
    • getAlias

      public String getAlias(String source)
      Gets the alias.
      Parameters:
      source - the source
      Returns:
      the alias
    • getAliases

      public Map<String,String> getAliases()
      Gets the aliases.
      Returns:
      the aliases
    • getPath

      public String getPath()
      Gets the path.
      Returns:
      the path
    • newEvent

      public void newEvent(String action, String comment, boolean error)
      New event.
      Parameters:
      action - the action
      comment - the comment
      error - the error
    • putAlias

      public void putAlias(String source, String target)
      Puts the alias.
      Parameters:
      source - the source
      target - the target
    • removeAlias

      public void removeAlias(String source)
      Removes the alias.
      Parameters:
      source - the source
    • respond

      public void respond(int code, String message)
      Respond.
      Parameters:
      code - the code
      message - the message
    • respond

      public void respond(int code, String message, Throwable exception)
      Respond.
      Parameters:
      code - the code
      message - the message
      exception - the exception
    • respond

      public void respond(int code, Throwable exception)
      Respond.
      Parameters:
      code - the code
      exception - the exception