/[Apache-SVN]/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Mediator.java
ViewVC logotype

Contents of /synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/Mediator.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 751592 - (show annotations)
Mon Mar 9 05:59:00 2009 UTC (8 months, 2 weeks ago) by indika
File size: 2177 byte(s)
add Jlined based  , Secret Manager based , secret handlers
add Jlined dependency
1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20 package org.apache.synapse;
21
22
23 /**
24 * All Synapse mediators must implement this Mediator interface. As a message passes
25 * through the Synapse system, each mediator's mediate() method is invoked in the
26 * sequence/order defined in the SynapseConfiguration.
27 */
28 public interface Mediator {
29
30 /**
31 * Invokes the mediator passing the current message for mediation. Each
32 * mediator performs its mediation action, and returns true if mediation
33 * should continue, or false if further mediation should be aborted.
34 *
35 * @param synCtx the current message for mediation
36 * @return true if further mediation should continue
37 */
38 public boolean mediate(MessageContext synCtx);
39
40 /**
41 * This is used for debugging purposes and exposes the type of the current
42 * mediator for logging and debugging purposes
43 * @return a String representation of the mediator type
44 */
45 public String getType();
46
47 /**
48 * This is used to check whether the tracing should be enabled on the current mediator or not
49 * @return value that indicate whether tracing is on, off or unset
50 */
51 public int getTraceState();
52
53 /**
54 * This is used to set the value of tracing enable variable
55 * @param traceState Set whether the tracing is enabled or not
56 */
57 public void setTraceState(int traceState);
58 }

Properties

Name Value
svn:eol-style native

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2