@@ -0,0 +1,2420 @@
+/*%0A * Copyright (c) WSO2 Inc. (http://www.wso2.org) All Rights Reserved.%0A *%0A * WSO2 Inc. licenses this file to you under the Apache License,%0A * Version 2.0 (the %22License%22); you may not use this file except%0A * in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing,%0A * software distributed under the License is distributed on an%0A * %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY%0A * KIND, either express or implied.  See the License for the%0A * specific language governing permissions and limitations%0A * under the License.%0A */%0A%0Apackage org.wso2.carbon.mss.internal.router;%0A%0Aimport io.netty.handler.codec.http.HttpRequest;%0Aimport org.wso2.carbon.mss.HttpResponder;%0A%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0A/**%0A * Container class that will hold HttpResourceModel and%0A * request information inorder to process the request when all%0A * data is ready.%0A */%0Apublic class HttpMethodInfoBuilder %7B%0A%0A    private HttpResourceModel httpResourceModel;%0A    private HttpRequest request;%0A    private HttpResponder responder;%0A    private Map%3CString, String%3E groupValues;%0A    private String contentType;%0A    private List%3CString%3E acceptTypes;%0A%0A    public static HttpMethodInfoBuilder httpResourceModel(HttpResourceModel httpResourceModel) %7B%0A        HttpMethodInfoBuilder httpMethodInfoBuilder = new HttpMethodInfoBuilder();%0A        httpMethodInfoBuilder.httpResourceModel = httpResourceModel;%0A        return httpMethodInfoBuilder;%0A    %7D%0A%0A    public HttpMethodInfoBuilder httpRequest(HttpRequest request) %7B%0A        this.request = request;%0A        return this;%0A    %7D%0A%0A    public HttpMethodInfoBuilder httpResponder(HttpResponder responder) %7B%0A        this.responder = responder;%0A        return this;%0A    %7D%0A%0A    public HttpMethodInfoBuilder requestInfo(Map%3CString, String%3E groupValues,%0A                                             String contentType,%0A                                             List%3CString%3E acceptTypes) %7B%0A        this.groupValues = groupValues;%0A        this.contentType = contentType;%0A        this.acceptTypes = acceptTypes;%0A        return this;%0A    %7D%0A%0A    public HttpMethodInfo build() throws HandlerException %7B%0A        return (new HttpResourceModelProcessor(httpResourceModel))%0A                .buildHttpMethodInfo(request,responder,groupValues,contentType,acceptTypes);%0A    %7D%0A%0A%7D%0A

Add builder for HttpMethodInfo