Package akka.actor
Class ActorPaths
- java.lang.Object
-
- akka.actor.ActorPaths
-
public class ActorPaths extends java.lang.Object
Java API
-
-
Constructor Summary
Constructors Constructor Description ActorPaths()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ActorPath
fromString(java.lang.String s)
Parse string as actor path; throws java.net.MalformedURLException if unable to do so.static boolean
isValidPathElement(java.lang.String s)
This method is used to validate a path element (Actor Name).static void
validatePathElement(java.lang.String element)
Validates the given actor path element and throws anInvalidActorNameException
if invalid.static void
validatePathElement(java.lang.String element, java.lang.String fullPath)
Validates the given actor path element and throws anInvalidActorNameException
if invalid.
-
-
-
Method Detail
-
fromString
public static ActorPath fromString(java.lang.String s)
Parse string as actor path; throws java.net.MalformedURLException if unable to do so.
-
validatePathElement
public static final void validatePathElement(java.lang.String element)
Validates the given actor path element and throws anInvalidActorNameException
if invalid. SeeisValidPathElement(java.lang.String)
for a non-throwing version.- Parameters:
element
- actor path element to be validated
-
validatePathElement
public static final void validatePathElement(java.lang.String element, java.lang.String fullPath)
Validates the given actor path element and throws anInvalidActorNameException
if invalid. SeeisValidPathElement(java.lang.String)
for a non-throwing version.- Parameters:
element
- actor path element to be validatedfullPath
- optional fullPath element that may be included for better error messages; null if not given
-
isValidPathElement
public static final boolean isValidPathElement(java.lang.String s)
This method is used to validate a path element (Actor Name). Since Actors form a tree, it is addressable using an URL, therefore an Actor Name has to conform to: RFC-2396.User defined Actor names may not start from a
$
sign - these are reserved for system names.
-
-