org.xlightweb
Annotation Type Mapping


@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

value

public abstract String[] value