|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||
@Target(value=TYPE) @Retention(value=RUNTIME) public @interface Mapping
Annotation which defines the URL-pattern mapping. Currently the mapping annotation
is only supported by Context.addHandler(IHttpRequestHandler)
Example:
class MyRequestHandler implements IHttpRequestHandler {
@Mapping("/rpc/*")
public void onRequest(IHttpExchange exchange) throws IOException, BadMessageException {
//...
}
}
| Required Element Summary | |
|---|---|
String[] |
value
|
| Element Detail |
|---|
public abstract String[] value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | ||||||||