Package akka.actor
Class ActorPath$
- java.lang.Object
-
- akka.actor.ActorPath$
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Serializable
public class ActorPath$ extends java.lang.Object implements scala.Serializable
Parse string as actor path; throws java.net.MalformedURLException if unable to do so.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ActorPath$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description ActorPath$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description scala.collection.immutable.Iterable<java.lang.String>
emptyActorPath()
ActorPath
fromString(java.lang.String s)
boolean
isValidPathElement(java.lang.String s)
This method is used to validate a path element (Actor Name).void
validatePathElement(java.lang.String element)
Validates the given actor path element and throws anInvalidActorNameException
if invalid.void
validatePathElement(java.lang.String element, java.lang.String fullPath)
Validates the given actor path element and throws anInvalidActorNameException
if invalid.
-
-
-
Field Detail
-
MODULE$
public static final ActorPath$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
fromString
public ActorPath fromString(java.lang.String s)
-
validatePathElement
public 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 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 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.- Parameters:
s
- (undocumented)- Returns:
- (undocumented)
-
emptyActorPath
public final scala.collection.immutable.Iterable<java.lang.String> emptyActorPath()
-
-