com.atlassian.bamboo.plugins.rest.common
Class InputParserImpl
java.lang.Object
com.atlassian.bamboo.plugins.rest.common.InputParserImpl
- All Implemented Interfaces:
- InputParser
public class InputParserImpl
- extends Object
- implements InputParser
Constructor Summary |
InputParserImpl(com.atlassian.sal.api.message.I18nResolver i18nResolver)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputParserImpl
public InputParserImpl(com.atlassian.sal.api.message.I18nResolver i18nResolver)
parseChainKey
@NotNull
public PlanKey parseChainKey(@Nullable
String chainKeyString)
- Parse a chain key from the input string.
- Specified by:
parseChainKey
in interface InputParser
- Parameters:
chainKeyString
- to parse.
- Returns:
- parsed key.
- Throws:
NotFoundException
- if the key is invalid.
parseJobKey
@NotNull
public PlanKey parseJobKey(@Nullable
String jobKeyString)
- Parse a job key from the input string.
- Specified by:
parseJobKey
in interface InputParser
- Parameters:
jobKeyString
- to parse.
- Returns:
- parsed key.
- Throws:
NotFoundException
- if the key is invalid.
parseJobKey
@NotNull
public PlanKey parseJobKey(@NotNull
PlanKey chainKey,
@Nullable
String jobKeyString)
- Parse a job key from the input string. Will work if the jobKeyString is in short form
or long form.
- Specified by:
parseJobKey
in interface InputParser
- Parameters:
chainKey
- of plan job key is for.jobKeyString
- to parse.
- Returns:
- parsed key.
- Throws:
NotFoundException
- if the key is invalid.
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.