public GetTileResponse(HTTPResponse httpResponse, WMTSServiceType wmtsServiceType) throws ServiceException, IOException { super(httpResponse); this.setType(wmtsServiceType); }
@Override public WMTSGetCapabilitiesResponse createResponse(HTTPResponse httpResponse) throws ServiceException, IOException { return new WMTSGetCapabilitiesResponse(httpResponse, hints); } }
public GetLegendGraphicResponse(HTTPResponse httpResponse) throws ServiceException, IOException { super(httpResponse); String contentType = getContentType(); if (contentType != null && contentType.toLowerCase().indexOf("text/xml") != -1) { try { throw parseException(getInputStream()); } finally { dispose(); } } } }
@Override public Response createResponse(HTTPResponse response) throws ServiceException, IOException { // TODO Auto-generated method stub return new GetTileResponse(response, getType()); }