Tags:
no tags assigned
Class Handler
in package de.infoasset.platform.handler
- Declaration
- public abstract class Handler
- extends Object
- Hierarchy
java.lang.Object
de.infoasset.platform.handler.Handler- Known Direct Subclasses
- AbstractFeedHandler
- AbstractPaginationHandler
- AbstractRunHandler
- AbstractServerHandler
- AddTagToAssetHandler
- ApplyForHandler
- AssetNotFoundHandler
- AutocompleteHandler
- CreateBugReportHandler
- CreateIssueHandler
- DefaultHandler
- DeleteDraftHandler
- DeleteForeverHandler
- DraftExistsHandler
- EditBugReportHandler
- EditFeatureHandler
- EditHandler
- EditHandler
- EditIssueHandler
- EmbedInWikiPageHandler
- FilterStatusHandler
- FindAssetByUrlHandler
- FindSuggestionHandler
- GetAutoAssignTagsHandler
- GetTagsForAssetHandler
- GetTagSuggestionsHandler
- HomeHandler
- KillHandler
- LoginHandler
- LoginHandler
- LoginHandler
- LogoutHandler
- MakeSeveralTagAssignmentsHandler
- MigrateXmlHandler
- NoJavaScriptHandler
- ProtectedActionHandler
- ProtectedAssetHandler
- ReadOnlyModeHandler
- RegisterHandler
- ReInitHandler
- RemoveAssetHandler
- RemoveFormattingHandler
- RemoveTagFromAssetHandler
- ReorderHandler
- ReportConnectionPoolHandler
- ReportWritableCopiesHandler
- ResourceNotFoundHandler
- RunSuiteManyTimesHandler
- SaveDraftHandler
- SearchHandler
- SetDeveloperOptionsHandler
- SetTagsHandler
- ShowChangeDetailsHandler
- ShowDetailsHandler
- ShowDevHeaderHandler
- ShowFullErrorMessageHandler
- StartPlayingBackHandler
- StartRecordingHandler
- StopRecordingHandler
- SubmitFeatureHandler
- SubmitHandler
- SubmitHandler
- TestHandler
- TestHelper.MeasureHandler
- TestXmlLoginHandler
- TextDiffHandler
- ThrowAnExceptionHandler
- ThrowExceptionHandler
- UnDeleteHandler
- UnreachableHandler
- ViewHandler
- ViewHandler
Subclasses of this class are responsible for handling HTTP requests in
Tricia.
One variable per request parameter, which should be set in the
checkAccess() or doBusinessLogic() method using a static
method of Parameters.
All Stations, which are defined as a final field using anonymous
inner classes.
The handling of a request happens in 6 stages. A visualization of these stages can be found here:
- At first the session (see Session) is identified and the client context is initialized (see RequestLocal and ServerMode). This is done automatically by the class HttpServer.
- In a second step the handler which is responsible for handling the request is identified. This is done by the HandlerDispatcher, which creates an instance of the identified handler class.
- The handler checks whether the current session is allowed to call this handler. This is done by implementing the method checkAccess().
- The handler executes business logic, which in most cases involves the manipulation of the state of Assets. This is done by implementing the method doBusinessLogic(). This method returns an object of type Station, which is responsible for the next step.
- The Station either forwards the request to another Handler (this is done by Lines, step 6a in the figure above) or sends an answer page back (using a subclass of AnswerStation, step 6b in the figure above).
A typical handler will have the following attributes:
Field Summary
| static ParameterizedMessage | |
|---|---|
| static String | |
| static String | |
| static Message | |
| static int | |
| static Message | |
| static Message | |
| static Message | |
| static Message | |
| static SimpleDateFormat | |
| static SimpleDateFormat |
Constructor Summary
|
Method Summary
| protected void | |
|---|---|
| void |
|
| void | |
| static Station | |
| static Station |
|
| static Station |
|
| static Station | |
| static Station |
|
| abstract Station |
|
| protected Station | |
| Message | |
| static String |
|
| protected Line |
|
| Response | |
| static NameValue[] |
|
| Message | |
| void | |
| boolean |
Field Detail
DELETE_CONFIRMATION
public static final ParameterizedMessage DELETE_CONFIRMATION
protectedActionError
public static final Message protectedActionError
GET_STATIONS
public static final String GET_STATIONS
withoutYearDateFormat
public static SimpleDateFormat withoutYearDateFormat
withYearDateFormat
public static final SimpleDateFormat withYearDateFormat
timeDifferenceLessOneMinute
public static final Message timeDifferenceLessOneMinute
timeDifferenceMinutesPostfix
public static final Message timeDifferenceMinutesPostfix
timeDifferenceOneHour
public static final Message timeDifferenceOneHour
timeDifferenceHoursPostfix
public static final Message timeDifferenceHoursPostfix
secondsOfADay
public static int secondsOfADay
PARAMETER_TAG
public static final String PARAMETER_TAG
Constructor Detail
Handler
public Handler()
Method Detail
afterStationHook
protected void afterStationHook()
checkAccessExtensions
public void checkAccessExtensions()
doBusinessLogic
public abstract Station doBusinessLogic()
checkAccess
public void checkAccess()
goToParentBreadCrumb
public void goToParentBreadCrumb(Forwarder f)
getBreadcrumbLabel
public Message getBreadcrumbLabel()
getTargetLabel
public Message getTargetLabel()
createJSONSuccessStation
public static Station createJSONSuccessStation()
createJSONErrorStation
public static Station createJSONErrorStation()
createJSONErrorStation
public static Station createJSONErrorStation(String errorMessage, Map additionalParameters)
hideForAnonymousUsers
public boolean hideForAnonymousUsers()
Referenced by:
|
Referenced by
(156)
|
0 Comments